2012-11-02 Pedro Alves <palves@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-11-02 Pedro Alves <palves@redhat.com>
2
3 * gdb.base/foll-vfork.exp (setup_gdb): New procedure.
4 (check_vfork_catchpoints, vfork_parent_follow_through_step)
5 (vfork_parent_follow_to_bp): Call it.
6 (kill_child): Delete.
7 (vfork_and_exec_child_follow_to_main_bp)
8 (vfork_and_exec_child_follow_through_step): Call setup_gdb. No
9 longer call kill_child.
10 (tcatch_vfork_then_parent_follow): Call setup_gdb.
11 (do_vfork_and_exec_tests): Don't runto_main before calling each
12 test procedure.
13 (top level): Don't clean restart and set verbose before running
14 each test procedure.
15
16 2012-11-02 Pedro Alves <palves@redhat.com>
17
18 * gdb.base/foll-vfork.exp (vfork_parent_follow_through_step)
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)
23 (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow):
24 Use with_test_prefix.
25
26 2012-11-02 Pedro Alves <palves@redhat.com>
27
28 * gdb.base/foll-vfork.c: Add copyright header.
29 * gdb.base/vforked-prog.c: Add copyright header.
30
31 2012-11-02 Pedro Alves <palves@redhat.com>
32
33 * gdb.base/foll-vfork.exp
34 (vfork_and_exec_child_follow_through_step): Don't skip on
35 non-HP/UX targets. Expect the next to only step one line on
36 non-HP/UX targets, rather than stopping only after the exec.
37
38 2012-11-02 Pedro Alves <palves@redhat.com>
39
40 Don't hard code line numbers.
41
42 * gdb.base/foll-vfork.exp (vfork_parent_follow_through_step):
43 Expect text from the sources instead of a line number.
44 (vfork_parent_follow_to_bp)
45 (vfork_and_exec_child_follow_to_main_bp)
46 (vfork_and_exec_child_follow_through_step)
47 (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow):
48 Use gdb_get_line_number.
49
50 2012-11-02 Pedro Alves <palves@redhat.com>
51
52 Modernize.
53
54 * gdb.base/foll-vfork.exp: Use standard_testfile and
55 build_executable. Pass descriptive string to untested.
56 (vfork_parent_follow_through_step, vfork_parent_follow_to_bp)
57 (vfork_and_exec_child_follow_to_main_bp)
58 (vfork_and_exec_child_follow_through_step)
59 (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow)
60 (do_vfork_and_exec_tests): Use gdb_test/gdb_test_multiple instead
61 of send_gdb/gdb_expect.
62
63 (kill_child): New procedure.
64 (vfork_and_exec_child_follow_to_main_bp)
65 (vfork_and_exec_child_follow_through_step): Use it.
66
67 2012-11-02 Yao Qi <yao@codesourcery.com>
68
69 * std-operator.def: Remove OP_LABELED.
70 * eval.c: Remove the declaration of 'get_label'.
71 (get_label): Remove.
72 (evaluate_struct_tuple): Remove code handling OP_LABELED.
73 Update comment.
74 Remove local variable 'variantno' and related code.
75 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
76 with 'fieldno'.
77 * expprint.c (print_subexp_standard): Likewise.
78 (dump_subexp_body_standard): Likewise.
79 * parse.c (operator_length_standard): Likewise.
80
81 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
82
83 Incorporate ARI web page generator into GDB sources.
84 * contrib/ari/create-web-ari-in-src.sh: New file.
85 * contrib/ari/gdb_ari.sh: New file.
86 * contrib/ari/gdb_find.sh: New file.
87 * contrib/ari/update-web-ari.sh: New file.
88
89 2012-10-31 Tom Tromey <tromey@redhat.com>
90
91 * gdbarch.c: Rebuild.
92 * gdbarch.sh: Remove references to gdbarch_swap.
93 * corelow.c (core_open): Remove obsolete comment.
94
95 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
96
97 PR cli/14772
98 * c-typeprint.c (c_print_type): Don't print a space for vector
99 types, this is handled within the suffix.
100 (c_type_print_varspec_suffix): Add a space to vector suffix.
101
102 2012-10-26 Pedro Alves <palves@redhat.com>
103
104 * amd64-tdep.c (amd64_relocate_instruction): Use
105 store_unsigned_integer instead of memcpy.
106 * i386-tdep.c (i386_relocate_instruction): Ditto.
107
108 2012-10-26 Pedro Alves <palves@redhat.com>
109
110 * infrun.c (handle_inferior_event): Merge handling of
111 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
112 switch case.
113
114 2012-10-26 Pedro Alves <palves@redhat.com>
115
116 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
117 Remove comment.
118
119 2012-10-26 Pedro Alves <palves@redhat.com>
120
121 * target.c (target_waitstatus_to_string): Handle
122 TARGET_WAITKIND_VFORK_DONE.
123
124 2012-10-26 Pedro Alves <palves@redhat.com>
125
126 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
127 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
128
129 2012-10-24 Tristan Gingold <gingold@adacore.com>
130
131 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
132 Add comments.
133
134 2012-10-24 Joel Brobecker <brobecker@adacore.com>
135
136 * ravenscar-thread.c (ravenscar_wait): Only update the list
137 of threads and inferior_ptid if the inferior is still alive.
138
139 2012-10-24 Joel Brobecker <brobecker@adacore.com>
140
141 * ada-lang.c (is_known_support_routine): Use lbasename when
142 matching the symtab's filename against
143 known_runtime_file_name_patterns.
144
145 2012-10-24 Joel Brobecker <brobecker@adacore.com>
146
147 * ada-lang.c (ada_same_array_size_p): New function.
148 (ada_promote_array_of_integrals): New function.
149 (coerce_for_assign): Add handling of arrays where the elements
150 are integrals of a smaller size than the size of the target
151 array element type.
152
153 2012-10-24 Joel Brobecker <brobecker@adacore.com>
154
155 * doublest.c (convert_doublest_to_floatformat): Fix comparison
156 against maximum exponent value.
157
158 2012-10-24 Joel Brobecker <brobecker@adacore.com>
159
160 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
161 "unwind-seh.c".
162
163 2012-10-24 Joel Brobecker <brobecker@adacore.com>
164
165 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
166 strip typedef layer when computing the fixed type's field type,
167 only when computing its size.
168
169 2012-10-24 Mark Kettenis <kettenis@gnu.org>
170
171 PR gdb/12783
172 * i386-tdep.c (i386_return_value): Handle complex double and long
173 double.
174
175 2012-10-24 Joel Brobecker <brobecker@adacore.com>
176
177 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
178 New local variable args_len.
179 Quote the name of the executable when computing the command line.
180
181 2012-10-23 Mark Kettenis <kettenis@gnu.org>
182
183 PR gdb/12796
184 PR gdb/12798
185 PR gdb/12800
186 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
187 AMD64_FTAG_REGNUM.
188 * amd64-tdep.c (amd64_classify): Classify complex types.
189 (amd64_return_value): Handle the COMPLEX_X87 class.
190
191 2012-10-23 Joel Brobecker <brobecker@adacore.com>
192
193 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
194 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
195
196 2012-10-23 Joel Brobecker <brobecker@adacore.com>
197
198 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
199 function.
200 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
201 to amd64_windows_auto_wide_charset.
202
203 2012-10-23 Yao Qi <yao@codesourcery.com>
204
205 * event-top.c (mark_async_signal_handler_wrapper): Remove.
206 * event-top.h: Remove its declaration.
207 (async_request_quit): Call mark_async_signal_handler instead of
208 mark_async_signal_handler_wrapper.
209 (async_do_nothing, async_disconnect): Likewise.
210 (async_stop_sig): Likewise.
211 * remote.c (handle_remote_sigint): Likewise.
212 (handle_remote_sigint_twice): Likewise.
213
214 2012-10-23 Yao Qi <yao@codesourcery.com>
215
216 * event-top.c (sigint_token, sighup_token): Replace 'void *'
217 with 'static struct async_signal_handler *'.
218 (sighup_token, sigquit_token, sigstp_token): Likewise.
219
220 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
221
222 * gdbarch.sh (function_list): Use 'pstring' when printing
223 a variable which could return NULL.
224 * gdbarch.c: Regenerate.
225
226 2012-10-10 Joel Brobecker <brobecker@adacore.com>
227 Tom Tromey <tromey@redhat.com>
228
229 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
230 inneffective if condition by gdb assertion. Add function
231 description comment.
232
233 2012-10-19 Joel Brobecker <brobecker@adacore.com>
234
235 * parser-defs.h (struct exp_descriptor): Document constraint
236 on return value for "op_name" callbacks.
237
238 2012-10-18 Tom Tromey <tromey@redhat.com>
239
240 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
241 * symtab.c (iterate_over_some_symtabs): Constify.
242 * source.h (symtab_to_fullname): Return 'const char *'.
243 * source.c (symtab_to_fullname): Return 'const char *'.
244 * python/py-symtab.c (stpy_fullname): Constify.
245 * cli/cli-cmds.c (edit_command): Constify.
246 * breakpoint.c (print_breakpoint_location)
247 (update_static_tracepoint): Constify.
248
249 2012-10-18 Tom Tromey <tromey@redhat.com>
250
251 * breakpoint.c (compare_breakpoints): Fix comparison.
252
253 2012-10-18 Tom Tromey <tromey@redhat.com>
254
255 * valprint.c (generic_emit_char, generic_printstr): Pass size of
256 gdb_wchar_t to convert_between_encodings.
257
258 2012-10-17 Yao Qi <yao@codesourcery.com>
259
260 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
261 more parameter 'inferior'.
262 * corefile.c (write_memory_with_notification): Caller update.
263
264 * mi/mi-cmd-var.c: Include "mi-main.h".
265 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
266 to 1 and restore it later.
267 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
268 and "data-write-memory-bytes.
269 * mi/mi-interp.c: Include objfiles.h.
270 (mi_interpreter_init): Call observer_attach_memory_changed.
271 (mi_memory_changed): New.
272 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
273 New field.
274
275 * NEWS: Mention new MI notification "memory-changed".
276
277 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
278
279 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
280
281 2012-10-15 Doug Evans <dje@google.com>
282
283 New option -nh: inhibit loading of ~/.gdbinit.
284 * NEWS: Mention -nh.
285 * main.c (captured_main): Recognize and process -nh.
286 (print_gdb_help): Mention -nh.
287 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
288
289 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
290
291 PR backtrace/14646
292 PR gdb/14647
293 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
294 pc_regnum_from_eax.
295 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
296 nor pc_regnum_from_eax.
297 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
298 nor pc_regnum_from_eax.
299
300 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
301
302 Fix entry values resolving in inlined frames.
303 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
304 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
305 entries of FRAME.
306
307 2012-10-15 Joel Brobecker <brobecker@adacore.com>
308
309 * configure.ac: Build with -DMS_WIN64 if building with Python
310 enabled using GCC on amd64-windows.
311 * configure: Regenerate.
312
313 2012-10-15 Tom Tromey <tromey@redhat.com>
314
315 PR python/14635:
316 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
317 to Py_None.
318
319 2012-10-15 Tom Tromey <tromey@redhat.com>
320
321 PR python/14634:
322 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
323
324 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
325
326 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
327 reset thread numbering back to 1.
328
329 2012-10-11 Doug Evans <dje@google.com>
330
331 PR breakpoints/14643.
332 * linespec.c (struct ls_parser): New member keyword_ok.
333 (linespec_lexer_lex_string): Add comment.
334 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
335 for one.
336 (parse_linespec): Set keyword_ok.
337
338 2012-10-10 Doug Evans <dje@google.com>
339
340 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
341 "0x" prefix on address in log message.
342
343 * dwarf2read.c (read_1_byte): Add const to buf parameter.
344 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
345 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
346 (lookup_dwo_file): Add const to dwo_name parameter.
347 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
348
349 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
350
351 Fix crash during stepping on ppc32.
352 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
353 SYM.
354
355 2012-10-03 Doug Evans <dje@google.com>
356
357 PR symtab/14601
358 * buildsym.c (buildsym_init): Reset using_directives to NULL.
359
360 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
361
362 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
363 output and use uint32_t not long to ensure 4 byte size.
364
365 2012-10-02 Joel Brobecker <brobecker@adacore.com>
366
367 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
368 unref'ed it.
369
370 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
371
372 * target.c (simple_search_memory): Include access length in
373 warning message.
374
375 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
376 Edjunior Machado <emachado@linux.vnet.ibm.com>
377
378 PR gdb/13989
379 * solib.c (solib_find): Prevent GDB from loading native libraries when
380 debugging a cross-target corefile.
381
382 2012-09-28 selven <pcthegreat@gmail.com>
383
384 Make definition match declaration.
385
386 * regcache.c (regcache_register_status): Change return type to
387 enum register_status.
388
389 2012-09-28 Yao Qi <yao@codesourcery.com>
390
391 * mi/mi-main.c (mi_cmd_data_write_memory): Call
392 write_memory_with_notification instead of write_memory.
393 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
394 instead of target_write_memory.
395
396 2012-09-28 Yao Qi <yao@codesourcery.com>
397
398 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
399 when the length of content is not an even number.
400
401 2012-09-27 Tom Tromey <tromey@redhat.com>
402
403 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
404 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
405
406 2012-09-27 Joel Brobecker <brobecker@adacore.com>
407
408 * sol-thread.c (sol_thread_fetch_registers)
409 (sol_thread_store_registers): Delete commented out code.
410
411 2012-09-27 Joel Brobecker <brobecker@adacore.com>
412
413 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
414 Move these functions to sparc-sol-thread.c.
415 * sparc-sol-thread.c: New file.
416 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
417 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
418 configurations.
419 * configure: Regenerate.
420
421 2012-09-27 Joel Brobecker <brobecker@adacore.com>
422
423 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
424 Remove commented-out code.
425
426 2012-09-27 Joel Brobecker <brobecker@adacore.com>
427
428 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
429 Enable this code for sparc hosts only.
430
431 2012-09-27 Joel Brobecker <brobecker@adacore.com>
432
433 * procfs.h (procfs_find_LDT_entry): Add declaration.
434 * sol-thread.c (ps_lgetLDT): Delete local declaration of
435 function procfs_find_LDT_entry.
436
437 2012-09-27 Joel Brobecker <brobecker@adacore.com>
438
439 * procfs.c (proc_get_LDT_entry): Make static.
440
441 2012-09-27 Joel Brobecker <brobecker@adacore.com>
442
443 * procfs.c (proc_find_memory_regions): Fix declaration.
444
445 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
446
447 * amd64-tdep.c (amd64_return_value): Revert previous change
448 that used TYPE_LENGTH directly.
449 * bfin-tdep.c (bfin_extract_return_value): Likewise.
450 (bfin_store_return_value): Likewise.
451 * cris-tdep.c (cris_store_return_value): Likewise.
452 (cris_extract_return_value): Likewise.
453 * h8300-tdep.c (h8300_extract_return_value): Likewise.
454 * hppa-tdep.c (hppa64_return_value): Likewise.
455 * lm32-tdep.c (lm32_store_return_value): Likewise.
456 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
457 * spu-tdep.c (spu_value_from_register): Likewise.
458 * vax-tdep.c (vax_return_value): Likewise.
459
460 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
461
462 * gdbtypes.c (lookup_array_range_type): Expand parameters
463 LOW_BOUND and HIGH_BOUND to LONGEST.
464 (lookup_string_range_type): Likewise.
465 * gdbtypes.h (lookup_array_range_type): Likewise.
466 (lookup_string_range_type): Likewise.
467 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
468 Expand HIGHBOUND to ssize_t.
469 (value_string): Likewise.
470 * value.h (value_cstring): Expand parameter LEN to ssize_t.
471 (value_string): Likewise.
472
473 2012-09-27 Yao Qi <yao@codesourcery.com>
474
475 PR breakpoints/13898
476 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
477 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
478 per breakpoint type.
479
480 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
481
482 * procfs.c: Add gdb_bfd header.
483 * rs6000-nat.c: Likewise.
484 * solib-pa64.c: Likewise.
485 * spu-linux-nat.c: Likewise.
486 * windows-nat.c: Likewise.
487
488 2012-09-26 Tom Tromey <tromey@redhat.com>
489
490 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
491
492 2012-09-26 Tom Tromey <tromey@redhat.com>
493
494 * dwarf2read.c (mark_common_block_symbol_computed): New function.
495 (read_common_block): Handle child DIEs with
496 DW_AT_data_member_location.
497 (new_symbol_full): Add special case for common blocks.
498
499 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
500 Tom Tromey <tromey@redhat.com>
501
502 * dwarf2read.c (read_common_block): Rewrite.
503 (new_symbol_full): Handle DW_TAG_common_block.
504 * f-lang.c (head_common_list, find_common_for_function):
505 Remove.
506 * f-lang.h (struct common_entry, struct saved_f77_common,
507 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
508 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
509 BLANK_COMMON_NAME_LOCAL): Remove.
510 (struct common_block): New.
511 * f-valprint.c (list_all_visible_commons): Remove.
512 (info_common_command_for_block): New function.
513 (info_common_command): Use it.
514 * stack.c (iterate_over_block_locals): Special case for
515 COMMON_BLOCK_DOMAIN.
516 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
517 constant.
518 (struct general_symbol_info) <value.common_block>: New field.
519 (SYMBOL_VALUE_COMMON_BLOCK): New define.
520
521 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
522 Tom Tromey <tromey@redhat.com>
523
524 * f-lang.c (allocate_saved_bf_node,
525 allocate_saved_function_node, allocate_saved_f77_common_node,
526 allocate_common_entry_node, tail_common_list, current_common,
527 saved_bf_list, saved_bf_list_end, current_head_bf_list,
528 tmp_bf_ptr, add_common_block, add_common_entry,
529 find_first_common_named, patch_common_entries,
530 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
531 global_remote_debug, get_bf_for_fcn, saved_function_list,
532 saved_function_list_end, clear_function_list, struct saved_fcn,
533 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
534 SAVED_BF, SAVED_BF_PTR): Remove.
535 * f-lang.h (tail_common_list, current_common,
536 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
537 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
538 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
539 real_main_c_value): Remove.
540 * f-valprint.c (there_is_a_visible_common_named): Remove.
541
542 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
543
544 * breakpoint.c (update_global_location_list): Ignore previous
545 duplicate status of a breakpoint when starting a new scan for
546 duplicate breakpoints.
547
548 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
549 PR breakpoints/14419
550 * arm-tdep.c (arm_skip_prologue): Extending producer check to
551 support LLVM compiler.
552
553 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
554
555 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
556 * bfin-tdep.c (bfin_extract_return_value): Likewise.
557 (bfin_store_return_value): Likewise.
558 * cris-tdep.c (cris_store_return_value): Likewise.
559 (cris_extract_return_value): Likewise.
560 * h8300-tdep.c (h8300_extract_return_value): Likewise.
561 * hppa-tdep.c (hppa64_return_value): Likewise.
562 * lm32-tdep.c (lm32_store_return_value): Likewise.
563 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
564 * spu-tdep.c (spu_value_from_register): Likewise.
565 * vax-tdep.c (vax_return_value): Likewise.
566
567 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
568
569 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
570 parameter LEN to ssize_t.
571
572 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
573
574 * ada-valprint.c (ada_val_print_1): Eliminate single-use
575 variable LEN.
576 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
577 directly.
578 (alpha_store_return_value): Likewise.
579 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
580 (amd64_push_arguments): Likewise.
581 * ax-gdb.c (gen_trace_static_fields): Likewise.
582 (gen_traced_pop): Likewise.
583 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
584 * breakpoint.c (update_watchpoint): Likewise.
585 * findcmd.c (parse_find_args): Use local variable for type
586 instead of length.
587 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
588 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
589 (h8300_store_return_value): Likewise.
590 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
591 Use i386_darwin_arg_type_alignment directly.
592 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
593 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
594 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
595 (m68hc11_extract_return_value): Likewise.
596 * mep-tdep.c (mep_push_dummy_call): Likewise.
597 * printcmd.c (float_type_from_length): Likewise.
598 * s390-tdep.c (s390_value_from_register): Likewise.
599 * stack.c (read_frame_arg): Likewise.
600 * tracepoint.c (encode_actions_1): Likewise.
601 * valops.c (value_fetch_lazy): Use local variable for type
602 instead of length. Use TYPE_LENGTH directly.
603 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
604
605 2012-09-25 Joel Brobecker <brobecker@adacore.com>
606
607 * symtab.c (skip_prologue_sal): Fix typo in comment.
608
609 2012-09-25 Joel Brobecker <brobecker@adacore.com>
610
611 * linespec.c (create_sals_line_offset): Fix typo in comment.
612
613 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
614
615 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
616 use plongest to print the array size.
617
618 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
619
620 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
621 * p-valprint.c (pascal_type_print_base): Likewise.
622
623 2012-09-22 Yao Qi <yao@codesourcery.com>
624
625 * remote.c (remote_get_trace_status): Remove setting default
626 values of fields of 'ts'.
627
628 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
629
630 Fix internal error on canonicalization of clang types.
631 * cp-name-parser.y (operator): New comment at make_operator call for
632 new, delete, new[] and delete[].
633 (exp): Use "sizeof ". Add new comment at make_operator call.
634
635 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
636
637 Fix disassemble without parameters in tailcall frame.
638 * cli/cli-cmds.c (disassemble_current_function): Use
639 get_frame_address_in_block.
640
641 2012-09-21 Tom Tromey <tromey@redhat.com>
642
643 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
644 TYPE_CODE_UNION>: Unify, removing a goto.
645
646 2012-09-21 Tom Tromey <tromey@redhat.com>
647
648 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
649
650 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
651
652 * findvar.c (read_frame_register_value): Mark the result value as
653 optimized out if any of the input registers have been optimized out.
654
655 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
656
657 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
658
659 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
660
661 * eval.c (evaluate_subexp_standard): Eliminate single-use
662 variable LOWER.
663
664 2012-09-21 Yao Qi <yao@codesourcery.com>
665
666 * mi/mi-interp.c: Declare mi_record_changed.
667 (mi_interpreter_init): Call observer_attach_record_changed.
668 (mi_record_changed): New.
669 * record.c (record_open): Call observer_notify_record_changed.
670 (cmd_record_stop): Call observer_notify_record_changed.
671 * NEWS: Mention it.
672
673 2012-09-20 Tom Tromey <tromey@redhat.com>
674
675 * NEWS: Update.
676 * python/python.c (finalize_python): New function.
677 (_initialize_python): Make a final cleanup.
678
679 2012-09-19 Doug Evans <dje@google.com>
680
681 * buildsym.h (param_symbols): Delete, unused.
682 (context_stack): Delete member "params", unused.
683 * buildsym.c (push_context): Update.
684 * dwarf2read.c (read_func_scope): Update.
685
686 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
687
688 * sh-tdep.c (sh_register_convert_to_virtual)
689 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
690 all callers. Just do a memcpy if not the little-endian case.
691
692 * h8300-tdep.c (h8300_gdbarch_init): Invoke
693 set_gdbarch_double_format and set_gdbarch_long_double_format.
694 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
695 set_gdbarch_double_format.
696 * sh-tdep.c (sh_gdbarch_init): Likewise.
697
698 * NEWS: Document the removal of SH's 'regs' command.
699 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
700 command.
701
702 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
703
704 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
705 `jump'.
706
707 2012-09-18 Joel Brobecker <brobecker@adacore.com>
708
709 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
710 language when iterating over symbols.
711
712 2012-09-18 Yao Qi <yao@codesourcery.com>
713
714 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
715 (mi_interpreter_init): Call observer_attach_tsv_created and
716 observer_attach_tsv_deleted.
717 (mi_tsv_created, mi_tsv_deleted): New.
718 * tracepoint.c (delete_trace_state_variable): Call
719 observer_notify_tsv_deleted.
720 (trace_variable_command): Call observer_notify_tsv_created.
721 (delete_trace_variable_command): Call
722 observer_notify_tsv_deleted.
723 (create_tsv_from_upload): Call observer_notify_tsv_created.
724 * NEWS: Mention it.
725
726 2012-09-18 Yao Qi <yao@codesourcery.com>
727
728 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
729 if traceframe changed.
730 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
731 "trace-find".
732 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
733 (mi_interpreter_init): Hook mi_traceframe_changed to observer
734 'traceframe_changed'.
735 (mi_traceframe_changed): New.
736 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
737 New field.
738 * NEWS: Mention the new MI notification.
739
740 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
741
742 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
743
744 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
745
746 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
747 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
748 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
749 Extend code also for PaX support. Convert all gdb_assert to warning
750 calls.
751
752 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
753
754 Implement auto-load user conveniences suggested by Doug Evans.
755 * auto-load.c: Include top.h.
756 (file_is_auto_load_safe): New variable advice_printed. Print advice.
757 (_initialize_auto_load): New variable scripts_directory_help. Mention
758 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
759 scripts-directory. Document in online help one can use also files for
760 set auto-load safe-path.
761 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
762 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
763
764 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
765
766 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
767 of LEN.
768
769 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
770
771 * m2-valprint.c (m2_print_array_contents): Eliminate variable
772 ELTLEN and use TYPE_LENGTH directly.
773 (m2_val_print): Likewise.
774 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
775 variable LEN and use TYPE_LENGTH directly.
776 (m68k_svr4_store_return_value): Likewise.
777 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
778 ARGLEN and use TYPE_LENGTH directly.
779 (mips_o64_push_dummy_call): Likewise.
780 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
781 variable LENGTH and use TYPE_LENGTH directly.
782 (s390_function_arg_float): Likewise.
783 (s390_function_arg_integer): Likewise.
784 (s390_push_dummy_call): Likewise.
785 (s390_return_value_convention): Likewise.
786 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
787 TYPE_LENGTH directly.
788
789 2012-09-17 Yao Qi <yao@codesourcery.com>
790
791 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
792 Update comment to add_setshow_integer_cmd.
793 * cli/cli-setshow.c (do_set_command): Handle case
794 'var_zuinteger_unlimited'.
795 (do_show_command): Likewise.
796 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
797 for command 'remotetimeout'.
798 * command.h (enum var_types): New zuinteger_unlimited. Update comment
799 to var_integer.
800 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
801 for command 'set listsize'.
802
803 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
804
805 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
806 variable LEN.
807
808 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
809
810 PR 14119
811 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
812 (frame_pop): Drop also TAILCALL_FRAME frames.
813 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
814
815 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
816 Pedro Alves <palves@redhat.com>
817
818 PR 14548
819 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
820 function start if we are already at function start. Both for
821 reverse-next and for reverse-step into function without line number
822 info.
823
824 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
825
826 Code cleanup - rename 'inline' depth to 'artificial' depth.
827 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
828 frame_id_artificial_p, extend the comment.
829 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
830 * frame.c (fprint_frame_id): Rename at a user, change debug output
831 text to "artificial=".
832 (skip_inlined_frames): Rename to ...
833 (skip_artificial_frames): ... here. Extend the comment.
834 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
835 (frame_id_inlined_p): Rename to ...
836 (frame_id_artificial_p): ... here. Rename at a user.
837 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
838 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
839 at a user.
840 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
841 Extend the comment.
842 (frame_id_inlined_p): Rename to ...
843 (frame_id_artificial_p): ... here.
844 * inline-frame.c (inline_frame_this_id): Rename at a user.
845
846 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
847
848 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
849 vector variables using vector_size syntax rather than array
850 syntax.
851
852 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
853
854 * valarith.c (value_concat): Replace unsafe ALLOCA with
855 XMALLOC/XFREE.
856
857 2012-09-14 Pedro Alves <palves@redhat.com>
858
859 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
860
861 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
862
863 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
864 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
865 data-directory as appropriate.
866
867 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
868
869 * printcmd.c (ui_printf): Eliminate single-use variable
870 PARAM_LEN.
871
872 2012-09-14 Yao Qi <yao@codesourcery.com>
873 Pedro Alves <palves@redhat.com>
874
875 * valops.c (value_assign): Move observer_notify_target_changed
876 below to replace reinit_frame_cache.
877
878 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
879
880 Refactor Python "gdb" module into a proper Python package, by
881 introducing a new "_gdb" module for code implemented in C, and
882 using reload/__import__ instead of exec.
883 * python/lib/gdb/__init__.py: Import * from _gdb.
884 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
885 prompt_hook, sys.argv): Moved from finish_python_initialization.
886 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
887 (packages, auto_load_packages): New list and function replacing
888 module_dict and auto-loading code, using __file__ instead of
889 gdb.PYTHONDIR and reload/__import__ instead of exec.
890 (GdbSetPythonDirectory): Replacing function of the same name
891 from finish_python_initialization, using reload/__import__ instead
892 of exec, as well as call auto_load_packages.
893 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
894 gdb_python_module and not gdb_module.
895 * python/python-internal.h (gdb_python_module): Declare.
896 * python/python.c (gdb_python_module): New global.
897 (before_prompt_hook): Check gdb_python_module and not gdb_module.
898 (_initialize_python): Rename gdb module to _gdb.
899 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
900 (finish_python_initialization): Move Python code to
901 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
902 __main__.
903
904 2012-09-13 Pedro Alves <palves@redhat.com>
905
906 * Makefile.in (COMMON_OBS): Add registry.o.
907 * registry.c: New file.
908 * registry.h (struct registry_container): Declare.
909 (registry_data_callback): New typedef.
910 (struct registry_data, struct registry_data_registration, struct
911 registry_data_registry): New type.
912 (register_data_with_cleanup, registry_alloc_data)
913 (registry_callback_adaptor, registry_clear_data)
914 (registry_container_free_data, registry_set_data, registry_data):
915 Declare.
916 (DEFINE_REGISTRY): Refactor structures and functions as shims over
917 the new common structures and functions.
918 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
919 callback typedefs.
920
921 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
922
923 * remote.c (remote_insert_hw_breakpoint): Throw exception if
924 there is an error inserting hardware breakpoints and use the
925 error message from the target.
926
927 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
928 Catch this exception and print the error message contained within. Do not
929 print the default hardware error breakpoint message in this case.
930
931 2012-09-12 Doug Evans <dje@google.com>
932
933 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
934 cu == NULL.
935
936 2012-09-11 Doug Evans <dje@google.com>
937
938 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
939 .gdb_index symbol attributes if there are none.
940
941 2012-09-11 Joel Brobecker <brobecker@adacore.com>
942
943 * symtab.h (struct minimal_symbol) [has_size]: New field.
944 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
945 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
946 * printcmd.c (build_address_symbolic): Only filter out zero-sized
947 minimal symbols if the symbol's size is actually known.
948 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
949 of msymbol's size field. Add comment.
950 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
951 SET_MSYMBOL_SIZE to set the minimal symbol size.
952
953 2012-09-11 Joel Brobecker <brobecker@adacore.com>
954
955 * minsyms.c (install_minimal_symbols): Use memset to fill entire
956 minimal_symbol struct object, rather than setting some of its
957 fields one by one.
958
959 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
960
961 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
962 passed_a_ptr flag when displaying typedef types.
963
964 2012-09-10 Joel Brobecker <brobecker@adacore.com>
965
966 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
967 the optimized_out flag is preserved.
968
969 2012-09-10 Anthony Green <green@moxielogic.com>
970
971 * moxie-tdep.c (moxie_analyze_prologue): Update for function
972 prologue changes in GCC.
973
974 2012-09-10 Keith Seitz <keiths@redhat.com>
975
976 PR gdb/13483
977 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
978 (BOOL_CONVERSION_BADNESS): ... this.
979 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
980 (rank_one_type): Allow all boolean conversions
981 permitted by the standard.
982
983 2012-09-06 Tom Tromey <tromey@redhat.com>
984
985 * python/py-newobjfileevent.c (create_new_objfile_event_object):
986 Don't decref py_objfile.
987
988 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
989
990 Do not enable -lmcheck by default when Python is enabled with
991 threading support.
992 * configure.ac: (python_has_threads) New variable, by testing
993 if WITH_THREAD is defined in Python.h.
994 Move --enable-lmcheck after --with-python.
995 Do not enable -lmcheck by default if python_has_threads=yes.
996 Warn if --enable-lmcheck and python_has_threads=yes.
997 * configure: Regenerate.
998
999 2012-08-31 Yao Qi <yao@codesourcery.com>
1000
1001 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1002 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1003 Update some commands.
1004 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1005 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1006 to 1.
1007
1008 2012-08-31 Yao Qi <yao@codesourcery.com>
1009
1010 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1011
1012 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1013
1014 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1015
1016 2012-08-29 Doug Evans <dje@google.com>
1017
1018 * main.c (print_gdb_help): Remove reference to
1019 --use-deprecated-index-sections.
1020
1021 2012-08-28 Yao Qi <yao@codesourcery.com>
1022
1023 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1024 (init_cmds): Call add_setshow_uinteger_cmd for command
1025 'max-user-call-depth'.
1026 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1027 declaration of 'max_user_call_depth'.
1028 * frame.c (backtrace_limit): Add 'unsigned'.
1029 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1030 'limit'.
1031 * remote.c (remoteaddresssize): Add 'unsigned'.
1032 (remote_address_masked): Change local var 'address_size' to
1033 'unsigned'.
1034 (_initialize_remote): Call add_setshow_uinteger_cmd for
1035 'remoteaddresssize'.
1036 * top.c (history_size): Add 'unsigned'.
1037 (show_commands): Change local variables to 'unsigned'.
1038 (set_history_size_command): Don't check history_size is negative.
1039 Adjust the condition to call unstifle_history and set history_size
1040 to UNIT_MAX.
1041
1042 2012-08-28 Pedro Alves <palves@redhat.com>
1043
1044 PR gdb/14428
1045
1046 * infcmd.c (default_print_one_register_info): New, factored out
1047 from default_print_registers_info.
1048 (default_print_registers_info): Use it. Mark value unavailable if
1049 necessary.
1050 (registers_info): Print user registers with
1051 default_print_one_register_info.
1052
1053 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1054
1055 PR tui/14486
1056 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1057 is not NULL before referencing it.
1058
1059 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1060
1061 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1062 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1063 original PC for it.
1064
1065 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1066 Jan Kratochvil <jan.kratochvil@redhat.com>
1067
1068 * auto-load.c (auto_load_objfile_script): Rename to ...
1069 (auto_load_objfile_script_1): ... here, change variable realname to
1070 parameter realname, document it, add return value, add variable retval.
1071 (auto_load_objfile_script): New function.
1072
1073 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1074
1075 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1076 followed by a whitespace.
1077
1078 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1079
1080 PR gdb/14494.
1081 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1082 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1083 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1084 here.
1085
1086 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1087
1088 * memattr.c (create_mem_region): Fix memory region overlapping
1089 checking.
1090
1091 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1092
1093 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1094 with xmalloc/cleanup.
1095 * mt-tdep.c (mt_push_dummy_call): Likewise.
1096 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1097 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1098
1099 2012-08-24 Yao Qi <yao@codesourcery.com>
1100
1101 * jv-exp.y (push_expression_name): Add "." at the end of error
1102 message.
1103
1104 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1105
1106 Document how to return from "python-interactive" to GDB.
1107 * python/python.c (_initialize_python): Update documentation.
1108
1109 2012-08-23 Pedro Alves <palves@redhat.com>
1110
1111 * infrun.c (_initialize_infrun) <handle command help text>:
1112 Mention that multiple signals are supported.
1113
1114 2012-08-23 Pedro Alves <palves@redhat.com>
1115
1116 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1117 string.
1118
1119 2012-08-23 Yao Qi <yao@codesourcery.com>
1120
1121 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1122 (tfind_1): Don't call registers_changed, set_traceframe_num,
1123 and clear_traceframe_info.
1124 Call set_current_traceframe.
1125 (set_current_traceframe): call set_traceframe_num.
1126
1127 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1128
1129 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1130 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1131
1132 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1133
1134 Enable readline in Python in a GDB-specific way and block the
1135 standard Python readline module to prevent conflicts with GDB.
1136 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1137 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1138 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1139 * python/py-gdb-readline.c: New file.
1140 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1141 prototype.
1142 * python/python.c (_initialize_python): Call
1143 gdbpy_initialize_gdb_readline.
1144
1145 2012-08-22 Keith Seitz <keiths@redhat.com>
1146
1147 * defs.h: Include build-gnulib/config.h
1148
1149 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1150
1151 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1152 and blx pc.
1153
1154 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1155
1156 Add a new "python-interactive" command that starts a standard
1157 Python interactive prompt with "pi" as alias, and add "py" as
1158 an alias to "python".
1159 * NEWS: Mention the new commands.
1160 * python/python.c (eval_python_command): New function.
1161 (python_interactive_command): For "python-interactive" with
1162 arguments, call eval_python_command. For "python-interactive"
1163 without arguments, call PyRun_InteractiveLoop.
1164 (_initialize_python): Add "python-interactive" command with
1165 "pi" as alias, and add "py" as an alias to "python".
1166
1167 2012-08-22 Tom Tromey <tromey@redhat.com>
1168
1169 * defs.h (quit_flag): Don't declare.
1170 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1171 (QUIT): Use new functions.
1172 * event-top.c (command_handler): Use clear_quit_flag.
1173 (handle_sigint): Use set_quit_flag.
1174 (async_request_quit): Use check_quit_flag. Don't check
1175 immediate_quit.
1176 * exceptions.c (throw_exception): Use clear_quit_flag.
1177 * main.c (captured_main): Use clear_quit_flag.
1178 * python/python.c (clear_quit_flag, set_quit_flag)
1179 (check_quit_flag): New functions.
1180 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1181 clear_quit_flag.
1182 * remote.c (remote_wait_as): Use check_quit_flag,
1183 clear_quit_flag.
1184 (remote_start_remote): Call QUIT.
1185 * symfile.c (load_progress): Use check_quit_flag.
1186 * top.c (command_loop): Use clear_quit_flag.
1187 (command_line_input): Call QUIT.
1188 * utils.c (quit_flag): Conditionally define.
1189 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1190 functions.
1191 (prompt_for_continue): Call QUIT. Use quit, not
1192 async_request_quit.
1193 * remote-mips.c (mips_expect_timeout): Call QUIT.
1194 * monitor.c (monitor_expect): Call QUIT.
1195
1196 2012-08-22 Tom Tromey <tromey@redhat.com>
1197
1198 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1199 (async_init_signals): Update.
1200 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1201 (SIGWINCH_HANDLER_BODY): Remove.
1202
1203 2012-08-22 Tom Tromey <tromey@redhat.com>
1204
1205 * jit.c (jit_object_close_impl): Don't malloc the objfile
1206 name.
1207 * objfiles.c (allocate_objfile): Don't malloc the objfile
1208 name.
1209 (free_objfile): Don't free the objfile name.
1210 * objfiles.h (struct objfile) <name>: Update comment.
1211 * symfile.c (reread_symbols): Fix reference counting. Don't
1212 malloc objfile name.
1213
1214 2012-08-22 Tom Tromey <tromey@redhat.com>
1215
1216 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1217 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1218 (symfile_bfd_open): Likewise.
1219 (generic_load): Likewise.
1220 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1221 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1222 gdb_bfd_open.
1223 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1224 Use gdb_bfd_open.
1225 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1226 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1227 (pmon_load_fast): Likewise.
1228 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1229 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1230 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1231 (macho_check_dsym): Likewise.
1232 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1233 (m32r_upload_command): Likewise.
1234 * gdb_bfd.h (gdb_bfd_cache): Declare.
1235 * gdb_bfd.c (struct gdb_bfd_data): New.
1236 (gdb_bfd_cache): New global.
1237 (struct gdb_bfd_cache_search): New.
1238 (hash_bfd): New function.
1239 (eq_bfd): Likewise.
1240 (gdb_bfd_open): Likewise.
1241 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1242 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1243 gdb_bfd_data.
1244 * exec.c (exec_file_attach): Use gdb_bfd_open.
1245 * dsrec.c (load_srec): Use gdb_bfd_open.
1246
1247 2012-08-22 Tom Tromey <tromey@redhat.com>
1248
1249 * dwarf2read.c (macro_start_file): Update.
1250 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1251 (free_objfile_per_bfd_storage): Destroy macro_cache.
1252 (allocate_objfile, free_objfile): Update.
1253 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1254 New field.
1255 (struct objfile) <macro_cache>: Remove.
1256 * symfile.c (reread_symbols): Update.
1257 * symmisc.c (print_symbol_bcache_statistics): Update.
1258 (print_objfile_statistics): Update.
1259
1260 2012-08-22 Tom Tromey <tromey@redhat.com>
1261
1262 * elfread.c (elf_symtab_read): Update.
1263 * objfiles.c (objfiles_bfd_data): New global.
1264 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1265 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1266 (allocate_objfile, free_objfile): Update.
1267 (_initialize_objfiles): Initialize objfiles_bfd_data.
1268 * objfiles.h (struct objfile_per_bfd_storage): New.
1269 (struct objfile) <per_bfd>: New field.
1270 <filename_cache>: Remove.
1271 (set_objfile_per_bfd): Declare.
1272 * symfile.c (reread_symbols): Update. Call
1273 set_objfile_per_bfd.
1274 (allocate_symtab): Update.
1275 * symmisc.c (print_symbol_bcache_statistics): Update.
1276 (print_objfile_statistics): Print the size of the BFD obstack.
1277
1278 2012-08-22 Tom Tromey <tromey@redhat.com>
1279
1280 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1281 * gdb_bfd.c: Use DEFINE_REGISTRY.
1282 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1283 (gdb_bfd_ref): Call bfd_alloc_data.
1284 (gdb_bfd_unref): Call bfd_free_data.
1285
1286 2012-08-22 Tom Tromey <tromey@redhat.com>
1287
1288 * registry.h (struct registry_fields): New.
1289 (REGISTRY_FIELDS): Redefine.
1290 (REGISTRY_ACCESS_FIELD): New macro.
1291 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1292 functions.
1293
1294 2012-08-22 Tom Tromey <tromey@redhat.com>
1295
1296 * auto-load.c (_initialize_auto_load): Update.
1297 * solib-svr4.c (_initialize_svr4_solib): Update
1298 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1299 * solib-darwin.c (_initialize_darwin_solib): Update.
1300 * registry.h: New file.
1301 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1302 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1303 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1304 (register_program_space_data_with_cleanup)
1305 (register_program_space_data, program_space_alloc_data)
1306 (clear_program_space_data, set_program_space_data)
1307 (program_space_data): Don't declare.
1308 * progspace.c: Use DEFINE_REGISTRY.
1309 (struct program_space_data, struct
1310 program_space_data_registration, struct
1311 program_space_data_registry, program_space_data_registry)
1312 (register_program_space_data_with_cleanup)
1313 (register_program_space_data, program_space_alloc_data)
1314 (program_space_free_data, clear_program_space_data)
1315 (set_program_space_data, program_space_data): Remove.
1316 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1317 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1318 (register_objfile_data_with_cleanup, register_objfile_data)
1319 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1320 declare.
1321 * objfiles.c: Use DEFINE_REGISTRY.
1322 (struct objfile_data, struct objfile_data_registration, struct
1323 objfile_data_registry, objfile_data_registry)
1324 (register_objfile_data_with_cleanup, register_objfile_data)
1325 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1326 (set_objfile_data, objfile_data): Remove.
1327 (_initialize_objfiles): Update.
1328 * jit.c (_initialize_jit): Update.
1329 * inflow.c (_initialize_inflow): Update.
1330 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1331 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1332 (register_inferior_data_with_cleanup, register_inferior_data)
1333 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1334 declare.
1335 * inferior.c: Use DEFINE_REGISTRY.
1336 (struct inferior_data, struct inferior_data_registration, struct
1337 inferior_data_registry, inferior_data_registry)
1338 (register_inferior_data_with_cleanup, register_inferior_data)
1339 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1340 (set_inferior_data, inferior_data): Remove.
1341 * auxv.c (_initialize_auxv): Update.
1342 * ada-lang.c (_initialize_ada_language): Update.
1343 * breakpoint.c (_initialize_breakpoint): Update.
1344 * i386-nat.c (i386_use_watchpoints): Update.
1345
1346 2012-08-22 Tom Tromey <tromey@redhat.com>
1347
1348 * exec.c (exec_close, exec_file_attach): Update.
1349 (add_to_section_table): Initialize 'key' field.
1350 (add_target_sections, remove_target_sections): Add 'key' argument.
1351 * exec.h (add_target_sections, remove_target_sections): Add
1352 'key' argument.
1353 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1354 (reload_shared_libraries_1): Update.
1355 * target.h (struct target_section) <key>: New field.
1356
1357 2012-08-22 Tom Tromey <tromey@redhat.com>
1358
1359 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1360
1361 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1362
1363 * symfile.c (allocate_symtab): Use host_address_to_string
1364 function instead of cast of pointer to long which is not
1365 compatible with x86_64-w64-mingw32 build.
1366
1367 2012-08-19 Andrew Pinski <apinski@cavium.com>
1368
1369 * mips-tdep.c (is_octeon): New function.
1370 (is_octeon_bbit_op): New function.
1371 (mips32_next_pc): Handle Octeon's bbit instructions.
1372 (mips32_instruction_has_delay_slot): Likewise.
1373
1374 2012-08-19 Andrew Pinski <apinski@cavium.com>
1375
1376 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1377 before the function.
1378
1379 2012-08-19 Andrew Pinski <apinski@cavium.com>
1380
1381 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1382
1383 2012-08-19 Keith Seitz <keiths@redhat.com>
1384
1385 PR c++/14365
1386 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1387 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1388
1389 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1390
1391 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1392 The typo broke "make TAGS".
1393
1394 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1395
1396 GDB 7.5 released.
1397
1398 2012-08-17 Keith Seitz <keiths@redhat.com>
1399
1400 PR c++/13356
1401 * gdbtypes.c (strict_type_checking): New variable.
1402 (show_strict_type_checking): New function.
1403 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1404 if strict type checking is disabled.
1405 (_initialize_gdbtypes): Add "check type" subcommand.
1406 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1407
1408 2012-08-17 Keith Seitz <keiths@redhat.com>
1409
1410 * language.h (type_mode): Remove.
1411 (type_check): Remove.
1412 (struct language_defn): Remove la_type_check.
1413 (STRICT_TYPE): Remove unused macro.
1414 (type_error): Remove.
1415 * language.c (set_type_range_case): Renamed to ...
1416 (set_range_case): ... this. Update all callers.
1417 Remove type_mode/type_check.
1418 (type_mode): Remove.
1419 (type_check): Remove.
1420 (show_type_command): Remove.
1421 (set_type_command): Remove.
1422 (language_info): Remove type checking output.
1423 (type_error): Remove unused function.
1424 (range_error): Update comment.
1425 (unknown_language_defn): Remove la_type_check.
1426 (auto_language_defn): Likewise.
1427 (local_language_defn): Likewise.
1428 (_initialize_language): Remove "check type" subcommand.
1429 * ada-lang.c (ada_language_defn): Remove la_type_check.
1430 * c-lang.c (c_language_defn): Likewise.
1431 (cplus_language_defn): Likewise.
1432 (asm_language_defn): Likewise.
1433 (minimal_language_defn): Likewise.
1434 * d-lang.c (d_language_defn): Likewise.
1435 * f-lang.c (f_language_defn): Likewise.
1436 * go-lang.c (go_language_defn): Likewise.
1437 * jv-lang.c (java_language_defn): Likewise.
1438 * m2-lang.c (m2_language_defn): Likewise.
1439 * objc-lang.c (objc_language_defn): Likewise.
1440 * opencl-lang.c (opencl_language_defn): Likewise.
1441 * p-lang.c (pascal_language_defn): Likewise.
1442
1443 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1444
1445 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1446
1447 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1448
1449 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1450 New function.
1451 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1452 using the regache. Use ia64_hpux_get_register_from_save_state_t
1453 to access the bsp and bspstore registers if not.
1454
1455 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1456
1457 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1458 * breakpoint.c (detach_breakpoints): Change pid parameter into
1459 a ptid. Adjust code accordingly.
1460 * infrun.c (handle_inferior_event): Delete variable child_pid.
1461 Update call to detach_breakpoints to pass the child ptid for
1462 fork events.
1463 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1464 assert that inferior_ptid's lwp is zero.
1465 (linux_handle_extended_wait): Update call to detach_breakpoints.
1466 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1467 detach_breakpoints.
1468
1469 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1470
1471 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1472 parent, only call detach_breakpoints if tts.tts_event ==
1473 TTEVT_VFORK.
1474
1475 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1476
1477 * dwarf2-frame.c (dwarf2_frame_cache): Use
1478 get_frame_address_in_block instead of get_frame_pc as
1479 the bound for executing the frame's FDE.
1480
1481 2012-08-16 Yao Qi <yao@codesourcery.com>
1482
1483 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1484 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1485 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1486 (c_type_print_varspec_suffix): Likewise.
1487 * eval.c (evaluate_subexp_standard): Likewise.
1488 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1489 (f_type_print_varspec_suffix): Likewise.
1490 * gdbtypes.c (is_scalar_type): Likewise.
1491 (recursive_dump_type): Likewise.
1492 * infcall.c (value_arg_coerce): Likewise.
1493 * m2-valprint.c (m2_val_print): Likewise.
1494 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1495 (pascal_type_print_varspec_suffix): Likewise.
1496 (pascal_type_print_base): Likewise.
1497 * p-valprint.c (pascal_val_print): Likewise.
1498 (pascal_val_print): Likewise.
1499 * valops.c (value_slice): Likewise.
1500 * valprint.c (scalar_type_p): Likewise.
1501 * valarith.c (value_bitstring_subscript): Remove.
1502 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1503 Remove comment on TYPE_CODE_BITSTRING.
1504
1505 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1506 TYPE_CODE_BITSTRING.
1507
1508 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1509 slot 0.
1510
1511 2012-08-16 Yao Qi <yao@codesourcery.com>
1512
1513 * tracepoint.c (trace_find_none_command): Remove.
1514 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1515
1516 2012-08-16 Yao Qi <yao@codesourcery.com>
1517
1518 * remote.c (handle_notification): Remove parameter 'length'.
1519 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1520
1521 2012-08-15 Keith Seitz <keiths@redhat.com>
1522
1523 * gdbtypes.c (opaque_type_resolution): Make static.
1524 Add missing comment.
1525 (overload_debug): Add missing comment.
1526 (show_opaque_type_resolution): Likewise.
1527 (show_overload_debug): Likewise.
1528 (print_bit_vector): Remove unnecessary forward declaration.
1529 (print_arg_types): Likewise.
1530 (dump_fn_fieldlists): Likewise.
1531 (print_cplus_stuff): Likewise.
1532
1533 2012-08-15 Tom Tromey <tromey@redhat.com>
1534
1535 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1536 (gdb_bfd_ref): Initialize new field.
1537 (gdb_bfd_unref): Unref the archive BFD.
1538 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1539 parent archive.
1540
1541 2012-08-15 Tom Tromey <tromey@redhat.com>
1542
1543 PR python/14387:
1544 * python/py-bpevent.c (create_breakpoint_event_object): Update
1545 comment.
1546 * python/py-event.c (evpy_add_attribute): Update comment.
1547 * python/py-exitedevent.c (create_exited_event_object): Fix
1548 reference counting and error handling.
1549 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1550 Fix reference counting.
1551 * python/py-signalevent.c (create_signal_event_object): Fix
1552 reference counting and error handling.
1553 * python/py-stopevent.c (emit_stop_event): Fix reference
1554 counting.
1555 * python/py-threadevent.c (get_event_thread): Return a
1556 borrowed reference.
1557 * python/py-type.c (convert_field): Fix reference counting.
1558
1559 2012-08-15 Tom Tromey <tromey@redhat.com>
1560
1561 * dwarf2read.c (dwarf_decode_macro_bytes)
1562 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1563 as hash key.
1564
1565 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1566
1567 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1568 stepi, nexti, finish, next, step, jump, and continue commands.
1569 * infrun.c (_initialize_infrun): Update help text for the handle
1570 command.
1571
1572 2012-08-14 Doug Evans <dje@google.com>
1573
1574 * gdbtypes.c (struct extra): Delete, unused.
1575
1576 * gdbtypes.c: Whitespace cleanup.
1577 (address_space_name_to_int): Remove "extern" from definition.
1578 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1579
1580 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1581 TYPE_POINTER_TYPE (type).
1582
1583 2012-08-14 Gary Benson <gbenson@redhat.com>
1584
1585 * solib-svr4.c (svr4_free_library_list): Use free_so.
1586
1587 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1588
1589 * .gitignore: Add go-exp.c.
1590
1591 2012-08-13 Doug Evans <dje@google.com>
1592
1593 * value.c (show_convenience): Tweak comment.
1594 (_initialize_values): Mention convenience functions in the help text
1595 for "show convenience".
1596
1597 2012-08-13 Yao Qi <yao@codesourcery.com>
1598
1599 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1600 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1601 TERNOP_SLICE_COUNT.
1602 * eval.c (evaluate_subexp_standard): Likewise.
1603 * expprint.c (print_subexp_standard): Likewise.
1604 (dump_subexp_body_standard): Likewise.
1605 * parse.c (operator_length_standard): Likewise.
1606
1607 2012-08-13 Yao Qi <yao@codesourcery.com>
1608
1609 * std-operator.def: Remove OP_BITSTRING.
1610 * breakpoint.c (watchpoint_exp_is_const): Update.
1611 * eval.c (evaluate_subexp_standard): Remove handling to
1612 OP_BITSTRING.
1613 * expprint.c (print_subexp_standard): Likewise.
1614 (dump_subexp_body_standard): Likewise.
1615 * parse.c (operator_length_standard): Likewise.
1616 * valops.c (value_bitstring): Remove.
1617 * value.h: Remove the declaration of 'value_bitstring'.
1618
1619 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1620
1621 * linespec.c (find_methods): Remove unused variables `i1' and
1622 `name_len'.
1623 (decode_line_full): Likewise for `arg_start'.
1624
1625 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1626
1627 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1628 (zlib_decompress_section): Likewise for `section_data'.
1629 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1630
1631 2012-08-10 Doug Evans <dje@google.com>
1632
1633 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1634 * NEWS: Document them.
1635 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1636 function/strfns.py.
1637 * python/py-type.c (typy_array_1): New function.
1638 (typy_array): Call it.
1639 (typy_vector): New function.
1640 (type_object_methods): Add "vector".
1641 * python/lib/gdb/function/__init__.py: New file.
1642 * python/lib/gdb/function/strfns.py: New file.
1643
1644 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1645
1646 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1647 for TYPE_FIELD_BITPOS.
1648 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1649
1650 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1651
1652 PR cli/10436:
1653 * common/vec.h (VEC_merge): Define.
1654 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1655 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1656 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1657 * completer.c: Include gdb_signals.h.
1658 (signal_completer): Define.
1659 * completer.h (signal_completer): Add prototype.
1660 * infcmd.c (_initialize_infcmd): Assign the command
1661 completer for "signal" to handle_completer.
1662 * infrun.c: Include completer.h.
1663 (handle_completer): Define.
1664 (_initialize_infrun): Declare a new local variable c. Store the
1665 result of add_com("handle") to it. Assign the command
1666 completer for "handle" to handle_completer.
1667
1668 2012-08-09 Yao Qi <yao@codesourcery.com>
1669
1670 * cli/cli-decode.c (set_cmd_prefix): New.
1671 (lookup_cmd_for_prefixlist): New.
1672 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1673 of each cmd_list_element in *prefixlist.
1674 (add_setshow_cmd_full): set_cmd_prefix.
1675 (add_alias_cmd): Likewise.
1676 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1677 Declare 'auto_boolean_enums'.
1678 * cli/cli-setshow.c: Include "observer.h".
1679 (notify_command_param_changed_p): New.
1680 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1681 Remove 'static'.
1682 (do_setshow_command): Split it to ...
1683 (do_set_command, do_show_command): ... them. New.
1684 (do_set_command): Call observer_notify_command_param_changed if
1685 notify_command_param_changed_p returns true.
1686 (cmd_show_list): Caller update.
1687 * auto-load.c (set_auto_load_cmd): Likewise.
1688 * remote.c (show_remote_cmd): Likewise.
1689 * cli/cli-setshow.h: Update declarations.
1690 * top.c (execute_command): Call do_set_command and do_show_command.
1691
1692 * NEWS: Mention new MI notification.
1693 * mi/mi-interp.c: Declare mi_command_param_changed.
1694 (mi_interpreter_init): Attach mi_command_param_changed to
1695 observer command_param_changed.
1696 (mi_command_param_changed): New.
1697 Remove mi_suppress_breakpoint_notifications.
1698 Define global variable mi_suppress_notification.
1699 (mi_breakpoint_created): Update.
1700 (mi_breakpoint_deleted): Likewise.
1701 (mi_breakpoint_modified): Likewise.
1702 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1703 'gdb-set' and set mi_suppress_notification.
1704 * mi/mi-main.h: (mi_suppress_notification): New struct.
1705
1706 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1707 Jan Kratochvil <jan.kratochvil@redhat.com>
1708
1709 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1710
1711 2012-08-09 Yao Qi <yao@codesourcery.com>
1712
1713 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1714 (skiplist): Move it to skip.c.
1715 (init_cmd_lists): Remove code setting enablebreaklist and
1716 skiplist to NULL.
1717 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1718 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1719 skiplist.
1720 * gdbcmd.h: Likewise.
1721 * skip.c (_initialize_step_skip): Move 'skiplist' from
1722 cli/cli-cmds.c.
1723
1724 2012-08-09 Yao Qi <yao@codesourcery.com>
1725
1726 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1727 * gnu-nat.c, symfile.c: Likewise.
1728
1729 2012-08-08 Aaron Gamble <agamble@google.com>
1730
1731 * utils.c (prompt_for_continue_wait_time): New static global.
1732 (make_command_stats_cleanup): Initialize it.
1733 (report_command_stats): Subtract time waiting for user.
1734 (prompt_for_continue): Track time waiting for user.
1735 (defaulted_query): Track time waiting for user.
1736
1737 2012-08-08 Doug Evans <dje@google.com>
1738
1739 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1740 UNOP_MEMVAL_TYPE.
1741 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1742 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1743 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1744 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1745 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1746 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1747 elt.
1748 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1749 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1750 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1751 (dump_prefix_expression): Handle OP_TYPE.
1752
1753 2012-08-08 Keith Seitz <keiths@redhat.com>
1754
1755 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1756 addr_start.
1757
1758 2012-08-08 Doug Evans <dje@google.com>
1759
1760 * linux-thread-db.c: #include "gdb_vecs.h".
1761 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1762 updated.
1763 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1764 (thread_db_load_search): Use a vector to iterate over path elements.
1765 Handle text appearing after "$pdir".
1766
1767 * gdb_string.h: Moved to ...
1768 * common/gdb_string.h: ... here.
1769 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1770 gdb_string.h and gdb_assert.h.
1771
1772 2012-08-08 Yao Qi <yao@codesourcery.com>
1773
1774 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1775 (tic6x_value_to_register): Likewise.
1776 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1777 and set_gdbarch_value_to_register.
1778
1779 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1780 Jean-Marc Saffroy <saffroy@gmail.com>
1781
1782 PR 11804
1783 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1784 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1785 * gcore.c (gcore_create_callback): New function comment. Add modified
1786 parameter. Only write modified regions. Set SEC_READONLY exactly
1787 according to MODIFIED.
1788 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1789 the passed modified value to FUNC.
1790 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1791 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1792 first. New variables modified and has_anonymous. Parse the lines of
1793 smaps file. Add the passed MODIFIED value to FUNC.
1794 * procfs.c (find_memory_regions_callback): Add the passed modified
1795 value.
1796
1797 2012-08-06 Tom Tromey <tromey@redhat.com>
1798
1799 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1800 (dwarf2_frame_cache): Use it.
1801 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1802 cache initialization constraint.
1803
1804 2012-08-06 Tom Tromey <tromey@redhat.com>
1805
1806 PR python/14386:
1807 * varobj.c (update_dynamic_varobj_children): Don't call
1808 PyIter_Check.
1809
1810 2012-08-06 Tom Tromey <tromey@redhat.com>
1811
1812 PR cli/14392:
1813 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1814
1815 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1816
1817 * NEWS: New entry for 'cd' default parameters.
1818 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1819
1820 2012-08-03 Tom Tromey <tromey@redhat.com>
1821
1822 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1823 return.
1824
1825 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1826
1827 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1828 to attempting lseek/write.
1829 (inf_child_fileio_pread): Likewise for pread.
1830
1831 2012-08-02 Yao Qi <yao@codesourcery.com>
1832
1833 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1834 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1835 add_setshow_zinteger_cmd.
1836 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1837 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1838 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1839 instead of add_setshow_zinteger_cmd.
1840 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1841 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1842 instead of add_setshow_zinteger_cmd.
1843 * frame.c (frame_debug): Add 'unsigned'.
1844 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1845 add_setshow_zinteger_cmd.
1846 * frame.h: Update the declaration of 'frame_debug'.
1847 * gdbtypes.c (overload_debug): Add 'unsigned'.
1848 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1849 add_setshow_zinteger_cmd.
1850 * inferior.h: Update declaration of 'debug_infrun'.
1851 * infrun.c (debug_infrun): Add 'unsigned'.
1852 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1853 add_setshow_zinteger_cmd.
1854 * jit.c (jit_debug): Add 'unsigned'.
1855 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1856 add_setshow_zinteger_cmd.
1857 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1858 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1859 instead of add_setshow_zinteger_cmd.
1860 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1861 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1862 add_setshow_zinteger_cmd.
1863 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1864 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1865 instead of add_setshow_zinteger_cmd.
1866 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1867 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1868 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1869 intead of add_setshow_zinteger_cmd.
1870 * mips-tdep.c (mips_debug): Add 'unsigned'.
1871 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1872 instead of add_setshow_zinteger_cmd.
1873 * monitor.c (monitor_debug): Add 'unsigned'.
1874 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1875 add_setshow_zinteger_cmd.
1876 * observer.c (observer_debug): Add 'unsigned'.
1877 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1878 add_setshow_zinteger_cmd.
1879 * parse.c (expressiondebug): Add 'unsigned'.
1880 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1881 add_setshow_zinteger_cmd.
1882 * record.c (record_debug): Add 'unsigned'.
1883 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1884 add_setshow_zinteger_cmd.
1885 * record.h: Update the declaration of 'record_debug'.
1886 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1887 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1888 add_setshow_zinteger_cmd.
1889 * serial.c (global_serial_debug_p): Add 'unsigned'.
1890 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1891 add_setshow_zinteger_cmd.
1892 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1893 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1894 add_setshow_zinteger_cmd.
1895 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1896 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1897 add_setshow_zinteger_cmd.
1898 * target.c (targetdebug): Add 'unsigned'.
1899 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1900 add_setshow_zinteger_cmd.
1901 * valops.c (overload_debug): Add 'unsigned'.
1902 * varobj.c (varobjdebug): Add 'unsigned'.
1903 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1904 add_setshow_zinteger_cmd.
1905 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1906 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1907 instead of add_setshow_zinteger_cmd.
1908
1909 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1910 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1911 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1912 instead of add_setshow_zinteger_cmd.
1913 * gdbarch.c, gdbarch.h: Re-generated.
1914
1915 2012-08-02 Yao Qi <yao@codesourcery.com>
1916
1917 * nto-tdep.c: Don't include cli/cli-decode.h and
1918 cli/cli-cmds.h.
1919 (_initialize_nto_tdep): Remove.
1920 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1921 Remove field.
1922 Remove macro nto_internal_debugging.
1923
1924 2012-08-01 Richard Henderson <rth@redhat.com>
1925
1926 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1927 (mep-*-*) [gdb_target_obs]: Likewise.
1928
1929 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1930
1931 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1932 linux_get_siginfo_type.
1933
1934 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1935
1936 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1937 AT_ENTRY_POINT.
1938 (call_function_by_hand) <ON_STACK>: Call write_memory with
1939 gdbarch_breakpoint_from_pc, if possible.
1940 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1941 here.
1942
1943 2012-07-31 Yao Qi <yao@codesourcery.com>
1944
1945 * tracepoint.c: Add 'static' for some variables.
1946
1947 2012-07-31 Yao Qi <yao@codesourcery.com>
1948
1949 * go32-nat.c: Declare _initialize_go32_nat.
1950 * ser-go32.c: Declare _initialize_ser_dos.
1951 * top.c (do_chdir_cleanup): Add 'static'.
1952
1953 2012-07-30 Keith Seitz <keiths@redhat.com>
1954
1955 * linespec.c (linespec_lex_number): A number followed
1956 by quotes is a valid number, too.
1957
1958 2012-07-30 Tom Tromey <tromey@redhat.com>
1959
1960 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1961
1962 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1963
1964 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1965 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1966
1967 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1968
1969 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1970 invalid or reevaluated to prevent prevent references to possibly
1971 delete'd type objects being left in the varobj.
1972
1973 2012-07-27 Tom Tromey <tromey@redhat.com>
1974 Jan Kratochvil <jan.kratochvil@redhat.com>
1975
1976 * copying.awk: Print buffer-read-only and vi ro markers.
1977 * copying.c: Rebuild.
1978 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1979 * gdbarch.c, gdbarch.h: Rebuild.
1980 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1981 buffer-read-only and vi ro markers.
1982 * features/arm-with-iwmmxt.c: Rebuild.
1983 * features/arm-with-m-fpa-layout.c: Rebuild.
1984 * features/arm-with-m-vfp-d16.c: Rebuild.
1985 * features/arm-with-m.c: Rebuild.
1986 * features/arm-with-neon.c: Rebuild.
1987 * features/arm-with-vfpv2.c: Rebuild.
1988 * features/arm-with-vfpv3.c: Rebuild.
1989 * features/i386/amd64-avx-linux.c: Rebuild.
1990 * features/i386/amd64-avx.c: Rebuild.
1991 * features/i386/amd64-linux.c: Rebuild.
1992 * features/i386/amd64.c: Rebuild.
1993 * features/i386/i386-avx-linux.c: Rebuild.
1994 * features/i386/i386-avx.c: Rebuild.
1995 * features/i386/i386-linux.c: Rebuild.
1996 * features/i386/i386-mmx-linux.c: Rebuild.
1997 * features/i386/i386-mmx.c: Rebuild.
1998 * features/i386/i386.c: Rebuild.
1999 * features/i386/x32-avx-linux.c: Rebuild.
2000 * features/i386/x32-avx.c: Rebuild.
2001 * features/i386/x32-linux.c: Rebuild.
2002 * features/i386/x32.c: Rebuild.
2003 * features/mips-dsp-linux.c: Rebuild.
2004 * features/mips-linux.c: Rebuild.
2005 * features/mips64-dsp-linux.c: Rebuild.
2006 * features/mips64-linux.c: Rebuild.
2007 * features/rs6000/powerpc-32.c: Rebuild.
2008 * features/rs6000/powerpc-32l.c: Rebuild.
2009 * features/rs6000/powerpc-403.c: Rebuild.
2010 * features/rs6000/powerpc-403gc.c: Rebuild.
2011 * features/rs6000/powerpc-405.c: Rebuild.
2012 * features/rs6000/powerpc-505.c: Rebuild.
2013 * features/rs6000/powerpc-601.c: Rebuild.
2014 * features/rs6000/powerpc-602.c: Rebuild.
2015 * features/rs6000/powerpc-603.c: Rebuild.
2016 * features/rs6000/powerpc-604.c: Rebuild.
2017 * features/rs6000/powerpc-64.c: Rebuild.
2018 * features/rs6000/powerpc-64l.c: Rebuild.
2019 * features/rs6000/powerpc-7400.c: Rebuild.
2020 * features/rs6000/powerpc-750.c: Rebuild.
2021 * features/rs6000/powerpc-860.c: Rebuild.
2022 * features/rs6000/powerpc-altivec32.c: Rebuild.
2023 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2024 * features/rs6000/powerpc-altivec64.c: Rebuild.
2025 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2026 * features/rs6000/powerpc-cell32l.c: Rebuild.
2027 * features/rs6000/powerpc-cell64l.c: Rebuild.
2028 * features/rs6000/powerpc-e500.c: Rebuild.
2029 * features/rs6000/powerpc-e500l.c: Rebuild.
2030 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2031 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2032 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2033 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2034 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2035 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2036 * features/rs6000/powerpc-vsx32.c: Rebuild.
2037 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2038 * features/rs6000/powerpc-vsx64.c: Rebuild.
2039 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2040 * features/rs6000/rs6000.c: Rebuild.
2041 * features/s390-linux32.c: Rebuild.
2042 * features/s390-linux32v1.c: Rebuild.
2043 * features/s390-linux32v2.c: Rebuild.
2044 * features/s390-linux64.c: Rebuild.
2045 * features/s390-linux64v1.c: Rebuild.
2046 * features/s390-linux64v2.c: Rebuild.
2047 * features/s390x-linux64.c: Rebuild.
2048 * features/s390x-linux64v1.c: Rebuild.
2049 * features/s390x-linux64v2.c: Rebuild.
2050 * features/tic6x-c62x-linux.c: Rebuild.
2051 * features/tic6x-c62x.c: Rebuild.
2052 * features/tic6x-c64x-linux.c: Rebuild.
2053 * features/tic6x-c64x.c: Rebuild.
2054 * features/tic6x-c64xp-linux.c: Rebuild.
2055 * features/tic6x-c64xp.c: Rebuild.
2056
2057 2012-07-27 Tom Tromey <tromey@redhat.com>
2058
2059 * c-exp.y (classify_name): Avoid assignment in condition.
2060
2061 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2062
2063 * amd64-windows-tdep.c: Include "frame.h".
2064 (amd64_windows_skip_trampoline_code): New function.
2065 (amd64_windows_init_abi): Add trampoline registration.
2066
2067 2012-07-27 Yao Qi <yao@codesourcery.com>
2068
2069 * tracepoint.c (cur_traceframe_number): Remove.
2070 (set_tfile_traceframe): Remove.
2071 (tfile_trace_find, tfile_fetch_registers): Update callers.
2072 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2073 (tfile_open, tfile_trace_find): Likewise.
2074
2075 2012-07-27 Yao Qi <yao@codesourcery.com>
2076
2077 * thread.c (switch_to_thread): Don't call registers_changed.
2078
2079 2012-07-26 Tom Tromey <tromey@redhat.com>
2080
2081 * Makefile.in (SFILES): Remove objc-exp.y.
2082 (YYFILES): Remove objc-exp.c.
2083 (YYOBJ): Remove objc-exp.o.
2084 (local-maintainer-clean): Don't mention objc-exp.c.
2085 * c-exp.y: Include objc-lang.h.
2086 (%union) <class>: New field.
2087 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2088 (exp): Clone subscript production for OBJC_LBRAC. Add various
2089 Objective C productions.
2090 (msglist, msgarglist, msgarg): New productions.
2091 (array_mod, func_mod, operator): Clone productions for
2092 OBJC_LBRAC.
2093 (parse_string_or_char): Handle '@' strings.
2094 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2095 (classify_name): Check la_name_of_this. Recognize ObjC class
2096 names.
2097 * objc-exp.y: Remove.
2098 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2099 * objc-lang.h (objc_parse, objc_error): Don't declare.
2100
2101 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2102
2103 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2104
2105 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2106
2107 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2108 and decrement.
2109
2110 2012-07-26 Tom Tromey <tromey@redhat.com>
2111
2112 * copying.c: Rebuild.
2113 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2114 'no_class'.
2115
2116 2012-07-26 Tom Tromey <tromey@redhat.com>
2117
2118 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2119 immediate_quit.
2120 (print_objfile_statistics): Likewise.
2121 (maintenance_print_symbols): Likewise.
2122 (maintenance_print_msymbols): Likewise.
2123 (maintenance_print_objfiles): Likewise.
2124 * psymtab.c (print_partial_symbols): Call QUIT.
2125 (maintenance_print_psymbols): Likewise. Don't modify
2126 immediate_quit.
2127 * copying.c (show_copying_command): Don't modify immediate_quit.
2128 (show_warranty_command): Likewise.
2129 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2130
2131 2012-07-26 Keith Seitz <keiths@redhat.com>
2132
2133 * linespec.c (linespec_lexer_lex_number): The input
2134 is also a valid number if the next character is a comma
2135 or colon.
2136
2137 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2138
2139 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2140 configure options.
2141
2142 2012-07-26 Tristan Gingold <gingold@adacore.com>
2143
2144 * machoread.c: Include gdb_bfd.h.
2145
2146 2012-07-26 Tristan Gingold <gingold@adacore.com>
2147
2148 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2149 offset.
2150
2151 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2152
2153 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2154 SIZE to size_t.
2155 (dwarf2_evaluate_loc_desc): Likewise.
2156 (dwarf2_loc_desc_needs_frame): Likewise.
2157 (locexpr_describe_location_1): Likewise.
2158 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2159 size_t.
2160 (struct dwarf2_loclist_baton): Likewise.
2161 * dwarf2read.c (struct dwarf_block): Likewise.
2162 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2163 (decode_locdesc): Expand SIZE and I to size_t.
2164
2165 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2166
2167 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2168
2169 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2170
2171 * doublest.c (convert_doublest_to_floatformat): If the exponent
2172 is too small, treat the value as zero. If the exponent is too
2173 large, treat the value as infinity.
2174
2175 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2176
2177 * configure.ac: Add --enable-lmcheck configure option.
2178 * configure: Regenerate.
2179
2180 2012-07-25 Tom Tromey <tromey@redhat.com>
2181
2182 * NEWS: Mention maint info bfds.
2183 * gdb_bfd.c (all_bfds): New global.
2184 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2185 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2186 New functions.
2187
2188 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2189
2190 * configure.tgt: Add v850*-*-rtems*.
2191
2192 2012-07-25 Tom Tromey <tromey@redhat.com>
2193
2194 * macrotab.c (macro_bcache_str): Remove cast.
2195
2196 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2197
2198 * linespec.c (linespec_lexer_lex_number): Update comments,
2199 change the return and add check to make sure the input is
2200 the decimal numbers.
2201 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2202 false, call linespec_lexer_lex_string.
2203
2204 2012-07-24 Tom Tromey <tromey@redhat.com>
2205
2206 * symfile.c (symbol_file_add): Don't open BFD twice.
2207
2208 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2209
2210 * breakpoint.c (create_breakpoint): Store condition for pending
2211 breakpoints.
2212
2213 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2214
2215 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2216 (m68k_return_value): Handle complex types like structures.
2217 (m68k_svr4_return_value): Likewise.
2218
2219 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2220
2221 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2222 parameters to bfd_get_section_name.
2223
2224 2012-07-24 Yao Qi <yao@codesourcery.com>
2225
2226 * cli/cli-setshow.c: Handle case 'var_uinteger'
2227 and 'var_zuninteger' together. Handle case 'var_integer' and
2228 'var_zinteger' together.
2229
2230 2012-07-23 Keith Seitz <keiths@redhat.com>
2231
2232 * linespec.c (convert_linespec_to_sal): Don't add
2233 any symbols to the result vector if symbol_to_sal
2234 returns zero.
2235
2236 2012-07-23 Keith Seitz <keiths@redhat.com>
2237
2238 * linespec.c (decode_objc): Record the function name
2239 in the linespec.
2240
2241 2012-07-23 Tom Tromey <tromey@redhat.com>
2242
2243 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2244 counting.
2245 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2246 (map_vmap): Acquire a reference to the BFD.
2247
2248 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2249
2250 * p-valprint.c (pascal_object_print_value): Replace potentially
2251 unsafe alloca with xmalloc/xfree.
2252 * valops.c (search_struct_method): Likewise.
2253
2254 2012-07-23 Tom Tromey <tromey@redhat.com>
2255
2256 * solib-svr4.c (enable_break): Update.
2257 * bfd-target.h (target_bfd_reopen): Update documentation.
2258
2259 2012-07-23 Tom Tromey <tromey@redhat.com>
2260
2261 * symfile.c (separate_debug_file_exists): Update.
2262 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2263 (reread_symbols): Update.
2264 * elfread.c (build_id_verify): Update.
2265 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2266 bfd_open_maybe_remote.
2267
2268 2012-07-23 Tom Tromey <tromey@redhat.com>
2269
2270 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2271
2272 2012-07-23 Tom Tromey <tromey@redhat.com>
2273
2274 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2275 and 'abfd'.
2276 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2277 and 'abfd'.
2278 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2279 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2280 'abfd'.
2281 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2282 * objfiles.c (allocate_objfile): Acquire a new reference.
2283 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2284 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2285 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2286 a cleanup for 'nbfd'.
2287 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2288 for 'nbfd'.
2289 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2290 make a cleanup for 'abfd'.
2291 (symbol_file_add): Make a BFD cleanup.
2292
2293 2012-07-23 Tom Tromey <tromey@redhat.com>
2294
2295 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2296 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2297 * corelow.c (core_open): Use gdb_bfd_fopen.
2298 * dsrec.c (load_srec): Use gdb_bfd_openr.
2299 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2300 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2301 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2302 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2303 (gdb_bfd_fdopenr): New functions.
2304 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2305 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2306 (gdb_bfd_fdopenr): Declare.
2307 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2308 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2309 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2310 gdb_bfd_openr_next_archived_file.
2311 (macho_check_dsym): Use gdb_bfd_openr.
2312 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2313 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2314 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2315 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2316 gdb_bfd_openr.
2317 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2318 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2319 gdb_bfd_openr_next_archived_file.
2320 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2321 Use gdb_bfd_openr.
2322 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2323 gdb_bfd_openr.
2324 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2325 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2326 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2327 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2328 (symfile_bfd_open): Use gdb_bfd_fopen.
2329 (generic_load): Use gdb_bfd_openr.
2330 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2331
2332 2012-07-23 Tom Tromey <tromey@redhat.com>
2333
2334 * bfd-target.c (target_bfd_reopen): Update.
2335 * cli/cli-dump.c (bfd_openr_with_cleanup)
2336 (bfd_openw_with_cleanup): Update.
2337 * corelow.c (core_open): Update.
2338 * dsrec.c (load_srec): Update.
2339 * exec.c (exec_file_attach): Update.
2340 * gcore.c (create_gcore_bfd): Update.
2341 * gdb_bfd.c (gdb_bfd_ref): Return void.
2342 (gdb_bfd_open): Update.
2343 * gdb_bfd.h (gdb_bfd_ref): Return void.
2344 Update comments.
2345 * jit.c (jit_bfd_try_read_symtab): Update.
2346 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2347 * machoread.c (macho_symfile_read_all_oso): Update.
2348 (macho_check_dsym): Update.
2349 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2350 * remote-m32r-sdi.c (m32r_load): Update.
2351 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2352 * rs6000-nat.c (add_vmap): Update.
2353 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2354 Update.
2355 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2356 * solib-spu.c (spu_bfd_open): Update.
2357 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2358 * spu-linux-nat.c (spu_bfd_open): Update.
2359 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2360 (generic_load): Update.
2361 * windows-nat.c (windows_make_so): Update.
2362
2363 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2364
2365 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2366
2367 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2368
2369 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2370 SIGTRAMP_FRAME unwinding.
2371
2372 2012-07-20 Doug Evans <dje@google.com>
2373
2374 * NEWS: Document new options "set/show use-deprecated-index-sections",
2375 and delete reference to --use-deprecated-index-sections.
2376 * symfile.h (use_deprecated_index_sections): Delete.
2377 * dwarf2read.c (use_deprecated_index_sections): Make static.
2378 (read_index_from_section): Update wording of how to load
2379 deprecated index sections.
2380 (_initialize_dwarf2_read): New options
2381 "set/show use-deprecated-index-sections".
2382 * main.c (captured_main): Delete --use-deprecated-index-sections.
2383
2384 2012-07-20 Pedro Alves <palves@redhat.com>
2385
2386 PR threads/11692
2387 PR gdb/12203
2388
2389 * infrun.c (handle_inferior_event) <new thread>: Don't special
2390 case minus_one_ptid.
2391 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2392 * linux-thread-db.c (thread_get_info_callback): Don't return early
2393 if the thread is zombie.
2394 (thread_from_lwp): Change return type to void. Rewrite stale
2395 comment.
2396 (attach_thread): Don't return early if the thread is zombie,
2397 instead set its "dying" flag.
2398 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2399 (find_new_threads_callback): Don't return early if the thread is
2400 zombie.
2401
2402 2012-07-20 Pedro Alves <palves@redhat.com>
2403
2404 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2405 * target.c (target_wait): Likewise.
2406 (str_comma_list_concat_elem, do_option, target_options_to_string):
2407 New functions.
2408 * target.h (target_options_to_string): Declare.
2409
2410 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2411 Tom Tromey <tromey@redhat.com>
2412
2413 * dwarf2read.c (dwarf_decode_macros)
2414 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2415 DW_MACRO_GNU_transparent_include_alt>: New cases.
2416 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2417 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2418
2419 2012-07-20 Tom Tromey <tromey@redhat.com>
2420
2421 * dwarf2read.c (try_open_dwo_file): Don't call
2422 gdb_bfd_stash_filename.
2423
2424 2012-07-20 Pedro Alves <palves@redhat.com>
2425
2426 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2427 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2428 (i386_process_record): Tweak description comments.
2429
2430 2012-07-20 Pedro Alves <palves@redhat.com>
2431
2432 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2433 (i386_process_record): Use record_read_memory.
2434 * record.c (record_read_memory): New function.
2435 (record_arch_list_add_mem, record_exec_insn): Use
2436 record_read_memory.
2437 * record.h (record_read_memory): Declare.
2438
2439 2012-07-20 Yao Qi <yao@codesourcery.com>
2440
2441 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2442 NULL for xfree.
2443
2444 2012-07-19 Pedro Alves <palves@redhat.com>
2445
2446 * record.c (record_resume): Ask the target beneath to report all
2447 signals.
2448
2449 2012-07-19 Doug Evans <dje@google.com>
2450
2451 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2452 there's no section at address zero.
2453 (dwarf2_record_block_ranges): Ditto.
2454
2455 2012-07-19 Yao Qi <yao@codesourcery.com>
2456
2457 * command.h, remote.c: Fix a typo in comment.
2458
2459 2012-07-19 Tom Tromey <tromey@redhat.com>
2460
2461 PR exp/13206:
2462 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2463 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2464 OP_DECLTYPE>: New cases.
2465 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2466 (type_exp): Add new productions.
2467 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2468 and decltype.
2469 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2470 New case.
2471 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2472 OP_DECLTYPE>: New case.
2473 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2474 New case.
2475 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2476 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2477
2478 2012-07-19 Tom Tromey <tromey@redhat.com>
2479
2480 * c-exp.y (enum token_flags): New.
2481 (struct token) <cxx_only>: Remove.
2482 <flags>: New field.
2483 (tokentab3, tokentab2, ident_tokens): Update.
2484 (lex_one_token): Update. Handle FLAG_SHADOW.
2485
2486 2012-07-19 Tom Tromey <tromey@redhat.com>
2487
2488 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2489 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2490 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2491 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2492 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2493 type_exp production where appropriate.
2494 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2495 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2496 <UNOP_MEMVAL_TYPE>: New case.
2497 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2498 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2499 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2500 <UNOP_MEMVAL_TYPE>: New case.
2501 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2502 UNOP_REINTERPRET_CAST>: Update.
2503 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2504 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2505 UNOP_REINTERPRET_CAST>: Update.
2506 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2507 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2508 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2509 constants.
2510
2511 2012-07-19 Yao Qi <yao@codesourcery.com>
2512 Jan Kratochvil <jan.kratochvil@redhat.com>
2513
2514 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2515 and case 'var_optional_filename' together.
2516 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2517 instead of add_setshow_optional_filename_cmd for setshow command
2518 'args'. Set completer for 'set args'.
2519
2520 2012-07-18 Doug Evans <dje@google.com>
2521
2522 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2523 * common/gdb_vecs.c: New file, contents from utils.c.
2524 * common/host-defs.h: New file, contents from defs.h.
2525 * utils.h: New file, contents from defs.h.
2526 * defs.h: Move all declarations of objects defined in utils.c
2527 to utils.h (except QUIT() and related).
2528 #include "utils.h", "host-defs.h".
2529 * probe.h (probe_p): Move here from gdb_vecs.h.
2530 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2531 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2532 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2533 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2534 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2535 (COMMON_OBS): Add gdb_vecs.o.
2536 (gdb_vecs.o): New rule.
2537
2538 2012-07-18 Keith Seitz <keiths@redhat.com>
2539
2540 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2541 parameter. If non-zero, use SYMNAME as the canonical name
2542 for the SaL.
2543 Update all callers.
2544 (convert_linespec_to_sals): Use add_sal_to_sals for
2545 expressions, too.
2546 (decode_line_full): No need to "fill in missing canonical names"
2547 anymore. Simply make cleanups for the allocated names.
2548
2549 2012-07-18 Keith Seitz <keiths@redhat.com>
2550
2551 * linespec.c (struct linespec): Constify expression,
2552 source_filename, function_name, and label_name.
2553 (symbol_not_found_error): Make all parameters const.
2554 (linespec_parser_delete): No need to check for NULL
2555 when using xfree. Cast const char * to char * for xfree.
2556
2557 2012-07-18 Keith Seitz <keiths@redhat.com>
2558
2559 * breakpoint.c (invalid_thread_id_error): New function.
2560 (find_condition_and_thread): Use invalid_thread_id_error.
2561 (watch_command_1): Likewise.
2562
2563 2012-07-18 Tom Tromey <tromey@redhat.com>
2564
2565 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2566 * contrib/cc-with-tweaks.sh: New file.
2567
2568 2012-07-18 Tom Tromey <tromey@redhat.com>
2569
2570 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2571 (locate_dwz_sections): Recognize .gdb_index.
2572 (create_cus_from_index_list): New function.
2573 (create_cus_from_index): Use it. Handle .dwz data.
2574 (read_index_from_section): New function, extracted from
2575 dwarf2_read_index.
2576 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2577 if needed.
2578
2579 2012-07-18 Tom Tromey <tromey@redhat.com>
2580
2581 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2582 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2583 <is_dwz>: New field.
2584 (struct dwz_file): New.
2585 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2586 (locate_dwz_sections, dwarf2_get_dwz_file)
2587 (get_abbrev_section_for_cu): New functions.
2588 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2589 (read_and_check_type_unit_head): Add abbrev_section argument.
2590 (create_debug_types_hash_table): Update.
2591 (init_cutu_and_read_dies): Use proper abbrev section.
2592 (init_cutu_and_read_dies_no_follow): Likewise.
2593 (set_partial_user): Do nothing if PST==NULL.
2594 (read_comp_units_from_section): New function.
2595 (create_all_comp_units): Use it.
2596 (scan_partial_symbols, partial_die_parent_scope): Update.
2597 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2598 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2599 (find_partial_die): Add offset_in_dwz argument. Update.
2600 (guess_partial_die_structure_name, fixup_partial_die): Update.
2601 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2602 DW_FORM_GNU_strp_alt.
2603 (read_indirect_string_from_dwz): New function.
2604 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2605 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2606 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2607 (follow_die_offset): Add offset_in_dwz argument.
2608 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2609 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2610 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2611 Handle new macro forms.
2612 (dwarf_decode_macros): Update.
2613 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2614 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2615 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2616 (create_debug_types_hash_table): Use correct abbrev section.
2617 (get_debug_line_section): New function.
2618 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2619 (process_full_comp_unit): Pass 'required' argument to
2620 end_symtab_get_static_block.
2621 * buildsym.h (end_symtab_get_static_block): Update.
2622 * buildsym.c (end_symtab_get_static_block): Add 'required'
2623 argument.
2624 (end_symtab, end_expandable_symtab): Update.
2625
2626 2012-07-18 Tom Tromey <tromey@redhat.com>
2627
2628 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2629 (pagesize): Remove.
2630 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2631 (zlib_decompress_section): Remove.
2632 (dwarf2_read_section): Use gdb_bfd_map_section.
2633 (munmap_section_buffer): Remove.
2634 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2635 munmap_section_buffer.
2636 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2637 (struct gdb_bfd_section_data): New.
2638 (free_one_bfd_section): New function.
2639 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2640 (get_section_descriptor, zlib_decompress_section)
2641 (gdb_bfd_map_section): New functions.
2642 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2643
2644 2012-07-18 Tom Tromey <tromey@redhat.com>
2645
2646 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2647
2648 2012-07-18 Tom Tromey <tromey@redhat.com>
2649
2650 * gdb_bfd.c (struct gdb_bfd_data): New.
2651 (gdb_bfd_cache): New global.
2652 (struct gdb_bfd_cache_search): New.
2653 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2654 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2655 * gdb_bfd.h (gdb_bfd_open): Declare.
2656
2657 2012-07-18 Tom Tromey <tromey@redhat.com>
2658
2659 * utils.c (make_cleanup_bfd_unref): Rename from
2660 make_cleanup_bfd_close.
2661 * defs.h (make_cleanup_bfd_unref): Rename from
2662 make_cleanup_bfd_close.
2663 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2664 (bfd_openw_with_cleanup): Update.
2665 * corelow.c (core_open): Update.
2666 * dsrec.c (load_srec): Update.
2667 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2668 * remote-m32r-sdi.c (m32r_load): Update.
2669 * remote-mips.c (mips_load_srec): Update.
2670 (pmon_load_fast): Update.
2671 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2672 Update.
2673 (darwin_bfd_open): Update.
2674 * solib.c (solib_bfd_fopen): Update.
2675 * symfile-mem.c (symbol_file_add_from_memory): Update.
2676 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2677 (symfile_bfd_open): Update.
2678 (generic_load): Update.
2679
2680 2012-07-18 Tom Tromey <tromey@redhat.com>
2681
2682 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2683 (pmon_load_fast): Likewise.
2684 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2685 (m32r_upload_command): Likewise.
2686 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2687 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2688 Use make_cleanup_bfd_close.
2689
2690 2012-07-18 Tom Tromey <tromey@redhat.com>
2691
2692 * symfile.c (symfile_bfd_open): Don't copy name. Call
2693 gdb_bfd_stash_filename.
2694 (load_command): Open the new BFD before freeing the old.
2695 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2696 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2697 Call gdb_bfd_stash_filename.
2698 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2699 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2700 gdb_bfd_stash_filename.
2701 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2702 Free found_pathname.
2703 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2704 gdb_bfd_stash_filename.
2705 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2706 * machoread.c (macho_add_oso_symfile): Call
2707 gdb_bfd_stash_filename.
2708 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2709 gdb_bfd_stash_filename.
2710 (macho_check_dsym): Don't copy filename. Call
2711 gdb_bfd_stash_filename.
2712 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2713 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2714 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2715 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2716 * exec.c (exec_close): Don't free the BFD's filename.
2717 (exec_file_attach): Don't copy the filename. Call
2718 gdb_bfd_stash_filename.
2719 * corelow.c (core_close): Don't free the BFD's filename.
2720 (core_open): Call gdb_bfd_stash_filename.
2721 * corefile.c (reopen_exec_file): Remove #if 0 code.
2722 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2723 pathname.
2724 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2725
2726 2012-07-18 Tom Tromey <tromey@redhat.com>
2727
2728 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2729 gdb_bfd_unref.
2730 (free_dwo_file): Use gdb_bfd_unref.
2731 * cli/cli-dump.c: Include gdb_bfd.h.
2732 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2733 (bfd_openr_with_cleanup): Likewise.
2734 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2735 gdb_bfd_unref.
2736 * utils.c: Include gdb_bfd.h.
2737 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2738 * symfile.c: Include gdb_bfd.h.
2739 (separate_debug_file_exists): Use gdb_bfd_unref.
2740 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2741 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2742 (generic_load): Use gdb_bfd_ref.
2743 (reread_symbols): Use gdb_bfd_unref.
2744 * symfile-mem.c: Include gdb_bfd.h.
2745 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2746 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2747 * solib.c: Include gdb_bfd.h.
2748 (solib_bfd_fopen): Use gdb_bfd_ref.
2749 (solib_bfd_open): Use gdb_bfd_unref.
2750 (free_so_symbols): Use gdb_bfd_unref.
2751 (reload_shared_libraries_1): Use gdb_bfd_unref.
2752 * solib-spu.c: Include gdb_bfd.h.
2753 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2754 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2755 gdb_bfd_unref.
2756 * solib-frv.c: Include gdb_bfd.h.
2757 (enable_break2): Use gdb_bfd_unref.
2758 * solib-dsbt.c: Include gdb_bfd.h.
2759 (enable_break2): Use gdb_bfd_unref.
2760 * solib-darwin.c: Include gdb_bfd.h.
2761 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2762 gdb_bfd_unref.
2763 (darwin_bfd_open): Use gdb_bfd_unref.
2764 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2765 * remote-mips.c: Include gdb_bfd.h.
2766 (mips_load_srec): Use gdb_bfd_ref.
2767 (pmon_load_fast): Use gdb_bfd_ref.
2768 * remote-m32r-sdi.c: Include gdb_bfd.h.
2769 (m32r_load): Use gdb_bfd_ref.
2770 * record.c: Include gdb_bfd.h.
2771 (record_save_cleanups): Use gdb_bfd_unref.
2772 (cmd_record_save): Use gdb_bfd_unref.
2773 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2774 gdb_bfd_unref.
2775 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2776 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2777 * objfiles.c: Include gdb_bfd.h.
2778 (free_objfile): Use gdb_bfd_unref.
2779 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2780 gdb_bfd.c.
2781 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2782 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2783 (macho_check_dsym): Likewise.
2784 * m32r-rom.c: Include gdb_bfd.h.
2785 (m32r_load): Use gdb_bfd_ref.
2786 (m32r_upload_command): Use gdb_bfd_ref.
2787 * jit.c: Include gdb_bfd.h.
2788 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2789 * gdb_bfd.h: New file.
2790 * gdb_bfd.c: New file.
2791 * gcore.c: Include gdb_bfd.h.
2792 (create_gcore_bfd): Use gdb_bfd_ref.
2793 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2794 (gcore_command): Use gdb_bfd_unref.
2795 * exec.c: Include gdb_bfd.h.
2796 (exec_close): Use gdb_bfd_unref.
2797 (exec_close_1): Use gdb_bfd_unref.
2798 (exec_file_attach): Use gdb_bfd_ref.
2799 * elfread.c: Include gdb_bfd.h.
2800 (build_id_verify): Use gdb_bfd_unref.
2801 * dsrec.c: Include gdb_bfd.h.
2802 (load_srec): Use gdb_bfd_ref.
2803 * corelow.c: Include gdb_bfd.h.
2804 (core_close): Use gdb_bfd_unref.
2805 (core_open): Use gdb_bfd_ref.
2806 * bfd-target.c: Include gdb_bfd.h.
2807 (target_bfd_xclose): Use gdb_bfd_unref.
2808 (target_bfd_reopen): Use gdb_bfd_ref.
2809 * Makefile.in (SFILES): Add gdb_bfd.c.
2810 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2811 (COMMON_OBS): Add gdb_bfd.o.
2812
2813 2012-07-18 Keith Seitz <keiths@redhat.com>
2814
2815 * breakpoint.c (find_condition_and_thread): Initialize
2816 TASK and REST.
2817 (create_breakpiont): find_condition_and_thread will now
2818 initialize COND_STRING, THREAD, and REST (and TASK).
2819 (addr_string_to_sals): Likewise.
2820
2821 2012-07-18 Pedro Alves <palves@redhat.com>
2822
2823 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2824 Pull the single step breakpoints out of the target.
2825
2826 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2827
2828 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2829 * stap-probe.c (compile_probe_arg): Likewise.
2830
2831 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2832
2833 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2834 (elf_compile_to_ax): Likewise.
2835 * infrun.c (insert_exception_resume_from_probe): Likewise.
2836 (check_exception_resume): Remove `objfile' variable.
2837 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2838 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2839 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2840 (compare_entries): Rename to...
2841 (compare_probes): ...this. Adjust function to work with
2842 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2843 respectively.
2844 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2845 `VEC (probe_p) *'.
2846 (print_ui_out_info): Adjust argument to be `struct probe *'.
2847 (info_probes_for_ops): Adjust internal computations to use
2848 `VEC (probe_p) *'.
2849 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2850 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2851 gen_info_probes_table_values>: Remove `objfile' argument.
2852 (struct probe) <objfile>: New field.
2853 (find_probe_by_pc): Remove `objfile' argument.
2854 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2855 (stap_get_probe_argument_count): Likewise.
2856 (stap_get_arg): Likewise.
2857 (stap_evaluate_probe_argument): Likewise.
2858 (stap_compile_to_ax): Likewise.
2859 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2860 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2861 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2862 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2863 sym_compile_to_ax>: Likewise.
2864
2865 2012-07-18 Terry Guo <terry.guo@arm.com>
2866
2867 PR 14329
2868 * defs.h (GDB_MI_MSG_WIDTH): New.
2869 * ser_base (ser_base_read_error_fd): New function.
2870 (do_ser_base_readchar): Poll error file descriptor as well as
2871 standard output.
2872 (generic_readchar): Refactor error handling.
2873
2874 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2875
2876 * NEWS: Create a new section for the next release branch.
2877 Rename the section of the current branch, now that it has
2878 been cut.
2879
2880 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2881
2882 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2883 * version.in: Bump version to 7.5.50.20120718-cvs.
2884
2885 2012-07-17 Keith Seitz <keiths@redhat.com>
2886
2887 * linespec.c (linespec_parse_line_offset): Make parameter
2888 const.
2889
2890 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2891
2892 PR 11914
2893 * f-valprint.c (info_common_command): New variable frame_id.
2894 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2895 * printcmd.c (print_variable_and_value): Extend function comment.
2896 Add comment for invalidated FRAME.
2897 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2898 FI form FRAME_ID after each print_frame_local_vars.
2899 (struct print_variable_and_value_data): Change frame to frame_id.
2900 (do_print_variable_and_value): New variable frame, initialize it from
2901 p->frame_id. Add comment for invalidated FRAME.
2902 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2903 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2904 for invalidated FRAME.
2905
2906 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2907 Pedro Alves <palves@redhat.com>
2908
2909 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2910 loop.
2911
2912 2012-07-16 Tom Tromey <tromey@redhat.com>
2913
2914 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2915
2916 2012-07-15 Doug Evans <dje@google.com>
2917
2918 * dwarf2read.c (stmt_list_hash): New struct.
2919 (type_unit_group): Embed "per_cu" member, remove pointer.
2920 New union member "t", move member "tus" into it, all uses updated.
2921 New member "hash", replaces member "line_offset, all uses updated.
2922 (quick_file_names): Replace member "offset" with "hash", all uses
2923 updated.
2924 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2925 (hash_file_name_entry, eq_file_name_entry): Call them.
2926 (hash_type_unit_group, eq_type_unit_group): Ditto.
2927 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2928 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2929 (dw2_get_file_names): Update.
2930 (create_type_unit_group): Replace "per_cu" arg with "cu".
2931 All callers updated. Fix "quick" (.gdb_index) handling.
2932 (get_type_unit_group): Replace "per_cu" arg with "cu".
2933 All callers updated.
2934 (build_type_unit_groups): Don't reset tu_stats.
2935
2936 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2937 "tab_cur_size". Change member "tab" to be a htab_t.
2938 (create_filename_seen_cache): Update.
2939 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2940 (filename_seen): Update.
2941
2942 2012-07-13 Doug Evans <dje@google.com>
2943
2944 * symtab.c (filename_seen): Update comment.
2945
2946 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2947 Doug Evans <dje@google.com>
2948
2949 * buildsym.c (end_symtab_1): Split it to ...
2950 (end_symtab_get_static_block): ... this ...
2951 (end_symtab_from_static_block): ... and this function.
2952 (end_symtab, end_expandable_symtab): Call them.
2953 * buildsym.h (end_symtab_get_static_block)
2954 (end_symtab_from_static_block): New declarations.
2955 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2956 Set its valid CU ranges.
2957
2958 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2959
2960 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2961 DW_OP_GNU_parameter_ref.
2962
2963 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2964
2965 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2966 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2967
2968 2012-07-13 Doug Evans <dje@google.com>
2969
2970 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2971 (filename_seen_cache): New struct.
2972 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2973 (create_filename_seen_cache): New function.
2974 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2975 (filename_seen): Delete arg "first". New arg "cache". All callers
2976 updated.
2977 (output_source_filename_data): New struct.
2978 (output_source_filename): Delete arg "first". New arg "data".
2979 All callers updated.
2980 (sources_info): Delete local "first". New locals "data", "cleanups".
2981 Rewrite to use filename_seen_cache.
2982 (add_partial_filename_data): Delete member "first". New member
2983 "filename_seen_cache". All uses updated.
2984 (make_source_files_completion_list): Rewrite to use
2985 filename_seen_cache.
2986
2987 2012-07-12 Doug Evans <dje@google.com>
2988
2989 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2990
2991 2012-07-10 Doug Evans <dje@google.com>
2992
2993 PR gdb/13498
2994 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2995 all_type_unit_groups, type_unit_groups, tu_stats.
2996 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2997 All uses updated. Add type_unit_group to union "s".
2998 (type_unit_group): New struct.
2999 (IS_TYPE_UNIT_GROUP): New macro.
3000 (abbrev_table): Delete unused member "section".
3001 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3002 (dw2_get_cu): Assert not used with type_unit_group.
3003 (dw2_get_primary_cu): New function.
3004 (dw2_build_type_unit_groups_reader): New function.
3005 (dw2_build_type_unit_groups): New function.
3006 (dw2_get_file_names): Assert not called on type units.
3007 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3008 Redo loop to iterate over type unit groups instead of type units.
3009 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3010 (read_abbrev_offset): New function.
3011 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3012 updated.
3013 (create_partial_symtab): New function.
3014 (process_psymtab_comp_unit_reader): Assert not used with type units.
3015 Call create_partial_symtab.
3016 (process_psymtab_type_unit): Delete.
3017 (hash_type_unit_group, eq_type_unit_group): New functions.
3018 (allocate_type_unit_groups_table): New function.
3019 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3020 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3021 (create_type_unit_group, get_type_unit_group): New functions.
3022 (tu_abbrev_offset): New struct.
3023 (sort_tu_by_abbrev_offset): New function.
3024 (add_type_unit_group_to_table): New function.
3025 (build_type_unit_groups): New function.
3026 (build_type_psymtabs_reader): New function.
3027 (build_type_psymtab_dependencies): New function.
3028 (build_type_psymtabs): Rewrite.
3029 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3030 is seen in a type unit.
3031 (process_queue): Move symtab expansion debugging printfs here.
3032 Call process_full_type_unit for type units.
3033 (compute_symtab_includes): Assert not called for type units.
3034 (process_cu_includes): Don't call compute_symtab_includes for
3035 type units.
3036 (process_full_type_unit): New function.
3037 (process_imported_unit_die): Flag an error if called for type units.
3038 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3039 updated. Assert not called for type units.
3040 (read_file_scope): Call dwarf2_start_symtab.
3041 (setup_type_unit_groups): New function.
3042 (read_type_unit_scope): Rewrite.
3043 (abbrev_table_read_table): Initialize abbrev_table->offset.
3044 (abbrev_table_free_cleanup): New function.
3045 (dwarf2_start_symtab): New function.
3046 (load_full_type_unit): Assert not called for type unit groups.
3047 * buildsym.c (finish_block_internal): New arg "expandable".
3048 All callers updated.
3049 (start_symtab): Move most contents to ...
3050 (restart_symtab): ... here. New function.
3051 (reset_symtab_globals): New function.
3052 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3053 Call reset_symtab_globals.
3054 (end_symtab, end_expandable_symtab): New functions.
3055 (set_missing_symtab, augment_type_symtab): New functions.
3056 * buildsym.h (end_expandable_symtab): Declare.
3057 (augment_type_symtab, restart_symtab): Declare.
3058 * psympriv.h (struct partial_symtab): New member "anonymous".
3059 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3060 anonymous psymtabs.
3061 (read_psymtabs_with_filename): Ditto.
3062 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3063 (expand_symtabs_matching_via_partial): Ditto.
3064 (dump_psymtab): Update.
3065 * dictionary.c (dict_add_pending): New function.
3066 * dictionary.h (dict_add_pending): Declare.
3067
3068 2012-07-09 Doug Evans <dje@google.com>
3069
3070 * buildsym.c (start_subfile): Remove unnecessary check for
3071 name == NULL.
3072
3073 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3074
3075 * dwarf2read.c (load_full_type_unit): Simplify.
3076
3077 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3078 to struct signatured_type **. All uses updated.
3079
3080 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3081 All callers updated.
3082
3083 2012-07-09 Tom Tromey <tromey@redhat.com>
3084
3085 * c-exp.y (check_parameter_typelist): New function.
3086 (parameter_typelist): Call it.
3087 * eval.c (make_params): Handle '(void)' case.
3088 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3089 '(void)' case.
3090
3091 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3092
3093 * common/linux-ptrace.c: Include gdb_assert.h.
3094 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3095 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3096 stdint.h.
3097 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3098 functions.
3099 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3100 * linux-nat.c (linux_child_post_attach)
3101 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3102
3103 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3104
3105 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3106 nptl <2.7 bug workaround for core files.
3107
3108 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3109
3110 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3111 clearing.
3112 (save_siginfo): Remove.
3113 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3114 call.
3115 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3116 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3117 * linux-nat.h (struct lwp_info): Remove field siginfo.
3118
3119 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3120
3121 Code cleanup for the next patch.
3122 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3123 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3124 call for it.
3125 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3126 (ia64_linux_stopped_data_address):
3127 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3128 the return value.
3129 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3130 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3131 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3132 call for it.
3133
3134 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3135
3136 PR 14321
3137 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3138 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3139
3140 2012-07-06 Tom Tromey <tromey@redhat.com>
3141
3142 * c-exp.y (DOTDOTDOT): New token.
3143 (func_mod, exp): Use parameter_typelist.
3144 (parameter_typelist): New production.
3145 (tokentab3): Add "..." token.
3146 * eval.c (make_params): Handle varargs.
3147 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3148 varargs.
3149
3150 2012-07-06 Tom Tromey <tromey@redhat.com>
3151
3152 PR exp/9608:
3153 * c-exp.y (%union) <tvec>: Change type.
3154 (func_mod): Now uses <tvec> type.
3155 (exp): Update for tvec change.
3156 (direct_abs_decl): Push the typelist.
3157 (func_mod): Return a typelist.
3158 (nonempty_typelist): Update for tvec change.
3159 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3160 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3161 * parse.c (pop_type_list): New function.
3162 (push_typelist): New function.
3163 (follow_types): Handle tp_function_with_arguments.
3164 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3165 (enum type_pieces) <tp_function_with_arguments>: New constant.
3166 (union type_stack_elt) <typelist_val>: New field.
3167 (push_typelist): Declare.
3168
3169 2012-07-06 Tom Tromey <tromey@redhat.com>
3170
3171 * c-exp.y (%union) <type_stack>: New field.
3172 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3173 (ptr_operator_ts): New production.
3174 (ptype): Update.
3175 * parse.c (type_stack_reserve): New function.
3176 (check_type_stack_depth): Use it.
3177 (pop_type_stack, append_type_stack, push_type_stack)
3178 (get_type_stack, type_stack_cleanup): New functions.
3179 (follow_types): Handle tp_type_stack.
3180 (_initialize_parse): Simplify initialization.
3181 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3182 constant.
3183 (union type_stack_elt) <stack_val>: New field.
3184 (get_type_stack, append_type_stack, push_type_stack)
3185 (type_stack_cleanup): Declare.
3186
3187 2012-07-06 Tom Tromey <tromey@redhat.com>
3188
3189 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3190 Remove.
3191 (struct type_stack): New.
3192 * parse.c (type_stack, type_stack_size, type_stack_depth):
3193 Remove.
3194 (type_stack): New global.
3195 (parse_exp_in_context, check_type_stack_depth)
3196 (insert_into_type_stack, insert_type, push_type, push_type_int)
3197 (insert_type_address_space, pop_type, pop_type_int)
3198 (_initialize_parse): Update.
3199
3200 2012-07-06 Tom Tromey <tromey@redhat.com>
3201
3202 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3203 Remove %type.
3204
3205 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3206
3207 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3208
3209 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3210 Jan Kratochvil <jan.kratochvil@redhat.com>
3211
3212 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3213 alloca with xmalloc/xfree.
3214
3215 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3216
3217 * MAINTAINERS (Write After Approval): Add myself to the list.
3218
3219 2012-07-05 Doug Evans <dje@google.com>
3220
3221 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3222
3223 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3224
3225 * ax-gdb.c (cli/cli-utils.h): New include.
3226 (linespec.h): Ditto.
3227 (agent_eval_command_one): New function.
3228 (agent_command_1): Ditto.
3229 (agent_command): Call function agent_command_1.
3230 (agent_eval_command): Ditto.
3231 (_initialize_ax_gdb): Change help for "maint agent"
3232 and "maint agent-eval".
3233
3234 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3235
3236 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3237 * cli/cli-utils.c (check_for_argument): New function.
3238 * cli/cli-utils.h (check_for_argument): Ditto.
3239
3240 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3241
3242 * NEWS: Mention x32 ABI support.
3243
3244 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3245
3246 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3247 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3248
3249 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3250 and pc_regnum_from_eax to -1. Update SP regnum from
3251 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3252 needed.
3253
3254 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3255 pc_regnum_from_eax.
3256
3257 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3258
3259 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3260 * dwarf2expr.h: Include gdbtypes.h.
3261 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3262 these forward declarations.
3263 (cu_offset, sect_offset): Move these ...
3264 * gdbtypes.h: Remove include dwarf2expr.h.
3265 (cu_offset, sect_offset): ... here.
3266
3267 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3268
3269 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3270 (amd64_linux_sigtramp_code): This.
3271 (amd64_x32_linux_sigtramp_code): New.
3272 (LINUX_SIGTRAMP_LEN): Updated.
3273 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3274
3275 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3276
3277 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3278
3279 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3280
3281 * config.in: Regenerate.
3282 * configure: Regenerate.
3283 * configure.ac: Remove check for gnu/libc-version.h.
3284 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3285 gnu/libc-version.h.
3286 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3287 variables libc_version, libc_major and libc_minor. Replace sscanf by
3288 inferior_has_bug. Extend the comment.
3289
3290 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3291
3292 * linux-thread-db.c (inferior_has_bug): New function.
3293 (thread_db_find_new_threads_silently): Return boolean as checked by
3294 inferior_has_bug, describe it in the comments.
3295 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3296 earlier. Abort the initialization if it returned non-zero.
3297 (thread_db_new_objfile): Exclude debug files.
3298 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3299 if UNTIL_NO_NEW,
3300
3301 2012-07-02 Doug Evans <dje@google.com>
3302
3303 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3304 related to queue management.
3305
3306 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3307 instead of "debug dwarf2-die" in debugging printfs.
3308 (create_debug_info_hash_table_reader): Ditto.
3309 (create_debug_info_hash_table): Ditto.
3310 (init_dwo_file): Ditto.
3311 (init_cutu_and_read_dies): Add debugging printf.
3312 (init_cutu_and_read_dies_no_follow): Ditto.
3313 (process_psymtab_comp_unit_reader): Ditto.
3314
3315 2012-07-02 Stan Shebs <stan@codesourcery.com>
3316
3317 Add target-side support for dynamic printf.
3318 * NEWS: Mention the additional style.
3319 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3320 (struct bp_location): New field cmd_bytecode.
3321 * breakpoint.c: Include format.h.
3322 (disconnected_dprintf): New global.
3323 (parse_cmd_to_aexpr): New function.
3324 (build_target_command_list): New function.
3325 (insert_bp_location): Call it.
3326 (remove_breakpoints_pid): Skip dprintf breakpoints.
3327 (print_one_breakpoint_location): Ditto.
3328 (dprintf_style_agent): New global.
3329 (dprintf_style_enums): Add dprintf_style_agent.
3330 (update_dprintf_command_list): Add agent case.
3331 (agent_printf_command): New function.
3332 (_initialize_breakpoint): Add new commands.
3333 * common/ax.def (printf): New bytecode.
3334 * ax.h (ax_string): Declare.
3335 * ax-gdb.h (gen_printf): Declare.
3336 * ax-gdb.c: Include cli-utils.h, format.h.
3337 (gen_printf): New function.
3338 (maint_agent_print_command): New function.
3339 (_initialize_ax_gdb): Add maint agent-printf command.
3340 * ax-general.c (ax_string): New function.
3341 (ax_print): Add printf disassembly.
3342 * Makefile.in (SFILES): Add format.c
3343 (COMMON_OBS): Add format.o.
3344 * common/format.h: New file.
3345 * common/format.c: New file.
3346 * printcmd.c: Include format.h.
3347 (ui_printf): Call parse_format_string.
3348 * remote.c (remote_state): New field breakpoint_commands.
3349 (PACKET_BreakpointCommands): New enum.
3350 (remote_breakpoint_commands_feature): New function.
3351 (remote_protocol_features): Add new BreakpointCommands entry.
3352 (remote_can_run_breakpoint_commands): New function.
3353 (remote_add_target_side_commands): New function.
3354 (remote_insert_breakpoint): Call it.
3355 (remote_insert_hw_breakpoint): Ditto.
3356 (_initialize_remote): Add new packet configuration for
3357 target-side breakpoint commands.
3358 * target.h (struct target_ops): New field
3359 to_can_run_breakpoint_commands.
3360 (target_can_run_breakpoint_commands): New macro.
3361 * target.c (update_current_target): Handle
3362 to_can_run_breakpoint_commands.
3363
3364 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3365
3366 Execute -ix and -iex only after system and user gdbinit files.
3367 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3368 processing down after gdbinit files.
3369
3370 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3371
3372 Add fnmatch-gnu module.
3373 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3374 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3375 * gnulib/aclocal.m4: Regenerate.
3376 * gnulib/config.in: Regenerate.
3377 * gnulib/configure: Regenerate.
3378 * gnulib/import/dummy.c: Remove.
3379 * gnulib/import/Makefile.am: Regenerate.
3380 * gnulib/import/Makefile.in: Likewise.
3381 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3382 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3383 * gnulib/import/alloca.c: New file.
3384 * gnulib/import/alloca.in.h: Likewise.
3385 * gnulib/import/config.charset: Likewise.
3386 * gnulib/import/fnmatch.c: Likewise.
3387 * gnulib/import/fnmatch.in.h: Likewise.
3388 * gnulib/import/fnmatch_loop.c: Likewise.
3389 * gnulib/import/localcharset.c: Likewise.
3390 * gnulib/import/localcharset.h: Likewise.
3391 * gnulib/import/m4/alloca.m4: Likewise.
3392 * gnulib/import/m4/codeset.m4: Likewise.
3393 * gnulib/import/m4/configmake.m4: Likewise.
3394 * gnulib/import/m4/fcntl-o.m4: Likewise.
3395 * gnulib/import/m4/fnmatch.m4: Likewise.
3396 * gnulib/import/m4/glibc21.m4: Likewise.
3397 * gnulib/import/m4/localcharset.m4: Likewise.
3398 * gnulib/import/m4/locale-fr.m4: Likewise.
3399 * gnulib/import/m4/locale-ja.m4: Likewise.
3400 * gnulib/import/m4/locale-zh.m4: Likewise.
3401 * gnulib/import/m4/mbrtowc.m4: Likewise.
3402 * gnulib/import/m4/mbsinit.m4: Likewise.
3403 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3404 * gnulib/import/m4/mbstate_t.m4: Likewise.
3405 * gnulib/import/m4/stdbool.m4: Likewise.
3406 * gnulib/import/m4/wchar_h.m4: Likewise.
3407 * gnulib/import/m4/wctype_h.m4: Likewise.
3408 * gnulib/import/m4/wint_t.m4: Likewise.
3409 * gnulib/import/mbrtowc.c: Likewise.
3410 * gnulib/import/mbsinit.c: Likewise.
3411 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3412 * gnulib/import/mbsrtowcs-state.c: Likewise.
3413 * gnulib/import/mbsrtowcs.c: Likewise.
3414 * gnulib/import/ref-add.sin: Likewise.
3415 * gnulib/import/ref-del.sin: Likewise.
3416 * gnulib/import/stdbool.in.h: Likewise.
3417 * gnulib/import/streq.h: Likewise.
3418 * gnulib/import/strnlen1.c: Likewise.
3419 * gnulib/import/strnlen1.h: Likewise.
3420 * gnulib/import/verify.h: Likewise.
3421 * gnulib/import/wchar.in.h: Likewise.
3422 * gnulib/import/wctype.in.h: Likewise.
3423
3424 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3425
3426 Support shell wildcards for 'set auto-load safe-path'.
3427 * auto-load.c: Include fnmatch.h.
3428 (filename_is_in_dir): Rename to ...
3429 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3430 it. Update function comment. Rename dir_len to pattern_len. New
3431 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3432 messages. Use gdb_filename_fnmatch.
3433 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3434 pattern.
3435 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3436 * defs.h (gdb_filename_fnmatch): New declaration.
3437 * utils.c: Include fnmatch.h.
3438 (gdb_filename_fnmatch): New function.
3439
3440 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3441
3442 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3443 `-probe' and `-probe-stap' options.
3444
3445 2012-07-01 Yao Qi <yao@codesourcery.com>
3446
3447 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3448 always_inserted_off, and always_inserted_enums.
3449 Change always_inserted_mode's type to 'enum auto_boolean'.
3450 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3451 callers.
3452 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3453 of add_setshow_enum_cmd.
3454 * infrun.c: Remove can_use_displaced_stepping_auto,
3455 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3456 can_use_displaced_stepping_enum.
3457 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3458 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3459 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3460 add_setshow_enum_cmd.
3461
3462 2012-06-30 Doug Evans <dje@google.com>
3463
3464 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3465 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3466 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3467
3468 2012-06-29 Doug Evans <dje@google.com>
3469
3470 * linespec.c: #include "stack.h".
3471 (decode_line_with_current_source): Moved here from symtab.c and
3472 renamed from decode_line_spec. All callers updated.
3473 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3474 renamed from decode_line_spec_1. All callers updated.
3475 * linespec.h (decode_line_with_current_source): Move declaration here
3476 from symtab.h and renamed from decode_line_spec.
3477 (decode_line_with_last_displayed): Move declaration here from symtab.h
3478 and renamed from decode_line_spec_1.
3479 * macrocmd.c: #include "linespec.h".
3480 * symtab.c: Remove #include "linespec.h".
3481
3482 2012-06-28 Doug Evans <dje@google.com>
3483
3484 * dwarf2read.c (get_cu_length): New function.
3485 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3486 (create_debug_types_hash_table): Ditto.
3487 (init_cutu_and_read_dies): Ditto.
3488 (init_cutu_and_read_dies_no_follow): Ditto.
3489
3490 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3491
3492 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3493 (struct abbrev_table): Define.
3494 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3495 abbrev_table.
3496 (init_cutu_and_read_dies): Update.
3497 (abbrev_table_alloc_abbrev): New function. Replaces
3498 dwarf_alloc_abbrev. All callers updated.
3499 (abbrev_table_add_abbrev): New function.
3500 (abbrev_table_lookup_abbrev): New function. Replaces
3501 dwarf2_lookup_abbrev. All callers updated.
3502 (abbrev_table_read_table): New function. Contents moved here from
3503 dwarf2_read_abbrevs.
3504 (dwarf2_read_abbrevs): Call it.
3505 (abbrev_table_free): New function.
3506 (dwarf2_free_abbrev_table): Call it.
3507
3508 2012-06-28 Stan Shebs <stan@codesourcery.com>
3509
3510 * osdata.c (info_osdata_command): Filter out "Title" columns
3511 from non-MI uses.
3512 * common/linux-osdata.c (struct osdata_type): Add title field.
3513 (osdata_table): Add titles to each entry.
3514 (linux_command_xfer_osdata): Add a column for title data.
3515
3516 2012-06-28 Stan Shebs <stan@codesourcery.com>
3517
3518 Make logging work for MI.
3519 * NEWS: Mention it.
3520 * interps.h (interp_set_logging_ftype): New typedef.
3521 (struct interp_procs): New field set_logging_proc.
3522 (current_interp_set_logging): Declare.
3523 * interps.c (current_interp_set_logging): New function.
3524 * cli/cli-logging.c: Include interps.h.
3525 (set_logging_redirect): Call current_interp_set_logging.
3526 (pop_output_files): Ditto.
3527 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3528 * mi/mi-console.h (mi_console_set_raw): Declare.
3529 * mi/mi-console.c (mi_console_set_raw): New function.
3530 * mi/mi-interp.c (saved_raw_stdout): New global.
3531 (mi_set_logging): New function.
3532 (_initialize_mi_interp): Add it to interp procs.
3533
3534 2012-06-28 Doug Evans <dje@google.com>
3535
3536 * symtab.c (lookup_symbol_aux_objfile): Use
3537 ALL_OBJFILE_PRIMARY_SYMTABS.
3538
3539 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3540
3541 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3542
3543 * common/buffer.c: Include inttypes.h and stdint.h.
3544 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3545
3546 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3547 Pedro Alves <palves@redhat.com>
3548
3549 * gdbthread.h (ALL_THREADS): New macro.
3550 (thread_list): Declare.
3551 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3552 going, but instead fall through to the stepping handling.
3553 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3554 the passed in signal. Adjust debug output.
3555 (resume_callback): Rename to ...
3556 (linux_nat_resume_callback): ... this. Pass the thread's last
3557 stop signal, if in "pass" state.
3558 (linux_nat_resume): Adjust to rename.
3559 (stop_wait_callback): New assertion. Don't respawn signals;
3560 instead let the LWP remain with SIGNALLED set.
3561 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3562 * remote.c (append_pending_thread_resumptions): New.
3563 (remote_vcont_resume): Call it.
3564 * target.h (target_resume): Extend comment.
3565
3566 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3567
3568 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3569
3570 2012-06-27 Doug Evans <dje@google.com>
3571
3572 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3573 Delete have_addr_base, unused. All uses updated.
3574 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3575 (dwarf2_get_pc_bounds): Add ranges_base.
3576 (dwarf2_record_block_ranges): Ditto.
3577
3578 2012-06-27 Tom Tromey <tromey@redhat.com>
3579
3580 PR macros/7961:
3581 * varobj.c (varobj_create): Update.
3582 (varobj_set_value): Update.
3583 * tracepoint.c (validate_actionline): Update.
3584 (encode_actions_1): Update.
3585 * parse.c (parse_exp_1): Add 'pc' argument.
3586 (parse_exp_in_context): Add 'pc' argument. Change how
3587 expression_context_pc is set.
3588 (parse_expression): Update.
3589 (parse_field_expression): Update.
3590 * expression.h (parse_exp_1): Update.
3591 * eval.c (parse_to_comma_and_eval): Update.
3592 * breakpoint.c (set_breakpoint_condition): Update.
3593 (update_watchpoint): Update.
3594 (init_breakpoint_sal): Update
3595 (find_condition_and_thread): Update.
3596 (watch_command_1): Update.
3597 (update_breakpoint_locations): Update.
3598 * ada-lang.c (ada_read_renaming_var_value): Update.
3599 (create_excep_cond_exprs): Update.
3600
3601 2012-06-27 Doug Evans <dje@google.com>
3602
3603 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3604 type units.
3605
3606 2012-06-26 Doug Evans <dje@google.com>
3607
3608 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3609 prototype.
3610 (error_check_comp_unit_head): New arg abbrev_section. All callers
3611 updated.
3612 (read_and_check_comp_unit_head): Ditto.
3613 (read_and_check_type_unit_head): Ditto.
3614
3615 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3616
3617 New attribute 'last' for gdb.Symtab_and_line.
3618 * NEWS (Python Scripting): Add entry about the new attribute.
3619 * python/py-symtab.c (salpy_get_last): New function which
3620 implements the get method for the 'last' attribute of
3621 gdb.Symtab_and_line.
3622 (sal_object_getset): Add entry for the 'last' attribute.
3623
3624 2012-06-26 Doug Evans <dje@google.com>
3625
3626 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3627 (dwo_sections): Add macinfo, macro.
3628 (dwarf2_locate_dwo_sections): Watch for macro sections.
3629 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3630 All callers updated. Handle DWO files.
3631
3632 * NEWS: Mention new options "set debug dwarf2-read" and
3633 "set debug symtab-create".
3634 * dwarf2read.c (dwarf2_read_debug): New static global.
3635 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3636 (process_queue): Ditto.
3637 (process_full_comp_unit): Ditto.
3638 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3639 * elfread.c (elf_symfile_read): Add debugging printf.
3640 * minsyms.c (install_minimal_symbols): Ditto.
3641 * psymtab.c (allocate_psymtab): Ditto.
3642 * symfile.c (allocate_symtab): Ditto.
3643 * symtab.c (symtab_create_debug): New global.
3644 (_initialize_symtab): Add new option "set debug symtab-create".
3645 * symtab.h (symtab_create_debug): Declare.
3646
3647 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3648 (lookup_dwo_type_unit): Ditto.
3649
3650 2012-06-26 Roland McGrath <roland@hack.frob.com>
3651 H.J. Lu <hongjiu.lu@intel.com>
3652
3653 * amd64-linux-nat.c: Include <sys/user.h>.
3654 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3655 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3656 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3657
3658 * configure.ac: Check if the fs_base and gs_base members of
3659 `struct user_regs_struct' exist.
3660 * config.in: Regenerated.
3661 * configure: Likewise.
3662
3663 2012-06-25 Michael Eager <eager@eagercon.com>
3664
3665 PR python/14291
3666 * python/python.c (gdbpy_write): Check for interrupted output.
3667
3668 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3669
3670 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3671 register as a stack alignment in ARM mode.
3672
3673 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3674
3675 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3676 * gnulib/config.in: Regenerate.
3677 * gnulib/configure: Likewise.
3678 * gnulib/import/m4/extensions.m4: Update it.
3679 * gnulib/import/m4/gnulib-common.m4: Likewise.
3680 * gnulib/import/m4/memmem.m4: Likewise.
3681 * gnulib/import/m4/mmap-anon.m4: Likewise.
3682 * gnulib/import/m4/multiarch.m4: Likewise.
3683 * gnulib/import/stdint.in.h: Likewise.
3684
3685 2012-06-24 Yao Qi <yao@codesourcery.com>
3686
3687 * corefile.c (write_memory_with_notification): New.
3688 * gdbcore.h: Declare write_memory_with_notification.
3689 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3690 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3691 * valops.c (value_assign): Likewise.
3692 * python/py-inferior.c (infpy_write_memory): Call
3693 'write_memory_with_notification'.
3694
3695 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3696
3697 * cc-with-index.sh: Use also -ex "set auto-load no".
3698
3699 2012-06-23 Doug Evans <dje@google.com>
3700
3701 PR 14125
3702 * NEWS: Document additions to .gdb_index.
3703 * dwarf2read.c: #include "gdb/gdb-index.h".
3704 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3705 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3706 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3707 (dwarf2_read_index): Recognize version 7.
3708 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3709 block_kind, domain): All callers updated.
3710 (dw2_find_symbol_file): Handle new index CU values.
3711 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3712 (add_index_entry): New args is_static, kind. All callers updated.
3713 (offset_type_compare, uniquify_cu_indices): New functions
3714 (symbol_kind): New function.
3715 (write_psymtabs_to_index): Remove duplicate CU values.
3716 (write_psymtabs_to_index): Write .gdb_index version 7.
3717
3718 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3719
3720 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3721 * configure: Regenerate.
3722
3723 2012-06-20 Yao Qi <yao@codesourcery.com>
3724
3725 * python/py-inferior.c: Update comments of infpy_read_memory
3726 and infpy_write_memory.
3727
3728 2012-06-19 Tom Tromey <tromey@redhat.com>
3729
3730 PR exp/9514:
3731 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3732 (push_type_address_space): Remove.
3733 * parse.c (insert_into_type_stack): New function.
3734 (insert_type): Likewise.
3735 (insert_type_address_space): Rename from push_type_address_space.
3736 Insert tp_space_identifier.
3737 * c-exp.y (ptr_operator): New production.
3738 (abs_decl): Use ptr_operator.
3739 (space_identifier): Call insert_type_address_space.
3740 (ptype): Don't use const_or_volatile_or_space_identifier.
3741 (const_or_volatile_noopt): Call insert_type.
3742 (conversion_type_id, conversion_declarator): New productions.
3743 (operator): Use conversion_type_id.
3744
3745 2012-06-18 Doug Evans <dje@google.com>
3746
3747 * symtab.h (minimal_symbol): New member created_by_gdb.
3748 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3749 created by gdb.
3750 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3751 (search_symbols): Call it instead of lookup_symbol.
3752 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3753
3754 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3755 Adjust address for DW_OP_GNU_addr_index.
3756 * dwarf2expr.h (dwarf_expr_context): Update comment.
3757 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3758 all callers updated. Handle TLS vars described with
3759 DW_OP_GNU_const_index.
3760 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3761 and DW_OP_GNU_const_index.
3762 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3763
3764 * block.c (find_block_in_blockvector): Make explicit the fact that we
3765 ignore GLOBAL_BLOCK.
3766
3767 2012-06-18 Tom Tromey <tromey@redhat.com>
3768
3769 * c-exp.y (operator): Remove trailing space after "delete" and
3770 "delete[]".
3771
3772 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3773 Jan Kratochvil <jan.kratochvil@redhat.com>
3774
3775 Switch i386 and derived targets to ON_STACK.
3776 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3777 (amd64_dicos_init_abi): Remove its installment.
3778 * dicos-tdep.c (dicos_init_abi): Remove the
3779 set_gdbarch_call_dummy_location call. Update the comment here.
3780 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3781 (i386_dicos_init_abi): Remove its installment.
3782 * i386-tdep.c (i386_push_dummy_code): New function.
3783 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3784 i386_push_dummy_code.
3785
3786 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3787
3788 Remove stale dummy frames.
3789 * breakpoint.c: Include dummy-frame.h.
3790 (longjmp_breakpoint_ops): New variable.
3791 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3792 bp_longjmp_call_dummy.
3793 (bpstat_what, bptype_string, print_one_breakpoint_location)
3794 (init_bp_location): Support bp_longjmp_call_dummy.
3795 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3796 (set_longjmp_breakpoint_for_call_dummy)
3797 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3798 functions.
3799 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3800 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3801 FIXME comment and extend the other comment for bp_call_dummy.
3802 (set_longjmp_breakpoint_for_call_dummy)
3803 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3804 * dummy-frame.c: Include gdbthread.h.
3805 (pop_dummy_frame_bpt): New function.
3806 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3807 (dummy_frame_discard): New function.
3808 (cleanup_dummy_frames): Update the comment about longjmps.
3809 * dummy-frame.h (dummy_frame_discard): New declaration.
3810 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3811 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3812 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3813 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3814 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3815 keep_going if IS_LONGJMP and there is no other reason to stop.
3816
3817 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3818
3819 * remote-sim.c (sim_command_completer): Initialize
3820 variable 'result'.
3821
3822 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3823
3824 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3825 * dwarf2loc.c (call_site_parameter_matches): Support
3826 CALL_SITE_PARAMETER_PARAM_OFFSET.
3827 (needs_dwarf_reg_entry_value): Push stub value.
3828 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3829 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3830 * gdbtypes.h (enum call_site_parameter_kind): New item
3831 CALL_SITE_PARAMETER_PARAM_OFFSET.
3832 (struct call_site.parameter.u): New field param_offset.
3833
3834 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3835
3836 Code cleanup: Generalize call_site.parameter key.
3837 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3838 variable dwarf_reg. New variable kind_u. Update parameters to
3839 push_dwarf_reg_entry_value.
3840 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3841 * dwarf2expr.h (enum call_site_parameter_kind)
3842 (union call_site_parameter_u): Forward declarations.
3843 (struct dwarf_expr_context_funcs): Update parameters and their
3844 description for push_dwarf_reg_entry_value.
3845 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3846 * dwarf2loc.c (call_site_parameter_matches): New function.
3847 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3848 description. Use call_site_parameter_matches.
3849 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3850 Update parameters and their description.
3851 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3852 New variable kind_u. Adjust the caller for updated parameters.
3853 (needs_dwarf_reg_entry_value): Update parameters.
3854 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3855 instead of attr. Update for the changed fields of struct
3856 call_site_parameter.
3857 * gdbtypes.h: Include dwarf2expr.h.
3858 (enum call_site_parameter_kind): New.
3859 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3860 fb_offset into new union u.
3861
3862 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3863
3864 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3865 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3866 for x32.
3867
3868 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3869
3870 * amd64-linux-nat.c (compat_x32_clock_t): New.
3871 (compat_x32_siginfo_t): Likewise.
3872 (compat_x32_siginfo_from_siginfo): Likewise.
3873 (siginfo_from_compat_x32_siginfo): Likewise.
3874 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3875 and siginfo_from_compat_x32_siginfo for x32.
3876
3877 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3878
3879 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3880
3881 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3882
3883 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3884 instead of gdbarch_ptr_bit.
3885 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3886 (amd64_supply_native_gregset): Likewise.
3887 (amd64_collect_native_gregset): Likewise.
3888 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3889 (amd64_supply_xsave): Likewise.
3890 (amd64_collect_fxsave): Likewise.
3891 (amd64_collect_xsave): Likewise.
3892
3893 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3894
3895 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3896 (amd64_linux_read_description): Check DS segment register for
3897 x32 process.
3898
3899 2012-06-15 Tom Tromey <tromey@redhat.com>
3900
3901 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3902 init_cutu_and_read_dies.
3903
3904 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3905
3906 * MAINTAINERS (Write After Approval): Add myself to the list.
3907
3908 2012-06-15 Tom Tromey <tromey@redhat.com>
3909
3910 * valops.c (value_find_oload_method_list): Now static.
3911 * value.h (value_find_oload_method_list): Don't declare.
3912
3913 2012-06-15 Tom Tromey <tromey@redhat.com>
3914
3915 * valops.c (find_overload_match): Use value_ind.
3916
3917 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3918
3919 * infrun.c (handle_inferior_event): Correct indentation.
3920
3921 2012-06-14 Doug Evans <dje@google.com>
3922
3923 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3924 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3925 All uses updated.
3926 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3927 updated. Handle DEBUG_LOC_START_LENGTH.
3928 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3929 (loclist_describe_location): Ditto.
3930
3931 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3932
3933 PR backtrace/13866
3934 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3935 after hiding inline functions.
3936
3937 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3938
3939 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3940 _initialize_inf_ttrace.
3941
3942 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3943
3944 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3945 _initialize_hppa_hpux_nat.
3946
3947 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3948
3949 * remote-sim.c (sim_command_completer): Change type of return
3950 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3951
3952 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3953 Jan Kratochvil <jan.kratochvil@redhat.com>
3954
3955 PR tdep/14222
3956 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3957 stack on a 16-byte boundary.
3958
3959 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3960
3961 * jit.c (finalize_symtab): Set function's return type to 'void' by
3962 default.
3963
3964 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3965 H.J. Lu <hongjiu.lu@intel.com>
3966
3967 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3968 Move bits common to both the classic LP64 and the new x32 ILP32
3969 ABI here.
3970 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3971 (amd64_x32_linux_init_abi): New function.
3972 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3973 subtype.
3974
3975 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3976 * i386-tdep.c (i386_pseudo_register_name): Make public.
3977 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3978 * amd64-tdep.c (amd64_dword_names): Add "eip".
3979 (amd64_x32_pseudo_register_type): New function
3980 (amd64_x32_init_abi): New function.
3981
3982 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3983
3984 PR build/14003
3985 * inferior.h (struct inferior_suspend_state): Comment out.
3986 (struct inferior): Comment out the field suspend.
3987 * infrun.c (struct infcall_suspend_state): Comment out the field
3988 inferior_suspend.
3989 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3990 out its assignment.
3991
3992 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3993
3994 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3995 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3996 function comment. Return ERROR for unresolved cases. Implement
3997 returning proper NAME.
3998 (yylex): Accept also NAME from classify_inner_name.
3999 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4000 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4001 LOC_TYPEDEF type.
4002 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4003
4004 2012-06-13 Tom Tromey <tromey@redhat.com>
4005
4006 * breakpoint.c (condition_completer): New function.
4007 (_initialize_breakpoint): Use it.
4008 * value.c (complete_internalvar): New function.
4009 * value.h (complete_internalvar): Declare.
4010
4011 2012-06-13 Tom Tromey <tromey@redhat.com>
4012
4013 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4014 * breakpoint.c (catch_syscall_completer): Return a VEC.
4015 * cli/cli-cmds.c (complete_command): Update.
4016 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4017 (complete_on_enum): Likewise.
4018 * command.h: Include gdb_vecs.h.
4019 (completer_ftype): Change return type.
4020 (complete_on_cmdlist, complete_on_enum): Likewise.
4021 * completer.c (noop_completer, filename_completer)
4022 (location_completer): Return a VEC.
4023 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4024 to a VEC.
4025 (expression_completer, complete_line_internal, complete_line)
4026 (command_completer): Return a VEC.
4027 (gdb_completion_word_break_characters, line_completion_function):
4028 Update.
4029 * completer.h: Include gdb_vecs.h.
4030 (complete_line, noop_completer, filename_completer)
4031 (expression_completer, location_completer, command_completer):
4032 Update.
4033 * f-lang.c (f_word_break_characters): Return a VEC.
4034 * interps.c (interpreter_completer): Return a VEC.
4035 * language.h (struct language_defn)
4036 <la_make_symbol_completion_list>: Return a VEC.
4037 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4038 * symtab.c (free_completion_list): Take a VEC.
4039 (return_val_size, return_val_index): Remove.
4040 (return_val): Now a VEC.
4041 (completion_list_add_name): Update.
4042 (default_make_symbol_completion_list_break_on)
4043 (default_make_symbol_completion_list, make_symbol_completion_list)
4044 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4045 Return a VEC.
4046 (add_filename_to_list): Update.
4047 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4048 <list>: Now a VEC.
4049 (maybe_add_partial_symtab_filename): Update.
4050 (make_source_files_completion_list): Return a VEC.
4051 * symtab.h (default_make_symbol_completion_list_break_on)
4052 (default_make_symbol_completion_list, make_symbol_completion_list)
4053 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4054 (make_source_files_completion_list): Update.
4055
4056 2012-06-13 Tom Tromey <tromey@redhat.com>
4057
4058 * breakpoint.c (add_catch_command): Use completer_ftype.
4059 * breakpoint.h: Include command.h.
4060 (add_catch_command): Use completer_ftype.
4061 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4062 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4063 Use completer_ftype.
4064 * command.h (completer_ftype): New typedef.
4065 (set_cmd_completer): Use it.
4066 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4067 completer_ftype.
4068
4069 2012-06-13 Pedro Alves <palves@redhat.com>
4070
4071 Partial revert of previous change.
4072
4073 * serial.c (scb_base): New global.
4074 (serial_for_fd): New.
4075 (serial_open, serial_fdopen_ops): Link new serial in open serials
4076 chain.
4077 (do_serial_close): Unlink serial from the open serials chain.
4078
4079 2012-06-12 Pedro Alves <palves@redhat.com>
4080
4081 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4082 threads here.
4083 (prepare_for_detach): No longer context switch here in non-stop
4084 mode.
4085 (fetch_inferior_event): Ditto.
4086 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4087 to the event thread before removing breakpoints. Switch to the
4088 event thread before inserting breakpoints and resuming.
4089 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4090 event thread before resuming.
4091 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4092 Switch to the event thread before removing breakpoints.
4093
4094 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4095
4096 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4097 special characters correctly for the Windows shells. See
4098 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4099 report.
4100 [!__MINGW32__]: Remove extra double quote character from special
4101 characters.
4102
4103 2012-06-11 Stan Shebs <stan@codesourcery.com>
4104
4105 * ui-out.h: Remove #if 0 declarations.
4106 * ui-out.c: Remove #if 0 functions.
4107
4108 2012-06-11 Pedro Alves <palves@redhat.com>
4109
4110 * ser-base.c (run_async_handler_and_reschedule): New.
4111 (fd_event, push_event): Use it.
4112 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4113 reference count to 1.
4114 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4115 instead of xfree.
4116 (serial_is_open, serial_ref, serial_unref): New.
4117 * serial.h (serial_open): Adjust comment.
4118 (serial_is_open): Declare.
4119 (serial_close): Adjust comment.
4120 (serial_ref, serial_unref) Declare.
4121 (struct serial): New field 'refcnt'.
4122
4123 2012-06-11 Pedro Alves <palves@redhat.com>
4124
4125 Remove #if 0'd "connect" command, and unnecessary associated
4126 refcounting and serial reuse bits.
4127
4128 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4129 * serial.c (last_serial_opened): Delete.
4130 (scb_base): Delete.
4131 (serial_open): Adjust.
4132 (serial_for_fd): Delete.
4133 (serial_fdopen_ops, do_serial_close): Adjust.
4134 (serial_fdopen_ops): Adjust.
4135
4136 2012-06-11 Pedro Alves <palves@redhat.com>
4137
4138 * serial.c (do_serial_close): Remove early return when SCB is
4139 null.
4140
4141 2012-06-11 Tom Tromey <tromey@redhat.com>
4142
4143 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4144
4145 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4146
4147 Fix regression by the "ambiguous linespec" series.
4148 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4149 get_last_displayed_symtab and get_last_displayed_line and depending
4150 on CURSAL.
4151
4152 2012-06-11 Tom Tromey <tromey@redhat.com>
4153
4154 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4155 (dw2_find_symbol_file): Use it.
4156
4157 2012-06-11 Michael Eager <eager@eagercon.com>
4158
4159 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4160 * mips-linux-tdep.h (mips_signals): New
4161
4162 2012-06-11 Tom Tromey <tromey@redhat.com>
4163
4164 * infrun.c (handle_inferior_event)
4165 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4166 breakpoint.
4167 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4168 exception logic in all cases. Update comments.
4169 (insert_longjmp_resume_breakpoint): Set the exception resume
4170 breakpoint.
4171
4172 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4173
4174 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4175
4176 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4177
4178 * valarith.c (binop_types_user_defined_p): Fix a typo.
4179
4180 2012-06-08 Yao Qi <yao@codesourcery.com>
4181 Chung-Lin Tang <cltang@codesourcery.com>
4182
4183 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4184 * arch-utils.h: Declare.
4185 * gdbarch.sh: Add return_in_first_hidden_param_p.
4186 * gdbarch.c, gdbarch.h: Regenerated.
4187 * infcall.c (call_function_by_hand): Call
4188 gdbarch_return_in_first_hidden_param_p instead of
4189 language_pass_by_reference.
4190
4191 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4192 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4193 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4194 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4195 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4196 `cplus_return_struct_by_reference'.
4197 (tic6x_return_value): Handle language cplusplus.
4198 (tic6x_return_in_first_hidden_param_p): New.
4199 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4200
4201 2012-06-07 Doug Evans <dje@google.com>
4202
4203 * dwarf2read.c (dwarf2_cu): Add comment.
4204
4205 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4206
4207 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4208 variable.
4209 (mips_eabi_push_dummy_call): Likewise.
4210 (mips_n32n64_push_dummy_call): Likewise.
4211 (mips_o32_push_dummy_call): Likewise.
4212 (mips_o64_push_dummy_call): Likewise.
4213
4214 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4215
4216 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4217
4218 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4219
4220 * mips-tdep.c (mips_pseudo_register_type): Use
4221 mips_float_register_p.
4222
4223 2012-06-06 Pedro Alves <palves@redhat.com>
4224
4225 * infrun.c (handle_inferior_event): Remove calls to
4226 reinit_frame_cache that follow a context_switch call.
4227
4228 2012-06-06 Pedro Alves <palves@redhat.com>
4229
4230 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4231 context_switch and remove stale comment.
4232
4233 2012-06-06 Pedro Alves <palves@redhat.com>
4234
4235 * infrun.c (struct execution_control_state): Remove
4236 `new_thread_event' field.
4237 (handle_inferior_event): Simplify new threads handling; don't
4238 resume the inferior if we find a new thread.
4239
4240 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4241
4242 * NEWS: Document the deprecation of SH's 'regs' command.
4243 * inferior.h (all_registers_info): Add function declaration.
4244 * sh-tdep.c (sh_show_regs): Remove variable.
4245 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4246 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4247 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4248 (sh_show_regs_command): Remove functions.
4249 (sh_gdbarch_init): Don't set sh_show_regs.
4250 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4251 'info all-registers'.
4252 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4253 (sh64_show_regs): Remove functions.
4254 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4255
4256 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4257
4258 * configure.ac: Move development=true below AC_INIT.
4259 * configure: Regenerate.
4260
4261 2012-06-05 Stan Shebs <stan@codesourcery.com>
4262
4263 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4264 gdb_stdout.
4265
4266 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4267
4268 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4269 argument as ssize_t.
4270 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4271 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4272 * target.c (target_read_stack, target_write_memory)
4273 (target_write_raw_memory): Likewise.
4274 * target.h (target_read_stack, target_write_memory)
4275 (target_write_raw_memory): Likewise.
4276
4277 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4278
4279 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4280 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4281 * target.c (target_read_memory): Change LEN to ssize_t.
4282 * target.h (target_read_memory): Change LEN to ssize_t.
4283
4284 2012-06-05 Pedro Alves <palves@redhat.com>
4285
4286 PR backtrace/13866
4287
4288 * breakpoint.c (until_break_command): Only fetch the selected
4289 frame after decode_line_1.
4290
4291 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4292
4293 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4294 event breakpoint at _start, __start or main if a program
4295 interpreter is not found.
4296
4297 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4298
4299 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4300 Add declaration.
4301 * windows-tdep.c: #include "objfiles.h".
4302 (windows_iterate_over_objfiles_in_search_order): New function.
4303 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4304 iterate_over_objfiles_in_search_order gdbarch method to
4305 windows_iterate_over_objfiles_in_search_order.
4306 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4307
4308 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4309
4310 * gdbarch.sh: Add generation of
4311 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4312 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4313 (iterate_over_objfiles_in_search_order): New gdbarch method.
4314 * gdbarch.h, gdbarch.c: Regenerate.
4315 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4316 Add declaration.
4317 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4318 New function.
4319 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4320 out of lookup_symbol_aux_symtabs.
4321 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4322 call to lookup_symbol_aux_objfile.
4323 (struct global_sym_lookup_data): New type.
4324 (lookup_symbol_global_iterator_cb): New function.
4325 (lookup_symbol_global): Search for symbol using
4326 gdbarch_iterate_over_objfiles_in_search_order and
4327 lookup_symbol_global_iterator_cb.
4328 * findvar.c (struct minsym_lookup_data): New type.
4329 (minsym_lookup_iterator_cb): New function.
4330 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4331 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4332 and minsym_lookup_iterator_cb.
4333
4334 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4335
4336 Revert the following patch:
4337 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4338 try locating the symbol in the symbol's own objfile first, before
4339 extending the search to all objfiles.
4340 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4341 out of lookup_symbol_aux_symtabs.
4342 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4343 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4344 Do not search EXCLUDE_OBJFILE.
4345 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4346 (lookup_symbol_global): Search for matches in the block's objfile
4347 first, before searching all other objfiles.
4348
4349 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4350
4351 * breakpoint.c (find_condition_and_thread): Stop parsing
4352 as soon as the first invalid keyword is found.
4353
4354 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4355
4356 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4357
4358 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4359
4360 * config/djgpp/djcheck.sh: Add copyright header.
4361
4362 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4363
4364 * copyright.py (update_files, main): Fix path to update-copyright
4365 script.
4366
4367 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4368
4369 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4370 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4371 for which a reminder to update by hand is printed.
4372
4373 2012-06-04 Doug Evans <dje@google.com>
4374
4375 * buildsym.c (make_blockvector): Add comment.
4376
4377 2012-06-04 Pedro Alves <palves@redhat.com>
4378
4379 * arch-utils.c (default_gdb_signal_from_target): Delete.
4380 * arch-utils.h (default_gdb_signal_from_target): Delete.
4381 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4382 gdbarch_gdb_signal_from_target_p.
4383 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4384 predicate).
4385 * gdbarch.h: Regenerate.
4386 * gdbarch.c: Regenerate.
4387
4388 2012-06-04 Pedro Alves <palves@redhat.com>
4389
4390 * gdbarch.sh (gdb_signal_from_target): Mention that the
4391 implementation of the method must be host independent.
4392 * gdbarch.h: Regenerate.
4393
4394 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4395
4396 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4397 parameters.
4398 (target_read_memory_bfd): New function.
4399 (symbol_file_add_from_memory): Use it.
4400
4401 2012-06-03 Doug Evans <dje@google.com>
4402
4403 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4404 of primary symtab.
4405 (basic_lookup_transparent_type): Ditto.
4406
4407 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4408 (ALL_PRIMARY_SYMTABS): Use it.
4409 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4410 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4411 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4412 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4413 (basic_lookup_transparent_type): Ditto.
4414
4415 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4416
4417 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4418 it to optimize resolution of demangled name.
4419
4420 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4421
4422 * configure.ac (development): Define new variable.
4423 Call AC_CHECK_LIB for mcheck if $development.
4424 (ERROR_ON_WARNING): Enable it by default only if $development.
4425 * config.in: Regenerate.
4426 * configure: Regenerate.
4427
4428 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4429
4430 * target.c (target_read_memory): Make LEN argument as size_t.
4431 * target.h (target_read_memory): Likewise.
4432
4433 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4434
4435 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4436
4437 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4438
4439 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4440 BookE interface for PowerPC server processors if not available
4441 in the Linux Kernel.
4442
4443 2012-05-31 Keith Seitz <keiths@redhat.com>
4444
4445 * linespec.c (decode_objc): Add cleanup to free
4446 INFO.FILE_SYMTABS.
4447 (find_linespec_symbols): Add cleanup to free CLASSES.
4448 * symfile.c (find_separate_debug_file_by_debuglink): Add
4449 cleanup to free DEBUGLINK.
4450 * ui-out.c (clear_header_list): No need to check if
4451 HEADER_NEXT.COLHDR is NULL.
4452 Free HEADER_NEXT.COL_NAME.
4453
4454 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4455
4456 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4457 warning.
4458
4459 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4460
4461 * configure.host (gdb_host_cpu): Handle tilegx*.
4462 (gdb_host): Handle tilegx-*-linux*.
4463 * tilegx-linux-nat.c: New file.
4464 * config/tilegx/linux.mh: New file.
4465
4466 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4467
4468 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4469 tilegx-linux-tdep.o.
4470 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4471 tilegx-linux-tdep.c.
4472 * configure.tgt: Handle tilegx-*-linux*.
4473 * tilegx-tdep.h: New file.
4474 * tilegx-tdep.c: New file.
4475 * tilegx-linux-tdep.c: New file.
4476 * regformats/reg-tilegx.dat: New file.
4477
4478 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4479
4480 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4481 accounting of hw watchpoints on ppc.
4482
4483 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4484
4485 * source.c (openp): Expand tilde in path entries.
4486
4487 2012-05-29 Doug Evans <dje@google.com>
4488
4489 * buildsym.c (block_compar): Fix comment.
4490 (end_symtab): Fix and clarify some comments.
4491
4492 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4493 cleanup_undefined_types.
4494 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4495 All callers updated.
4496
4497 2012-05-29 Tom Tromey <tromey@redhat.com>
4498
4499 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4500 fails.
4501 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4502 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4503 fails.
4504 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4505 fails.
4506
4507 2012-05-29 Tristan Gingold <gingold@adacore.com>
4508
4509 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4510 (struct darwin_info): ... New struct.
4511 (solib_darwin_pspace_data): New variable.
4512 (darwin_pspace_data_cleanup): New function.
4513 (get_darwin_info): Likewise.
4514 (darwin_dyld_version_ok, darwin_load_image_infos)
4515 (darwin_solib_get_all_image_info_addr_at_init)
4516 (darwin_solib_read_all_image_info_addr): Add info argument.
4517 Adjust code.
4518 (darwin_current_sos): Use per pspace structure.
4519 (darwin_solib_create_inferior_hook): Likewise.
4520 (darwin_clear_solib): Likewise.
4521 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4522
4523 2012-05-28 Pedro Alves <palves@redhat.com>
4524
4525 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4526 block that uses them. Clear ecss before handling each event.
4527
4528 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4529
4530 * solib-svr4.c (svr4_current_sos): New comment on
4531 svr4_current_sos_via_xfer_libraries fall back.
4532
4533 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4534
4535 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4536 it as a fallback for TYPE_IS_OPAQUE.
4537 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4538 symbols for lookup_symbol.
4539
4540 2012-05-24 John Steele Scott <toojays@toojays.net>
4541
4542 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4543 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4544 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4545 (check_producer): ... this new function, which also checks for ICC
4546 and caches the result.
4547 (producer_is_icc): New function.
4548 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4549 producer was ICC.
4550
4551 2012-05-24 Pedro Alves <palves@redhat.com>
4552
4553 PR gdb/7205
4554
4555 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4556 (default_gdb_signal_to_target): ... this. Add comment.
4557 (default_gdb_signal_from_host): Rename to ...
4558 (default_gdb_signal_from_target): ... this. Add comment.
4559 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4560 (default_gdb_signal_to_target): ... this.
4561 (default_gdb_signal_from_host): Rename to ...
4562 (default_gdb_signal_from_target): ... this.
4563 * corelow.c (core_open): Adjust to naming change. Replace comment.
4564 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4565 (gdb_signal_from_target): ... this. Adjust to
4566 default_gdb_signal_from_host naming change. Extend comment.
4567 (gdb_signal_to_host): Rename to ...
4568 (gdb_signal_to_target): ... this. Adjust to
4569 default_gdb_signal_to_host naming change.
4570 * gdbarch.h, gdbarch.c: Renegerate.
4571
4572 2012-05-24 Pedro Alves <palves@redhat.com>
4573
4574 PR gdb/7205
4575
4576 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4577
4578 2012-05-24 Pedro Alves <palves@redhat.com>
4579
4580 PR gdb/7205
4581
4582 Replace target_signal with gdb_signal throughout.
4583
4584 2012-05-24 Pedro Alves <palves@redhat.com>
4585
4586 PR tui/14159
4587
4588 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4589 string, instead of reusing the va_list argument.
4590
4591 2012-05-24 Tom Tromey <tromey@redhat.com>
4592
4593 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4594 Remove.
4595
4596 2012-05-23 Doug Evans <dje@google.com>
4597
4598 * symtab.c (search_symbols): Formatting fixes.
4599 (print_symbol_info): Formatting fixes.
4600
4601 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4602 int64_t change to leb128 API.
4603 (read_encoded_value, decode_frame_entry_1): Ditto.
4604 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4605 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4606 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4607 (execute_stack_op): Ditto.
4608 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4609 (safe_read_uleb128, safe_read_sleb128): Ditto.
4610 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4611 (dwarf2_compile_expr_to_ax): Ditto.
4612 (locexpr_describe_location_piece): Ditto.
4613 (disassemble_dwarf_expression): Ditto.
4614 (locexpr_describe_location_1): Ditto.
4615
4616 2012-05-23 Stan Shebs <stan@codesourcery.com>
4617 Kwok Cheung Yeung <kcy@codesourcery.com>
4618
4619 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4620 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4621 (mi-cmd-info.o): New rule.
4622 * osdata.h (info_osdata_command): New declaration.
4623 * osdata.c (info_osdata_command): Change to non-static.
4624 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4625 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4626 * mi/mi-cmd-info.c: New file.
4627
4628 2012-05-23 Doug Evans <dje@google.com>
4629
4630 * symtab.c (search_symbols): Pass NULL for file_matcher to
4631 expand_symtabs_matching if there are no files to match.
4632
4633 * gdbtypes.c (lookup_typename): Simplify.
4634
4635 2012-05-23 Pedro Alves <palves@redhat.com>
4636
4637 * arch-utils.h (default_target_signal_to_host): Delete.
4638 * arch-utils.c (default_target_signal_to_host): Delete.
4639 * gdbarch.sh (target_signal_to_host): Remove.
4640 * gdbarch.h, gdbarch.c: Regenerate.
4641
4642 2012-05-22 Doug Evans <dje@google.com>
4643
4644 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4645 "const gdb_byte *".
4646 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4647 (execute_cfa_program): Update to match API of leb128 functions.
4648 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4649 "const gdb_byte *".
4650 (read_unsigned_leb128, read_signed_leb128): Delete.
4651 (read_initial_length): Change type of buf argument to
4652 "const gdb_byte *".
4653 (read_encoded_value): Update to match API of leb128 functions.
4654 (decode_frame_entry): Change result to "const gdb_byte *", and
4655 similarly for "start" parameter.
4656 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4657 (dwarf2_build_frame_info): Change local frame_ptr to
4658 "const gdb_byte *".
4659 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4660 read_uleb128, read_sleb128. All callers updated.
4661 (safe_skip_leb128): New function.
4662 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4663 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4664 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4665 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4666 read_uleb128, read_sleb128.
4667 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4668 (execute_stack_op): Update to match API of leb128 functions.
4669 * dwarf2expr.h: #include "leb128.h".
4670 (read_uleb128, read_sleb128): Delete.
4671 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4672 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4673 * dwarf2loc.c (debug_loc_kind): New enum.
4674 (decode_debug_loc_addresses): New function.
4675 (decode_debug_loc_dwo_addresses): New function.
4676 (dwarf2_find_location_expression): Rewrite.
4677 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4678 (locexpr_describe_location_piece): Ditto.
4679 (disassemble_dwarf_expression): Ditto.
4680 (locexpr_describe_location_1): Ditto.
4681 (loclist_describe_location): Rewrite.
4682 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4683 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4684 (dwarf2_section_buffer_overflow_complaint): Renamed from
4685 dwarf2_macros_too_long_complaint. All callers updated.
4686 (skip_leb128): Delete.
4687 (init_cu_die_reader): Initialize reader->buffer_end.
4688 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4689 (skip_form_bytes): New arg buffer_end. All callers updated.
4690 Replace call to skip_leb128 with gdb_skip_leb128.
4691 (skip_unknown_opcode): New arg mac_end. All callers updated.
4692 (fill_in_loclist_baton): Initialize baton->from_dwo.
4693
4694 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4695
4696 * mips-linux-nat.c (mips_linux_read_description): Use a more
4697 verbose error message.
4698
4699 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4700
4701 * NEWS: Add MIPS/Linux DSP support.
4702 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4703 (SIGCONTEXT_DSPCTL): New macro.
4704 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4705 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4706 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4707 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4708 (N64_SIGCONTEXT_HI3): Likewise.
4709 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4710 (N64_SIGCONTEXT_LO3): Likewise.
4711 (N64_SIGCONTEXT_DSPCTL): Likewise.
4712 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4713 (mips_linux_o32_sigframe_init): Handle DSP registers.
4714 (mips_linux_n32n64_sigframe_init): Likewise.
4715
4716 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4717
4718 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4719 call to abort.
4720
4721 2012-05-22 Pedro Alves <palves@redhat.com>
4722
4723 * target.h (store_waitstatus): Move declaration ...
4724 * inf-child.h (store_waitstatus): ... here.
4725 * target.c: Move inclusion of gdb_wait.h, and ...
4726 (store_waitstatus): ... this ...
4727 * inf-child.c: ... here.
4728 * linux-nat.c: Include inf-child.h.
4729 * rs6000-nat.c: Include inf-child.h.
4730 * spu-linux-nat.c: Include inf-child.h.
4731
4732 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4733
4734 * tracepoint.c (start_tracing): Add missing i18n markup.
4735 (stop_tracing, set_trace_user): Ditto.
4736 (set_trace_notes, set_trace_stop_notes): Ditto.
4737
4738 2012-05-21 Tom Tromey <tromey@redhat.com>
4739
4740 PR c++/7173:
4741 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4742 types.
4743 * value.h (value_cast_pointers): Update.
4744 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4745 (value_cast): Update.
4746 (update_search_result): New function.
4747 (do_search_struct_field): New, from search_struct_field. Check
4748 for ambiguous results.
4749 (search_struct_field): Rewrite.
4750 * infcall.c (value_arg_coerce): Update.
4751 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4752 value_cast_pointers.
4753 * ada-lang.c (ada_convert_actual): Update.
4754
4755 2012-05-21 Tom Tromey <tromey@redhat.com>
4756
4757 * macroexp.c (macro_stringify): Terminate the string.
4758
4759 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4760
4761 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4762 Describe it.
4763 * auto-load.c (auto_load_expand_dir_vars): New function.
4764 (auto_load_safe_path_vec_update): Use it, remove the
4765 substitute_path_component call thanks to it.
4766 (auto_load_objfile_script): Remove the debug_file_directory processing.
4767 Use auto_load_expand_dir_vars, remove the substitute_path_component
4768 call thanks to it.
4769 * configure: Regenerate.
4770 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4771 path. Escape $ also for $debugdir.
4772 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4773 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4774
4775 2012-05-20 Doug Evans <dje@google.com>
4776
4777 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4778 before use. Check for symtab->includes == NULL before scanning it.
4779
4780 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4781
4782 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4783
4784 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4785
4786 * NEWS: Add microMIPS support and "set mips compression",
4787 "show mips compression" commands.
4788 * mips-tdep.h (mips_isa): New enum.
4789 (gdbarch_tdep): Add mips_isa.
4790 (mips_pc_is_mips16): Update prototype.
4791 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4792 * mips-tdep.c (mips_compression_mips16): New variable.
4793 (mips_compression_micromips): Likewise.
4794 (mips_compression_strings): Likewise.
4795 (mips_compression_string): Likewise.
4796 (is_mips16_isa, is_micromips_isa): New functions.
4797 (is_mips16_addr): Rename to...
4798 (is_compact_addr): ... this.
4799 (unmake_mips16_addr): Likewise to...
4800 (unmake_compact_addr): ... this.
4801 (make_mips16_addr): Likewise to...
4802 (make_compact_addr): ... this.
4803 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4804 functions.
4805 (mips_elf_make_msymbol_special): Handle microMIPS code.
4806 (msymbol_is_special): Rename to...
4807 (msymbol_is_mips16): ... this.
4808 (mips_make_symbol_special, mips_pc_is_mips16): Update
4809 accordingly.
4810 (msymbol_is_mips, msymbol_is_micromips): New functions.
4811 (mips16_to_32_reg): Rename to...
4812 (mips_reg3_to_reg): ... this.
4813 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4814 (mips_pc_isa): Likewise.
4815 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4816 code.
4817 (mips_fetch_instruction): Pass return status instead of printing
4818 an error message if requested. Handle microMIPS code. Bail out
4819 on an invalid ISA.
4820 (micromips_op): New macro.
4821 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4822 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4823 (b6s4_op, b7s3_reg): Likewise.
4824 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4825 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4826 (mips_insn_size): New function.
4827 (mips32_next_pc): Update mips_fetch_instruction call.
4828 (micromips_relative_offset7): New function.
4829 (micromips_relative_offset10): Likewise.
4830 (micromips_relative_offset16): Likewise.
4831 (micromips_pc_insn_size): Likewise.
4832 (micromips_bc1_pc): Likewise.
4833 (micromips_next_pc): Likewise.
4834 (unpack_mips16): Update mips_fetch_instruction call.
4835 (extended_mips16_next_pc): Update according to change to
4836 mips16_to_32_reg.
4837 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4838 code.
4839 (mips16_scan_prologue): Update mips_fetch_instruction call.
4840 Update according to change to mips16_to_32_reg.
4841 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4842 (mips_insn16_frame_base_sniffer): Likewise.
4843 (micromips_decode_imm9): New function.
4844 (micromips_scan_prologue): Likewise.
4845 (mips_micro_frame_cache): Likewise.
4846 (mips_micro_frame_this_id): Likewise.
4847 (mips_micro_frame_prev_register): Likewise.
4848 (mips_micro_frame_sniffer): Likewise.
4849 (mips_micro_frame_unwind): New variable.
4850 (mips_micro_frame_base_address): New function.
4851 (mips_micro_frame_base): New variable.
4852 (mips_micro_frame_base_sniffer): New function.
4853 (mips32_scan_prologue): Update mips_fetch_instruction call.
4854 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4855 rather than for MIPS16.
4856 (mips_insn32_frame_base_sniffer): Likewise.
4857 (mips_addr_bits_remove): Handle microMIPS code.
4858 (deal_with_atomic_sequence): Rename to...
4859 (mips_deal_with_atomic_sequence): ... this. Update the type
4860 of the variable used to hold an instruction. Remove the ISA bit
4861 check. Update mips_fetch_instruction call.
4862 (micromips_deal_with_atomic_sequence): New function.
4863 (deal_with_atomic_sequence): Likewise.
4864 (mips_about_to_return): Handle microMIPS code. Update
4865 mips_fetch_instruction call.
4866 (heuristic_proc_start): Check for the standard MIPS ISA rather
4867 than for MIPS16. Update mips_pc_is_mips16 and
4868 mips_fetch_instruction calls. Handle microMIPS code.
4869 (mips_push_dummy_code): Handle microMIPS code.
4870 (mips_eabi_push_dummy_call): Likewise.
4871 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4872 (mips_o64_push_dummy_call): Handle microMIPS code.
4873 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4874 (is_delayed): Remove function.
4875 (mips_single_step_through_delay): Replace the call to is_delayed
4876 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4877 Handle microMIPS code.
4878 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4879 microMIPS code.
4880 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4881 call.
4882 (micromips_in_function_epilogue_p): New function.
4883 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4884 call.
4885 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4886 Handle microMIPS.
4887 (gdb_print_insn_mips): Likewise.
4888 (mips_breakpoint_from_pc): Likewise.
4889 (mips_remote_breakpoint_from_pc): New function.
4890 (mips32_instruction_has_delay_slot): Simplify making use of the
4891 updated mips_fetch_instruction interface.
4892 (micromips_instruction_has_delay_slot): New function.
4893 (mips16_instruction_has_delay_slot): Simplify making use of the
4894 updated mips_fetch_instruction interface.
4895 (mips_adjust_breakpoint_address): Check for the standard MIPS
4896 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4897 calls. Handle microMIPS code.
4898 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4899 (mips_skip_trampoline_code): Handle microMIPS code.
4900 (global_mips_compression): New function.
4901 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4902 file flags. Register the microMIPS remote breakpoint handler
4903 and heuristic frame unwinder.
4904 (show_mips_compression): New function.
4905 (_initialize_mips_tdep): Add the "set mips compression" and
4906 "show mips compression" commands.
4907
4908 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4909
4910 * ada-lang.c:
4911 * ada-tasks.c:
4912 * ada-varobj.c:
4913 * amd64-darwin-tdep.c:
4914 * arm-symbian-tdep.c:
4915 * arm-tdep.c:
4916 * avr-tdep.c:
4917 * ax-gdb.c:
4918 * bfin-linux-tdep.c:
4919 * breakpoint.c:
4920 * c-valprint.c:
4921 * cli/cli-cmds.c:
4922 * coffread.c:
4923 * cp-support.c:
4924 * cris-tdep.c:
4925 * dwarf2-frame-tailcall.c:
4926 * dwarf2-frame.c:
4927 * dwarf2expr.c:
4928 * dwarf2loc.c:
4929 * dwarf2read.c:
4930 * elfread.c:
4931 * eval.c:
4932 * expprint.c:
4933 * f-valprint.c:
4934 * frv-tdep.c:
4935 * h8300-tdep.c:
4936 * hppa-hpux-tdep.c:
4937 * hppa-tdep.c:
4938 * hppanbsd-tdep.c:
4939 * i386-nto-tdep.c:
4940 * i386-tdep.c:
4941 * i387-tdep.c:
4942 * ia64-tdep.c:
4943 * jit.c:
4944 * linespec.c:
4945 * linux-tdep.c:
4946 * lm32-tdep.c:
4947 * m2-valprint.c:
4948 * m32c-tdep.c:
4949 * m32r-rom.c:
4950 * m32r-tdep.c:
4951 * m68k-tdep.c:
4952 * m68klinux-tdep.c:
4953 * mi/mi-main.c:
4954 * microblaze-tdep.c:
4955 * mips-linux-tdep.c:
4956 * mips-tdep.c:
4957 * mn10300-tdep.c:
4958 * p-valprint.c:
4959 * parse.c:
4960 * ppc-linux-tdep.c:
4961 * ppc-sysv-tdep.c:
4962 * printcmd.c:
4963 * python/py-finishbreakpoint.c:
4964 * python/py-inferior.c:
4965 * python/py-infthread.c:
4966 * python/py-type.c:
4967 * python/python.c:
4968 * remote-fileio.c:
4969 * remote-m32r-sdi.c:
4970 * remote-mips.c:
4971 * reverse.c:
4972 * rl78-tdep.c:
4973 * rs6000-aix-tdep.c:
4974 * rs6000-tdep.c:
4975 * s390-tdep.c:
4976 * score-tdep.c:
4977 * sh64-tdep.c:
4978 * skip.c:
4979 * solib-darwin.c:
4980 * solib-dsbt.c:
4981 * solib-frv.c:
4982 * sparc-tdep.c:
4983 * spu-multiarch.c:
4984 * spu-tdep.c:
4985 * stack.c:
4986 * symfile.c:
4987 * symtab.c:
4988 * tic6x-tdep.c:
4989 * tracepoint.c:
4990 * v850-tdep.c:
4991 * valarith.c:
4992 * valprint.c:
4993 * value.c:
4994 * xcoffread.c:
4995 * xtensa-tdep.c:
4996 * ada-lang.c:
4997 * ada-tasks.c:
4998 * ada-varobj.c:
4999 * amd64-darwin-tdep.c:
5000 * arm-symbian-tdep.c:
5001 * arm-tdep.c: Delete unused variables.
5002
5003 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5004
5005 Rename $ddir to $datadir.
5006 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5007 * auto-load.c (auto_load_safe_path_vec_update)
5008 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5009 * configure: Regenerate.
5010 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5011 Likewise. Remove the 'use $ddir' help string.
5012
5013 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5014
5015 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5016 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5017
5018 2012-05-18 Tom Tromey <tromey@redhat.com>
5019
5020 PR exp/13907:
5021 * valprint.h (struct value_print_options) <symbol_print>: New
5022 field.
5023 * valprint.c (user_print_options): Add default for symbol_print.
5024 (show_symbol_print): New function.
5025 (generic_val_print): Respect symbol_print.
5026 (_initialize_valprint): Add "print symbol" setting.
5027 * f-valprint.c (f_val_print): Respect symbol_print.
5028 * c-valprint.c (c_val_print): Respect symbol_print.
5029 * NEWS: Update.
5030 * printcmd.c (print_address_symbolic): Return int. Ignore some
5031 zero-size symbols.
5032 (print_address_demangle): Return int.
5033 * defs.h: (print_address_symbolic): Return int.
5034 * value.h (print_address_demangle): Return int.
5035
5036 2012-05-18 Tom Tromey <tromey@redhat.com>
5037
5038 * valprint.c (val_print_string): Don't print leading space.
5039 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5040 print space before string or vtbl.
5041 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5042 before string.
5043 * jv-valprint.c (java_value_print): Print space before string.
5044 * go-valprint.c (print_go_string): Print space before string.
5045 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5046 space before string.
5047 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5048 space before string or vtbl.
5049 * auxv.c (fprint_target_auxv): Print space after address.
5050
5051 2012-05-18 Tom Tromey <tromey@redhat.com>
5052
5053 * printcmd.c (print_address_demangle): Remove special case for 0.
5054
5055 2012-05-18 Tom Tromey <tromey@redhat.com>
5056
5057 * printcmd.c (print_address_demangle): Add 'opts' argument.
5058 * p-valprint.c (pascal_val_print): Update.
5059 * jv-valprint.c (java_val_print): Update.
5060 * value.h: Update.
5061 * valprint.c (generic_val_print): Update.
5062 (print_function_pointer_address): Add 'options' argument. Remove
5063 'addressprint' argument. Update.
5064 * m2-valprint.c (print_unpacked_pointer): Update.
5065 * gnu-v3-abi.c (print_one_vtable): Update.
5066 (gnuv3_print_method_ptr): Update.
5067 * f-valprint.c (f_val_print): Update.
5068 * cp-valprint.c (cp_print_value_fields): Update.
5069 * valprint.h (print_function_pointer_address): Update.
5070 * c-valprint.c (c_val_print): Update.
5071
5072 2012-05-18 Tom Tromey <tromey@redhat.com>
5073
5074 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5075 directly corresponding to the found psymtab.
5076 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5077 (dw2_find_pc_sect_symtab): Use it.
5078 * block.h (blockvector_contains_pc): Declare.
5079 * block.c (find_block_in_blockvector): New function.
5080 (blockvector_for_pc_sect): Use it.
5081 (blockvector_contains_pc): New function.
5082
5083 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5084
5085 * mips-tdep.h (mips_write_pc): New prototype.
5086 * mips-tdep.c (mips_write_pc): Make external, add description.
5087 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5088 add description.
5089
5090 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5091
5092 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5093 mips_regnum->pc.
5094 (mips_unwind_pc, mips_write_pc): Likewise.
5095 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5096 gdbarch_read_pc.
5097
5098 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5099
5100 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5101 proc_warn, proc_error, proc_get_status, proc_flags,
5102 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5103 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5104 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5105 proc_stop_process, proc_wait_for_stop, proc_run_process,
5106 proc_set_traced_signals, proc_set_traced_faults,
5107 proc_set_traced_sysentry, proc_set_traced_sysexit,
5108 proc_set_held_signals, proc_get_held_signals,
5109 proc_get_traced_signals, proc_get_traced_faults,
5110 proc_get_traced_sysentry, proc_get_traced_sysexit,
5111 proc_clear_current_fault, proc_set_current_signal,
5112 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5113 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5114 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5115 proc_get_current_thread, proc_get_current_thread,
5116 proc_get_current_thread, proc_update_threads,
5117 proc_update_threads, proc_update_threads, proc_update_threads,
5118 proc_iterate_over_threads, procfs_find_new_threads,
5119 procfs_pid_to_str): Make static. Remove advance declaration.
5120 (proc_cursig): Make static. Conditionalized defintion on
5121 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5122 (proc_syscall, proc_set_kill_on_last_close,
5123 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5124 proc_get_pending_signals, proc_get_signal_actions,
5125 proc_trace_signal, proc_ignore_signal): Delete.
5126
5127 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5128
5129 * coffread.c (cs_section_address): Passing proper argument for
5130 `bfd_get_section_vma'.
5131 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5132 `bfd_get_section_flags'.
5133 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5134 `bfd_get_section_vma'.
5135
5136 2012-05-16 Tom Tromey <tromey@redhat.com>
5137
5138 PR macros/13205:
5139 * macrotab.h: (macro_define_special): Declare.
5140 (enum macro_special_kind): New.
5141 (struct macro_definition) <argc, replacement>: Update comments.
5142 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5143 (macro_define_object_internal): New function.
5144 (macro_define_object): Use it.
5145 (macro_define_special): New function.
5146 (fixup_definition): New function.
5147 (macro_lookup_definition, foreach_macro_in_scope)
5148 (foreach_macro): Use fixup_definition.
5149 * macroexp.h (macro_stringify): Declare.
5150 * macroexp.c (free_buffer_return_text): New function.
5151 (stringify): Constify "arg".
5152 (macro_stringify): New function.
5153 * dwarf2read.c (macro_start_file): Call macro_define_special.
5154
5155 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5156 Maciej W. Rozycki <macro@mips.com>
5157
5158 * breakpoint.h (bp_location): Add related_address member.
5159 * inferior.h (get_return_value): Take a pointer to struct value
5160 instead of struct type for the function requested.
5161 * value.h (using_struct_return): Likewise.
5162 * gdbarch.sh (return_value): Take a pointer to struct value
5163 instead of struct type for the function requested.
5164 * breakpoint.c (set_breakpoint_location_function): Initialize
5165 related_address for bp_gnu_ifunc_resolver breakpoints.
5166 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5167 requested function's address to gdbarch_return_value.
5168 * eval.c (evaluate_subexp_standard): Pass the requested
5169 function's address to using_struct_return.
5170 * infcall.c (call_function_by_hand): Pass the requested
5171 function's address to using_struct_return and
5172 gdbarch_return_value.
5173 * infcmd.c (get_return_value): Take a pointer to struct value
5174 instead of struct type for the function requested.
5175 (print_return_value): Update accordingly.
5176 (finish_command_continuation): Likewise.
5177 * stack.c (return_command): Pass the requested function's
5178 address to using_struct_return and gdbarch_return_value.
5179 * value.c (using_struct_return): Take a pointer to struct value
5180 instead of struct type for the function requested. Pass the
5181 requested function's address to gdbarch_return_value.
5182 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5183 New function_value member, replacing function_type.
5184 (bpfinishpy_dealloc): Update accordingly.
5185 (bpfinishpy_pre_stop_hook): Likewise.
5186 (bpfinishpy_init): Likewise. Record the requested function's
5187 address.
5188 * mips-tdep.c (mips_fval_reg): New enum.
5189 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5190 words put in GP registers.
5191 (mips_o64_push_dummy_call): Update a comment.
5192 (mips_o32_return_value): Take a pointer to struct value instead
5193 of struct type for the function requested and use it to check if
5194 using the MIPS16 calling convention. Return the designated
5195 general purpose registers for floating-point values returned in
5196 MIPS16 mode.
5197 (mips_o64_return_value): Likewise.
5198 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5199 (ppc_sysv_abi_broken_return_value): Likewise.
5200 (ppc64_sysv_abi_return_value): Likewise.
5201 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5202 value instead of struct type for the function requested.
5203 * amd64-tdep.c (amd64_return_value): Likewise.
5204 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5205 * arm-tdep.c (arm_return_value): Likewise.
5206 * avr-tdep.c (avr_return_value): Likewise.
5207 * bfin-tdep.c (bfin_return_value): Likewise.
5208 * cris-tdep.c (cris_return_value): Likewise.
5209 * frv-tdep.c (frv_return_value): Likewise.
5210 * h8300-tdep.c (h8300_return_value): Likewise.
5211 (h8300h_return_value): Likewise.
5212 * hppa-tdep.c (hppa32_return_value): Likewise.
5213 (hppa64_return_value): Likewise.
5214 * i386-tdep.c (i386_return_value): Likewise.
5215 * ia64-tdep.c (ia64_return_value): Likewise.
5216 * iq2000-tdep.c (iq2000_return_value): Likewise.
5217 * lm32-tdep.c (lm32_return_value): Likewise.
5218 * m32c-tdep.c (m32c_return_value): Likewise.
5219 * m32r-tdep.c (m32r_return_value): Likewise.
5220 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5221 * m68k-tdep.c (m68k_return_value): Likewise.
5222 (m68k_svr4_return_value): Likewise.
5223 * m88k-tdep.c (m88k_return_value): Likewise.
5224 * mep-tdep.c (mep_return_value): Likewise.
5225 * microblaze-tdep.c (microblaze_return_value): Likewise.
5226 * mn10300-tdep.c (mn10300_return_value): Likewise.
5227 * moxie-tdep.c (moxie_return_value): Likewise.
5228 * mt-tdep.c (mt_return_value): Likewise.
5229 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5230 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5231 (ppc_sysv_abi_broken_return_value): Likewise.
5232 (ppc64_sysv_abi_return_value): Likewise.
5233 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5234 * rl78-tdep.c (rl78_return_value): Likewise.
5235 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5236 * rx-tdep.c (rx_return_value): Likewise.
5237 * s390-tdep.c (s390_return_value): Likewise.
5238 * score-tdep.c (score_return_value): Likewise.
5239 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5240 (sh_return_value_fpu): Likewise.
5241 * sh64-tdep.c (sh64_return_value): Likewise.
5242 * sparc-tdep.c (sparc32_return_value): Likewise.
5243 * sparc64-tdep.c (sparc64_return_value): Likewise.
5244 * spu-tdep.c (spu_return_value): Likewise.
5245 * tic6x-tdep.c (tic6x_return_value): Likewise.
5246 * v850-tdep.c (v850_return_value): Likewise.
5247 * vax-tdep.c (vax_return_value): Likewise.
5248 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5249 * xtensa-tdep.c (xtensa_return_value): Likewise.
5250 * gdbarch.c: Regenerate.
5251 * gdbarch.h: Regenerate.
5252
5253 2012-05-15 Tom Tromey <tromey@redhat.com>
5254
5255 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5256
5257 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5258
5259 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5260 of command in two error message.
5261
5262 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5263
5264 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5265
5266 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5267
5268 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5269
5270 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5271
5272 * NEWS (show auto-load scripts-directory): Add forgotten command.
5273
5274 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5275
5276 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5277 parameters.
5278
5279 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5280
5281 * amd64-tdep.c: Include features/i386/x32.c and
5282 features/i386/x32-avx.c.
5283 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5284 initialize_tdesc_x32_avx.
5285
5286 2012-05-14 Stan Shebs <stan@codesourcery.com>
5287
5288 Add dynamic printf.
5289 * breakpoint.h (enum bptype): New type bp_dprintf.
5290 (struct breakpoint): New field extra_string.
5291 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5292 (create_breakpoint): Add extra_string arg.
5293 * breakpoint.c (dprintf_breakpoint_ops): New.
5294 (is_breakpoint): Add bp_dprintf.
5295 (bpstat_what): Add dprintf case.
5296 (bptype_string): Ditto.
5297 (print_one_breakpoint_location): Ditto.
5298 (init_bp_location): Ditto.
5299 (bkpt_print_mention): Ditto.
5300 (dprintf_style_enums): New array.
5301 (dprintf_style): New global.
5302 (dprintf_function): New global.
5303 (dprintf_channel): New global.
5304 (update_dprintf_command_list): New function.
5305 (update_dprintf_commands): New function.
5306 (init_breakpoint_sal): Add extra_string argument, handle it.
5307 (create_breakpoint_sal): Add extra_string argument.
5308 (create_breakpoints_sal): Add extra_string argument, update callers.
5309 (find_condition_and_thread): Add extra argument.
5310 (create_breakpoint): Add extra_string argument, record it.
5311 (dprintf_command): New function.
5312 (break_command_1): Add arg to create_breakpoint call.
5313 (handle_gnu_v3_exceptions): Ditto.
5314 (trace_command): Ditto.
5315 (ftrace_command): Ditto.
5316 (strace_command): Ditto.
5317 (bkpt_print_mention): Add dprintf case.
5318 (create_breakpoint_sal_default): Add extra_string argument.
5319 (_initialize_breakpoint): Add new commands.
5320 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5321 * python/py-breakpoint.c (bppy_init): Ditto.
5322 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5323
5324 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5325
5326 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5327
5328 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5329
5330 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5331 unsigned long long.
5332
5333 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5334
5335 Add a new function gdb.find_pc_line to the Python API.
5336 * NEWS (Python Scripting): Add entry about the new function.
5337 * python/python.c (gdbpy_find_pc_line): New function which
5338 implements gdb.find_pc_line.
5339 (GdbMethods): Add entry for the new function.
5340
5341 2012-05-12 Pedro Alves <palves@redhat.com>
5342
5343 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5344 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5345
5346 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5347
5348 * inferior.c: Include completer.h
5349 (initialize_inferiors): Set completer of add-inferior to
5350 filename_completer.
5351
5352 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5353
5354 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5355 gdbarch_ptr_bit for x32 core dump.
5356
5357 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5358
5359 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5360 and features/i386/x32-avx-linux.c.
5361
5362 2012-05-11 Stan Shebs <stan@codesourcery.com>
5363 Kwok Cheung Yeung <kcy@codesourcery.com>
5364
5365 * NEWS: Describe new info os commands.
5366 * common/linux-osdata.c (PID_T, TIME_T): Define.
5367 (MAX_PID_T_STRLEN): New.
5368 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5369 MAX_PID_T_STRLEN.
5370 (command_from_pid): Add comment. Change to use PID_T.
5371 (commandline_from_pid): Change to use PID_T.
5372 (user_from_pid): Add comment.
5373 (get_process_owner): Add comment. Change to use PID_T and
5374 MAX_PID_T_STRLEN.
5375 (get_number_of_cpu_cores): Add comment.
5376 (get_cores_used_by_process): Add comment. Change to use PID_T and
5377 MAX_PID_T_STRLEN.
5378 (linux_xfer_osdata_processes): Change to use PID_T and
5379 MAX_PID_T_STRLEN.
5380 (compare_processes): New function.
5381 (linux_xfer_osdata_processgroups): New function.
5382 (linux_xfer_osdata_threads): Change to use PID_T.
5383 (linux_xfer_osdata_fds): New function.
5384 (format_socket_state, print_sockets): New functions.
5385 (union socket_addr): New union.
5386 (linux_xfer_osdata_isockets): New function.
5387 (time_from_time_t, group_from_gid): New functions.
5388 (linux_xfer_osdata_shm): New function.
5389 (linux_xfer_osdata_sem): New function.
5390 (linux_xfer_osdata_msg): New function.
5391 (linux_xfer_osdata_modules): New function.
5392 (osdata_table): Add new entries.
5393 * common/buffer.c (buffer_xml_printf): Add support for long and
5394 long long format specifiers.
5395
5396 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5397
5398 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5399 (tdesc_x32_avx_linux): Likewise.
5400
5401 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5402
5403 Implement multi-component --with-auto-load-dir.
5404 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5405 entries.
5406 (--with-auto-load-safe-path): Update the default value description.
5407 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5408 New.
5409 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5410 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5411 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5412 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5413 "set auto-load scripts-directory".
5414 * config.in: Regenerate.
5415 * configure: Regenerate.
5416 * configure.ac (--with-auto-load-dir): New configure option.
5417 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5418
5419 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5420
5421 Provide $ddir substitution for --with-auto-load-safe-path.
5422 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5423 entries.
5424 * auto-load.c: Include observer.h.
5425 (auto_load_safe_path_vec_update): Call substitute_path_component for
5426 each component. New variable ddir_subst.
5427 (auto_load_gdb_datadir_changed): New function.
5428 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5429 AUTO_LOAD_SAFE_PATH. New comment.
5430 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5431 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5432 * config.in: Regenerate.
5433 * configure: Regenerate.
5434 * configure.ac (--auto-load-safe-path): Rename
5435 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5436 GDB_DATADIR/auto-load.
5437 * defs.h (substitute_path_component): New declaration.
5438 * top.c: Include observer.h.
5439 (set_gdb_datadir): New function.
5440 (init_main): Install it for "set data-directory".
5441 * utils.c (substitute_path_component): New function.
5442
5443 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5444
5445 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5446 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5447 DEBUG_FILE_DIRECTORY. Handle multiple components of
5448 DEBUG_FILE_DIRECTORY.
5449
5450 2012-05-10 Tom Tromey <tromey@redhat.com>
5451
5452 * dwarf2read.c (recursively_write_psymbols): New function.
5453 (write_psymtabs_to_index): Use it.
5454
5455 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5456 field.
5457 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5458 (load_partial_comp_unit): Update.
5459 (queue_comp_unit): Add argument 'pretend_language'.
5460 (process_queue): Update.
5461 (psymtab_to_symtab_1): Skip dependencies that have a user.
5462 (load_partial_comp_unit_reader): Give meaning to the 'data'
5463 argument.
5464 (load_full_comp_unit): Add 'pretend_language' argument.
5465 (process_full_comp_unit): Add 'pretend_language' argument. Set
5466 language on CU.
5467 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5468 Update.
5469 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5470 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5471 Update.
5472 (prepare_one_comp_unit): Add 'pretend_language' argument.
5473
5474 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5475 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5476 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5477 (dw2_do_instantiate_symtab): Check whether symtab was read in
5478 before queueing.
5479 (dw2_instantiate_symtab): Add assertion. Call
5480 process_cu_includes.
5481 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5482 (partial_symtab_p): New typedef.
5483 (set_partial_user): New function.
5484 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5485 (scan_partial_symbols): Add imported CU to imported_symtabs.
5486 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5487 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5488 (get_symtab, recursively_compute_inclusions)
5489 (compute_symtab_includes, process_cu_includes)
5490 (process_imported_unit_die): New functions.
5491 (process_die) <DW_TAG_imported_unit>: New case.
5492 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5493
5494 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5495 comment.
5496 (struct partial_die_info) <locdesc>: Remove.
5497 <d>: New field.
5498 (process_psymtab_comp_unit): Add 'read_partial' argument.
5499 Update.
5500 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5501 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5502 (add_partial_symbol): Update.
5503 (process_die): Handle DW_TAG_partial_unit.
5504 (read_file_scope): Update comment.
5505 (load_partial_dies): Handle DW_TAG_imported_unit.
5506 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5507 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5508
5509 2012-05-10 Tom Tromey <tromey@redhat.com>
5510
5511 * cc-with-dwz.sh: New file.
5512
5513 2012-05-10 Tom Tromey <tromey@redhat.com>
5514
5515 * symtab.h (struct symtab) <includes, user>: New fields.
5516 * block.h (struct block_iterator) <d, idx, which>: New fields.
5517 * block.c (initialize_block_iterator, find_iterator_symtab)
5518 (block_iterator_step, block_iter_name_step)
5519 (block_iter_match_step): New functions.
5520 (block_iterator_first, block_iterator_next)
5521 (block_iter_name_first, block_iter_name_next)
5522 (block_iter_match_first, block_iter_match_next): Rewrite.
5523 (get_block_symtab): New function.
5524
5525 2012-05-10 Tom Tromey <tromey@redhat.com>
5526
5527 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5528 set_block_symtab.
5529 * jit.c (finalize_symtab): Use allocate_global_block,
5530 set_block_symtab.
5531 * buildsym.c (finish_block_internal): New function, from old
5532 finish_block.
5533 (finish_block): Rewrite.
5534 (end_symtab): Use finish_block_internal, set_block_symtab.
5535 * block.h (struct global_block): New.
5536 (allocate_global_block, set_block_symtab): Declare.
5537 * block.c (allocate_global_block, set_block_symtab): New
5538 functions.
5539
5540 2012-05-10 Tom Tromey <tromey@redhat.com>
5541
5542 * psymtab.c (partial_map_expand_apply): Add assertion.
5543 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5544 (psymtab_to_symtab): Find unshared psymtab.
5545 (dump_psymtab): Print including psymtabs.
5546 (recursively_search_psymtabs): New function.
5547 (expand_symtabs_matching_via_partial): Use it.
5548 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5549 fields.
5550 (enum psymtab_search_status): New.
5551
5552 2012-05-10 Tom Tromey <tromey@redhat.com>
5553
5554 * tracepoint.c (scope_info): Update.
5555 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5556 (find_pc_sect_symtab, search_symbols)
5557 (default_make_symbol_completion_list_break_on)
5558 (make_file_symbol_completion_list): Update.
5559 * symmisc.c (dump_symtab_1): Update.
5560 * stack.c (print_frame_args, iterate_over_block_locals)
5561 (print_frame_labels, iterate_over_block_arg_vars): Update.
5562 * python/py-block.c (block_object) <dict>: Remove.
5563 <block>: New field.
5564 <iter>: Change type.
5565 (blpy_iter): Update.
5566 (blpy_block_syms_iternext): Update.
5567 * psymtab.c (map_block): Use block iterators.
5568 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5569 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5570 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5571 * infrun.c (check_exception_resume): Update.
5572 * cp-support.c (make_symbol_overload_list_block): Update.
5573 * coffread.c (patch_opaque_types): Update.
5574 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5575 * block.h (struct block_iterator): New.
5576 (block_iterator_first, block_iterator_next, block_iter_name_first)
5577 (block_iter_name_next, block_iter_match_first)
5578 (block_iter_match_next): Declare.
5579 (ALL_BLOCK_SYMBOLS): Redefine.
5580 * block.c (block_iterator_first, block_iterator_next)
5581 (block_iter_name_first, block_iter_name_next)
5582 (block_iter_match_first, block_iter_match_next): New functions.
5583 * ada-lang.c (ada_add_block_symbols)
5584 (ada_make_symbol_completion_list): Use block iterator.
5585
5586 2012-05-10 Tom Tromey <tromey@redhat.com>
5587
5588 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5589 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5590 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5591 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5592 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5593 Update.
5594
5595 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5596
5597 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5598 print-file-var-lib2.c, print-file-var-main.c and
5599 print-file-var.exp (located in gdb/testsuite/gdb.base).
5600
5601 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5602
5603 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5604 try locating the symbol in the symbol's own objfile first, before
5605 extending the search to all objfiles.
5606 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5607 out of lookup_symbol_aux_symtabs.
5608 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5609 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5610 Do not search EXCLUDE_OBJFILE.
5611 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5612 (lookup_symbol_global): Search for matches in the block's objfile
5613 first, before searching all other objfiles.
5614
5615 2012-05-10 Tristan Gingold <gingold@adacore.com>
5616
5617 * printcmd.c (set_command): Add pre/post inc/dec.
5618
5619 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5620
5621 * gdb.1: Document -ex option.
5622
5623 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5624
5625 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5626 * inferior.h (AT_SYMBOL): Delete.
5627
5628 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5629
5630 * mips-tdep.c (mips_push_dummy_code): New function.
5631 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5632 ON_STACK and install mips_push_dummy_code as our gdbarch
5633 push_dummy_code routine.
5634
5635 2012-05-09 Pedro Alves <palves@redhat.com>
5636
5637 * target.c (set_maintenance_target_async_permitted): Rename to ...
5638 (set_target_async_command): ... this.
5639 (show_maintenance_target_async_permitted): Rename to ...
5640 (show_target_async_command): ... this.
5641 (initialize_targets): Adjust.
5642
5643 2012-05-08 Doug Evans <dje@google.com>
5644
5645 * go-exp.y (classify_name): Add missing assignment of fields of
5646 yylval.ssym.
5647
5648 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5649
5650 Display the ">" prompt in interactive mode while reading canned
5651 commands, even when the current interpreter is MI.
5652
5653 * interps.c (interp_set_temp): New function.
5654
5655 * interps.h (interp_set_temp): Add prototype.
5656
5657 * cli/cli-script.c (restore_interp): New cleanup function.
5658 (read_command_lines): Temporarily override the current interpreter
5659 with CLI and arrange for restoring the original one.
5660
5661 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5662
5663 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5664
5665 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5666
5667 * probe.c (parse_probes): Move conditional to check for
5668 debuginfo files from here...
5669 * stap-probe.c (stap_get_probes): ... to here.
5670
5671 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5672 H.J. Lu <hongjiu.lu@intel.com>
5673
5674 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5675 `movl %esp, %ebp' for the X32 ABI.
5676
5677 2012-05-07 Tom Tromey <tromey@redhat.com>
5678
5679 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5680 get_DW_TAG_name.
5681 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5682 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5683 (dwarf_stack_op_name): Remove.
5684 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5685 (decode_locdesc): Use get_DW_OP_name.
5686 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5687 (dwarf2_compile_expr_to_ax): Likewise.
5688 (disassemble_dwarf_expression): Likewise.
5689 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5690
5691 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5692
5693 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5694 (sh_linux_sigtramp_cache): New function.
5695 (sh_linux_sigreturn_init): New function.
5696 (sh_linux_rt_sigreturn_init): New function.
5697 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5698 patterns.
5699 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5700 syscall codes.
5701 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5702 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5703 (sh_linux_init_abi): Add init calls to register new tramp_frame
5704 definitions under 32-bit SH, update comments.
5705
5706 2012-05-07 Pedro Alves <palves@redhat.com>
5707
5708 PR gdb/10952
5709
5710 * amd64-linux-tdep.c: Include glibc-tdep.h.
5711 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5712 gdbarch_skip_solib_resolver callback.
5713
5714 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5715
5716 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5717 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5718 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5719 (add_auto_load_safe_path): Change the error message.
5720 (_initialize_auto_load): Change the "safe-path" help text.
5721 * configure: Regenerate
5722 * configure.ac (--without-auto-load-safe-path): Set
5723 WITH_AUTO_LOAD_SAFE_PATH to /.
5724
5725 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5726
5727 * stap-probe.h: Do not include unecessary `probe.h'.
5728
5729 2012-05-05 Alan Modra <amodra@gmail.com>
5730
5731 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5732 bfd_und_section_ptr.
5733 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5734 and bfd_com_section_ptr.
5735
5736 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5737
5738 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5739
5740 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5741
5742 * windows-nat.h (segment_register_p_ftype): New typedef.
5743 (windows_set_segment_register_p): Add declaration.
5744 * windows-nat.c (segment_register_p): New static global.
5745 (windows_set_segment_register_p): New function.
5746 (do_windows_fetch_inferior_registers): Add special handling
5747 for segment registers.
5748 * amd64-windows-nat.c: #include "amd64-tdep.h".
5749 (amd64_windows_segment_register_p): New function.
5750 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5751 * i386-windows-nat.c: #include "i386-tdep.h".
5752 (i386_windows_segment_register_p): New function.
5753 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5754
5755 2012-05-04 Tristan Gingold <gingold@adacore.com>
5756
5757 * printcmd.c (set_command): Emit a warning if the expression is not
5758 an assignment.
5759
5760 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5761
5762 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5763 Make static.
5764
5765 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5766
5767 * stap-probe.c (stap_is_operator): Change declaration.
5768 (stap_get_opcode): Change return value.
5769 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5770 `stap_parse_argument_1'.
5771
5772 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5773
5774 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5775 debug log.
5776
5777 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5778
5779 Add two new methods global_block and static_block to gdb.Symtab
5780 objects.
5781 * NEWS (Python scripting): Add entry about the new methods.
5782 * python/py-symtab.c (stpy_global_block): New function which
5783 implements the gdb.Symtab.global_block() method.
5784 (stpy_static_block): New function which implements the
5785 gdb.Symtab.static_block() method.
5786 (symtab_object_methods): Add entries for the two new methods.
5787
5788 2012-05-03 Doug Evans <dje@google.com>
5789
5790 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5791 files.
5792
5793 2012-05-03 Yao Qi <yao@codesourcery.com>
5794
5795 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5796 space.
5797 (i386_process_record): Ditto.
5798
5799 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5800
5801 * infcall.c (unwind_on_signal_p): Make static.
5802
5803 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5804
5805 * sol-thread.c (solaris_pid_to_str): Make static.
5806 (_initialize_sol_thread): Add prototype.
5807
5808 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5809
5810 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5811
5812 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5813
5814 * MAINTAINERS: Remove myself.
5815
5816 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5817
5818 Fix --without-auto-load-safe-path for MS-Windows host platform.
5819 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5820
5821 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5822
5823 * gdb_curses.h: Undefine KEY_EVENT before including curses
5824 headers. Move "#undef MOUSE_MOVED" before any curses header
5825 inclusion.
5826
5827 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5828
5829 * features/i386/i386-mmx-linux.c: Regenerate.
5830 * features/rs6000/powerpc-32.c: Likewise.
5831 * features/rs6000/powerpc-32l.c: Likewise.
5832 * features/rs6000/powerpc-403.c: Likewise.
5833 * features/rs6000/powerpc-403gc.c: Likewise.
5834 * features/rs6000/powerpc-405.c: Likewise.
5835 * features/rs6000/powerpc-505.c: Likewise.
5836 * features/rs6000/powerpc-601.c: Likewise.
5837 * features/rs6000/powerpc-602.c: Likewise.
5838 * features/rs6000/powerpc-603.c: Likewise.
5839 * features/rs6000/powerpc-604.c: Likewise.
5840 * features/rs6000/powerpc-64.c: Likewise.
5841 * features/rs6000/powerpc-64l.c: Likewise.
5842 * features/rs6000/powerpc-750.c: Likewise.
5843 * features/rs6000/powerpc-860.c: Likewise.
5844 * features/rs6000/powerpc-e500.c: Likewise.
5845 * features/rs6000/powerpc-e500l.c: Likewise.
5846 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5847 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5848 * features/rs6000/rs6000.c: Likewise.
5849
5850 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5851
5852 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5853 variable.
5854 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5855 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5856 (stap_parse_argument) <e>: Likewise.
5857 (handle_stap_probe) <byte_order>: Likewise.
5858
5859 2012-04-30 Doug Evans <dje@google.com>
5860
5861 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5862 init_and_read_dies_worker. All callers updated.
5863 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5864 replaced with init_cutu_and_read_dies.
5865 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5866 (find_partial_die): Remove FIXME. Don't free current CU.
5867
5868 2012-04-30 Sterling Augustine <saugustine@google.com>
5869
5870 * contrib: New directory.
5871 * contrib/test_pubnames_and_indexes.py: New file.
5872
5873 2012-04-30 Doug Evans <dje@google.com>
5874
5875 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5876 All callers updated.
5877 (init_cu_die_reader): Verify the section is non-empty.
5878 (dwarf_decode_line_header): Don't dereference section->asection
5879 until we know the section is present.
5880
5881 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5882
5883 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5884 probes.
5885
5886 2012-04-29 Yao Qi <yao@codesourcery.com>
5887
5888 * gdb-code-style.el: New hook gdb-markup-hook
5889 and gdb-comment-hook.
5890
5891 2012-04-28 Doug Evans <dje@google.com>
5892
5893 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5894 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5895 objfile->obfd.
5896 * symfile.h (dwarf2_debug_sections): New member addr.
5897 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5898 (ctx_no_get_addr_index): New function.
5899 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5900 (ctx_no_get_addr_index): Declare.
5901 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5902 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5903 (dwarf_expr_ctx_funcs): Update.
5904 (needs_get_addr_index): New function.
5905 (needs_frame_ctx_funcs): Update.
5906 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5907 * dwarf2read.c: #include "gdbcore.h".
5908 (dwarf2_per_objfile): New members addr, dwo_files.
5909 (dwarf2_elf_names): Add entry for addr.
5910 (struct dwo_section_names): New type.
5911 (dwo_section_names): New static global.
5912 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5913 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5914 old debug_types_section member updated to use this.
5915 Rename member debug_types_section to info_or_types_section,
5916 all uses updated.
5917 (signatured_type): Rename member type_offset to type_offset_in_tu,
5918 all uses updated. New member type_offset_in_section.
5919 (struct dwo_sections): New type.
5920 (struct dwo_unit): New type.
5921 (struct dwo_file): New type.
5922 (die_reader_specs): New member dwo_file.
5923 (dwarf2_locate_sections): Watch for .debug_addr.
5924 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5925 (dwarf2_read_section): Get bfd of section from bfd's asection,
5926 instead of objfile.
5927 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5928 (create_signatured_type_table_from_index): Initialize
5929 sig_type->info_or_types_section.
5930 (dw2_get_file_names): Statement lists for type units with DWO files
5931 live in the DWO file.
5932 (create_debug_types_hash_table): New function.
5933 (create_all_type_units): Rewrite.
5934 (init_cu_die_reader): New arg dwo_file, all callers updated.
5935 (init_and_read_dies_worker): Get section from
5936 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5937 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5938 continue reading the CU/TU from there.
5939 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5940 updated. Get section from this_cu->info_or_types_section.
5941 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5942 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5943 DW_FORM_GNU_str_index.
5944 (hash_dwo_file, eq_dwo_file): New functions.
5945 (allocate_dwo_file_hash_table): New function.
5946 (hash_dwo_unit, eq_dwo_unit): New functions.
5947 (allocate_dwo_unit_table): New function.
5948 (dwarf2_locate_dwo_sections): New function.
5949 (struct create_dwo_info_table_data): New type.
5950 (create_debug_info_hash_table_reader): New function.
5951 (create_debug_info_hash_table): New function.
5952 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5953 (lookup_dwo_file): New function.
5954 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5955 (free_dwo_file, free_dwo_file_cleanup): New functions.
5956 (free_dwo_file_from_slot, free_dwo_files): New functions.
5957 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5958 (dwarf2_record_block_ranges): Ditto.
5959 (read_partial_die): Ditto.
5960 (process_enumeration_scope): Update to use type_offset_in_section.
5961 (read_full_die_1): New function.
5962 (read_full_die): Rewrite.
5963 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5964 DW_FORM_GNU_str_index.
5965 (read_addr_index_1, read_addr_index): New functions.
5966 (read_addr_index_from_leb128): New function.
5967 (struct dwarf2_read_addr_index_data): New type.
5968 (dwarf2_read_addr_index_reader): New function.
5969 (dwarf2_read_addr_index): New function.
5970 (read_str_index): New function.
5971 (leb128_size): New function.
5972 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5973 If processing a type unit from a DWO file, get the line section
5974 from the DWO file.
5975 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5976 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5977 DW_FORM_GNU_str_index.
5978 (lookup_die_type): Check whether section offset of type's die is
5979 known before looking it up. Remove assert. Condition can
5980 legimately happen for inter-cu type references.
5981 (dwarf_attr_name): Handle Fission attributes.
5982 (dwarf_form_name): Handle Fission forms.
5983 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5984 DW_FORM_GNU_str_index.
5985 (follow_die_sig): Update to use type_offset_in_section.
5986 (decode_locdesc): New case DW_OP_GNU_addr_index.
5987 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5988 DW_FORM_GNU_str_index.
5989 (cu_debug_loc_section): New function.
5990 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5991 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5992 Free DWO files if present.
5993 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5994
5995 Refactor DIE reading.
5996 * dwarf2read.c (dwarf2_per_objfile): Replace members
5997 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5998 (die_reader_specs): New member "die_section". Temporarily make
5999 member "buffer" non-const, pending constifying all info_ptr uses.
6000 (die_reader_func_ftype): New typedef.
6001 (dw2_get_file_names_reader): New function.
6002 (dw2_get_file_names): Rewrite.
6003 (read_and_check_type_unit_head): Rename arg type_offset to
6004 type_offset_in_tu.
6005 (create_all_type_units): Improve debugging message.
6006 Improve dummy type unit check.
6007 (init_cu_die_reader): New arg "section". All callers updated.
6008 (init_and_read_dies_worker): New function.
6009 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6010 (init_cutu_and_read_dies_no_follow): New function.
6011 (init_cutu_and_read_dies_simple): New function.
6012 (process_psymtab_comp_unit_reader): New function.
6013 (process_psymtab_comp_unit): Delete args section,
6014 is_debug_types_section. Rewrite. All callers updated.
6015 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6016 All callers updated. Rewrite.
6017 (load_partial_comp_unit_reader): New function.
6018 (load_partial_comp_unit): Rewrite.
6019 (skip_children): New arg reader. Delete args buffer, cu.
6020 All callers updated.
6021 (skip_one_die): New arg reader. Delete args buffer, cu.
6022 All callers updated.
6023 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6024 All callers updated.
6025 (load_full_comp_unit_reader): New function.
6026 (load_full_comp_unit): Rewrite.
6027 (read_comp_unit): Delete.
6028 (read_die_and_children_1): Delete, contents moved ...
6029 (read_die_and_children): ... here.
6030 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6031 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6032 All callers updated.
6033 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6034 All callers updated.
6035 (find_partial_die): Rewrite load_all_dies support.
6036 (read_attribute_value): New arg reader. Delete args abfd, cu.
6037 All callers updated.
6038 (read_attribute): New arg reader. Delete args abfd, cu.
6039 All callers updated.
6040 (load_full_type_unit): Add assert.
6041 (read_signatured_type_reader): New function.
6042 (read_signatured_type): Rewrite.
6043 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6044 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6045 All callers updated. Set per_cu->cu = NULL after freeing it.
6046 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6047 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6048 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6049 (set_die_type): Update.
6050 (get_die_type_at_offset): Update.
6051 (read_file_scope): Call prepare_one_comp_unit.
6052 (read_type_unit_scope): Ditto.
6053 (prepare_one_comp_unit): Set producer if present.
6054
6055 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6056
6057 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6058 gettext function on `error'.
6059
6060 2012-04-27 Doug Evans <dje@google.com>
6061
6062 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6063 is empty.
6064
6065 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6066 Tom Tromey <tromey@redhat.com>
6067
6068 * breakpoint.c (struct breakpoint_objfile_data)
6069 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6070 <exception_probes>: New fields.
6071 (free_breakpoint_probes): New function.
6072 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6073 `_Unwind_DebugHook'.
6074 (create_exception_master_breakpoint): Likewise.
6075 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6076 * infrun.c: Including necessary header files for handling SystemTap
6077 probes.
6078 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6079 via SystemTap probes.
6080 (check_exception_resume): Remove `func' argument. Handle exception
6081 unwinding breakpoint set via a SystemTap probe.
6082 (insert_exception_resume_from_probe): New function.
6083
6084 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6085 Tom Tromey <tromey@redhat.com>
6086 Jan Kratochvil <jan.kratochvil@redhat.com>
6087
6088 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6089 (COMMON_OBS): Likewise.
6090 (HFILES_NO_SRCDIR): Add `probe'.
6091 * NEWS: Mention support for static and SystemTap probes.
6092 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6093 SystemTap probes' arguments parser.
6094 * arm-linux-tdep.c: Including headers needed to perform the parsing
6095 of SystemTap probes' arguments.
6096 (arm_stap_is_single_operand): New function.
6097 (arm_stap_parse_special_token): Likewise.
6098 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6099 probes' arguments parser.
6100 * ax-gdb.c (require_rvalue): Removing static declaration.
6101 (gen_expr): Likewise.
6102 * ax-gdb.h (gen_expr): Declaring function.
6103 (require_rvalue): Likewise.
6104 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6105 (bkpt_probe_breakpoint_ops): New variable.
6106 (momentary_breakpoint_from_master): Set the `probe' value.
6107 (add_location_to_breakpoint): Likewise.
6108 (break_command_1): Using proper breakpoint_ops according to the
6109 argument passed by the user in the command line.
6110 (bkpt_probe_insert_location): New function.
6111 (bkpt_probe_remove_location): Likewise.
6112 (bkpt_probe_create_sals_from_address): Likewise.
6113 (bkpt_probe_decode_linespec): Likewise.
6114 (tracepoint_probe_create_sals_from_address): Likewise.
6115 (tracepoint_probe_decode_linespec): Likewise.
6116 (tracepoint_probe_breakpoint_ops): New variable.
6117 (trace_command): Using proper breakpoint_ops according to the
6118 argument passed by the user in the command line.
6119 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6120 static probes on breakpoints and tracepoints.
6121 * breakpoint.h (struct bp_location) <probe>: New field.
6122 * cli-utils.c (skip_spaces_const): New function.
6123 (extract_arg): Likewise.
6124 * cli-utils.h (skip_spaces_const): Likewise.
6125 (extract_arg): Likewise.
6126 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6127 * configure.ac: Append `stap-probe.o' to be generated when ELF
6128 support is present.
6129 * configure: Regenerate.
6130 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6131 * elfread.c: Include `probe.h' and `arch-utils.h'.
6132 (probe_key): New variable.
6133 (elf_get_probes): New function.
6134 (elf_get_probe_argument_count): Likewise.
6135 (elf_evaluate_probe_argument): Likewise.
6136 (elf_compile_to_ax): Likewise.
6137 (elf_symfile_relocate_probe): Likewise.
6138 (stap_probe_key_free): Likewise.
6139 (elf_probe_fns): New variable.
6140 (elf_sym_fns): Add `sym_probe_fns' value.
6141 (elf_sym_fns_lazy_psyms): Likewise.
6142 (elf_sym_fns_gdb_index): Likewise.
6143 (_initialize_elfread): Initialize objfile cache for static
6144 probes.
6145 * gdb_vecs.h (struct probe): New forward declaration.
6146 (probe_p): New VEC declaration.
6147 * gdbarch.c: Regenerate.
6148 * gdbarch.h: Regenerate.
6149 * gdbarch.sh (stap_integer_prefix): New variable.
6150 (stap_integer_suffix): Likewise.
6151 (stap_register_prefix): Likewise.
6152 (stap_register_suffix): Likewise.
6153 (stap_register_indirection_prefix): Likewise.
6154 (stap_register_indirection_suffix): Likewise.
6155 (stap_gdb_register_prefix): Likewise.
6156 (stap_gdb_register_suffix): Likewise.
6157 (stap_is_single_operand): New function.
6158 (stap_parse_special_token): Likewise.
6159 (struct stap_parse_info): Forward declaration.
6160 * i386-tdep.c: Including headers needed to perform the parsing
6161 of SystemTap probes' arguments.
6162 (i386_stap_is_single_operand): New function.
6163 (i386_stap_parse_special_token): Likewise.
6164 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6165 probes' arguments parser.
6166 * i386-tdep.h (i386_stap_is_single_operand): New function.
6167 (i386_stap_parse_special_token): Likewise.
6168 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6169 * mipsread.c (ecoff_sym_fns): Likewise.
6170 * objfiles.c (objfile_relocate1): Support relocation for static
6171 probes.
6172 * parse.c (prefixify_expression): Remove static declaration.
6173 (initialize_expout): Likewise.
6174 (reallocate_expout): Likewise.
6175 * parser-defs.h (initialize_expout): Declare function.
6176 (reallocate_expout): Likewise.
6177 (prefixify_expression): Likewise.
6178 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6179 of SystemTap probes' arguments.
6180 (ppc_stap_is_single_operand): New function.
6181 (ppc_stap_parse_special_token): Likewise.
6182 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6183 probes' arguments parser.
6184 * probe.c: New file, for generic statically defined probe support.
6185 * probe.h: Likewise.
6186 * s390-tdep.c: Including headers needed to perform the parsing of
6187 SystemTap probes' arguments.
6188 (s390_stap_is_single_operand): New function.
6189 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6190 probes' arguments parser.
6191 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6192 * stap-probe.c: New file, for SystemTap probe support.
6193 * stap-probe.h: Likewise.
6194 * symfile.h: Include `gdb_vecs.h'.
6195 (struct sym_probe_fns): New struct.
6196 (struct sym_fns) <sym_probe_fns>: New field.
6197 * symtab.c (init_sal): Initialize `probe' field.
6198 * symtab.h (struct probe): Forward declaration.
6199 (struct symtab_and_line) <probe>: New field.
6200 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6201 locations.
6202 (stop_tracing): Likewise.
6203 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6204
6205 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6206 Tom Tromey <tromey@redhat.com>
6207
6208 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6209 and to compile agent expressions.
6210 * infrun.c (siginfo_make_value): New argument `ignore'.
6211 (siginfo_funcs): New struct.
6212 (_initialize_infrun): New argument when calling
6213 `create_internalvar_type_lazy'.
6214 * thread.c (thread_id_make_value): New argument `ignore'.
6215 (thread_funcs): New struct.
6216 (_initialize_thread): New argument when calling
6217 `create_internalvar_type_lazy'.
6218 * tracepoint.c (sdata_make_value): New argument `ignore'.
6219 (sdata_funcs): New struct.
6220 (_initialize_tracepoint): New argument when calling
6221 `create_internalvar_type_lazy'.
6222 * value.c (make_value): New struct.
6223 (create_internalvar_type_lazy): New argument `data'.
6224 (compile_internalvar_to_ax): New function.
6225 (value_of_internalvar): Properly handling `make_value' case.
6226 (clear_internalvar): Likewise.
6227 (show_convenience): Adding `TRY_CATCH' block.
6228 * value.h (internalvar_make_value): Delete, replace by...
6229 (struct internalvar_funcs): ... this.
6230 (create_internalvar_type_lazy) <fun>: Delete argument.
6231 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6232 (compile_internalvar_to_ax): New function.
6233 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6234 (tlb_funcs): New struct.
6235 (_initialize_windows_tdep): New argument when calling
6236 `create_internalvar_type_lazy'.
6237
6238 2012-04-27 Mark Wielaard <mjw@redhat.com>
6239
6240 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6241 see whether it is an address or a constant offset from DW_AT_low_pc.
6242 (dwarf2_record_block_ranges): Likewise.
6243 (read_partial_die): Likewise.
6244
6245 2012-04-26 Mark Wielaard <mjw@redhat.com>
6246
6247 * MAINTAINERS (Write After Approval): Add myself to the list.
6248
6249 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6250
6251 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6252 (proc_prettyprint_signal): Likewise.
6253 (proc_prettyprint_faultset): Likewise.
6254 (proc_prettyprint_fault): Likewise.
6255 (proc_prettyprint_actionset): Likewise.
6256 (proc_prettyprint_flags): Move to new proc-flags.c section.
6257 (proc_prettyfprint_flags): New prototype.
6258 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6259 (proc_syscall, proc_cursig): Likewise.
6260 (proc_set_kill_on_last_close): Likewise.
6261 (proc_unset_kill_on_last_close): Likewise.
6262 (proc_set_watchpoint): Make static.
6263 (proc_delete_dead_threads): Likewise.
6264 (procfs_set_watchpoint): Likewise.
6265 (_initialize_procfs): Add prototype.
6266 * proc-events.c: Include proc-utils.h.
6267 (init_syscall_table): Make static.
6268 * proc-api.c (_initialize_proc_api): Add prototype.
6269 * proc-flags.c: Include proc-utils.h.
6270
6271 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6272
6273 * configure.ac: Add AC_ARG_PROGRAM.
6274 * configure: Regenerate.
6275
6276 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6277
6278 Fix DW_AT_lower_bound defaults for DWARF-4+.
6279 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6280 high. New variable low_default_is_valid. Implement DWARF-4+
6281 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6282 no default by the DWARF standard.
6283
6284 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6285 Maciej W. Rozycki <macro@codesourcery.com>
6286
6287 * infrun.c (handle_inferior_event): Move the check for return
6288 trampolines ahead of the check for function trampolines.
6289 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6290 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6291 (mips_str_mips16_ret_stub): Likewise.
6292 (mips_str_call_fp_stub): Likewise.
6293 (mips_str_call_stub): Likewise.
6294 (mips_str_fn_stub): Likewise.
6295 (mips_str_pic): Likewise.
6296 (mips_in_frame_stub): New function.
6297 (mips_unwind_pc): Return the return address rather than the PC
6298 if the PC of an intermediate frame is inside a call thunk.
6299 (mips_is_stub_suffix): New function.
6300 (mips_is_stub_mode): Likewise.
6301 (mips_get_mips16_fn_stub_pc): Likewise.
6302 (mips_skip_mips16_trampoline_code): Update to handle all the
6303 currently generated stub types. Don't recurse into __fn_stub
6304 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6305 Use cooked register accesses.
6306 (mips_in_return_stub): Reintroduce function.
6307 (mips_skip_trampoline_code): Traverse trampolines recursively.
6308 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6309
6310 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6311
6312 GDB 7.4.1 released.
6313
6314 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6315
6316 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6317 * features/arm-with-m-vfp-d16.xml: New file. Describes
6318 Cortex-M with VFPv4-sp-d16 FPU register layout.
6319 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6320 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6321 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6322 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6323 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6324
6325 2012-04-25 Doug Evans <dje@google.com>
6326
6327 * cli/cli-decode.c (print_doc_line): Use stream instead of
6328 current_uiout.
6329
6330 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6331
6332 * features/arm-with-iwmmxt.c: Regenerate.
6333 * features/arm-with-m-fpa-layout.c: Likewise.
6334 * features/arm-with-m.c: Likewise.
6335 * features/arm-with-neon.c: Likewise.
6336 * features/arm-with-vfpv2.c: Likewise.
6337 * features/arm-with-vfpv3.c: Likewise.
6338 * features/mips-dsp-linux.c: Likewise.
6339 * features/mips-linux.c: Likewise.
6340 * features/mips64-dsp-linux.c: Likewise.
6341 * features/mips64-linux.c: Likewise.
6342 * features/s390-linux32.c: Likewise.
6343 * features/s390-linux32v1.c: Likewise.
6344 * features/s390-linux32v2.c: Likewise.
6345 * features/s390-linux64.c: Likewise.
6346 * features/s390-linux64v1.c: Likewise.
6347 * features/s390-linux64v2.c: Likewise.
6348 * features/s390x-linux64.c: Likewise.
6349 * features/s390x-linux64v1.c: Likewise.
6350 * features/s390x-linux64v2.c: Likewise.
6351 * features/tic6x-c62x-linux.c: Likewise.
6352 * features/tic6x-c62x.c: Likewise.
6353 * features/tic6x-c64x-linux.c: Likewise.
6354 * features/tic6x-c64x.c: Likewise.
6355 * features/tic6x-c64xp-linux.c: Likewise.
6356 * features/tic6x-c64xp.c: Likewise.
6357 * target-descriptions.c: Only generate `field_type' and `type'
6358 variables when needed.
6359
6360 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6361
6362 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6363
6364 2012-04-25 Doug Evans <dje@google.com>
6365
6366 Initial pass at Go language support.
6367 * NEWS: Mention Go.
6368 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6369 go-valprint.c.
6370 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6371 (YYFILES): Add go-exp.c.
6372 (YYOBJ): Add go-exp.o.
6373 (local-maintainer-clean): Delete go-exp.c.
6374 * defs.h (enum language): Add language_go.
6375 * dwarf2read.c: #include "go-lang.h".
6376 (fixup_go_packaging): New function.
6377 (process_full_comp_unit): Call it when processing Go CUs.
6378 (dwarf2_physname): Add Go support.
6379 (read_file_scope): Handle missing language spec for GNU Go.
6380 (set_cu_language): Handle DW_LANG_Go.
6381 * go-exp.y: New file.
6382 * go-lang.h: New file.
6383 * go-lang.c: New file.
6384 * go-typeprint.c: New file.
6385 * go-valprint.c: New file.
6386 * symtab.c: #include "go-lang.h".
6387 (symbol_set_language): Handle language_go.
6388 (symbol_find_demangled_name, symbol_set_names): Ditto.
6389 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6390
6391 2012-04-24 Jim Meyering <meyering@redhat.com>
6392
6393 avoid a few strncpy-induced buffer overruns
6394 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6395 fname and psargs before trying to concatenate.
6396 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6397 "name" before applying strchr.
6398
6399 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6400
6401 * CONTRIBUTE: Use unified diff instead of context diff when
6402 generating patches.
6403
6404 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6405
6406 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6407 code. Handle JR.HB correctly.
6408
6409 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6410
6411 * mips-tdep.c
6412 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6413 with the other MIPS16 helpers.
6414
6415 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6416
6417 * observer.sh: Conditionally declare `args', thus cleaning up
6418 unused instances of this variable.
6419
6420 2012-04-24 Yao Qi <yao@codesourcery.com>
6421
6422 Revert this patch to allow breakpoint always-inserted
6423 in record target.
6424 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6425 * breakpoint.c: Include record.h.
6426 (breakpoints_always_inserted_mode): Return false when the record
6427 target is in use.
6428
6429 * breakpoint.c (iterate_over_bp_locations): New.
6430 * breakpoint.h: Declare.
6431 New typedef walk_bp_location_callback.
6432 * record.c (record_open): Call record_init_record_breakpoints.
6433 (record_sync_record_breakpoints): New.
6434 (record_init_record_breakpoints): New.
6435 * NEWS: Mention supporting breakpoint always-inserted mode in
6436 record target.
6437
6438 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6439
6440 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6441 any thread.
6442
6443 2012-04-24 Yao Qi <yao@codesourcery.com>
6444
6445 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6446 (is_catchpoint): ... it.
6447 (print_one_breakpoint_location): Caller update.
6448 * breakpoint.h: Update declaration.
6449
6450 2012-04-23 David S. Miller <davem@davemloft.net>
6451
6452 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6453
6454 2012-04-23 Tom Tromey <tromey@redhat.com>
6455
6456 * buildsym.c (add_free_pendings): Remove.
6457 * buildsym.h (add_free_pendings): Remove.
6458
6459 2012-04-23 Doug Evans <dje@google.com>
6460
6461 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6462 attr.u.unsnd instead of attr.u.addr.
6463 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6464 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6465 DW_FORM_ref_udata.
6466 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6467 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6468 DW_FORM_ref_udata.
6469 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6470
6471 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6472
6473 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6474 (mips_o32_return_value): Likewise.
6475 (mips_o64_return_value): Likewise.
6476
6477 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6478
6479 * ada-lang.c (ada_evaluate_subexp): Add cases for
6480 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6481 their treatment in eval.c.
6482
6483 2012-04-21 David S. Miller <davem@davemloft.net>
6484
6485 * sparc-tdep.c (X_DISP10): Define.
6486 (sparc_analyze_control_transfer): Handle compare-and-branch.
6487
6488 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6489
6490 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6491 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6492
6493 2012-04-20 Nigel Stephens <nigel@mips.com>
6494 Maciej W. Rozycki <macro@codesourcery.com>
6495
6496 * mips-tdep.c (mips_float_register_p): New function.
6497 (mips_convert_register_float_case_p): Use mips_float_register_p.
6498 (mips_register_type): Likewise.
6499 (mips_print_register): Likewise.
6500 (print_gp_register_row): Likewise.
6501 (mips_print_registers_info): Likewise.
6502
6503 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6504
6505 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6506 of mips16 symbols.
6507
6508 2012-04-20 Andrew Pinski <apinski@cavium.com>
6509
6510 * MAINTAINERS (Write After Approval): Add myself to the list.
6511
6512 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6513
6514 * MAINTAINERS: Update my e-mail address.
6515
6516 2012-04-20 Pedro Alves <palves@redhat.com>
6517
6518 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6519 $srcdir.
6520 * configure: Regenerate.
6521
6522 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6523
6524 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6525 declaration.
6526 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6527
6528 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6529
6530 Fix compilation compatibility with python-2.4
6531 * python/py-type.c (convert_field): Cast ADDRSTRING for
6532 PyObject_SetAttrString as non-const. New comment.
6533
6534 2012-04-19 Tom Tromey <tromey@redhat.com>
6535
6536 * top.c (quit_target): Use all_cleanups.
6537 * main.c (captured_command_loop): Use all_cleanups.
6538 * exceptions.c (throw_exception): Use all_cleanups.
6539
6540 2012-04-19 Pedro Alves <palves@redhat.com>
6541
6542 * Makefile.in (GNULIB_BUILDDIR): New.
6543 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6544 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6545 (CLEANDIRS). Remove gnulib/import.
6546 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6547 (all-lib): Ditto.
6548 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6549 (gnulib/import/Makefile): Replace gnulib/import with
6550 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6551 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6552 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6553 acx_configure_dir.m4.
6554 * acinclude.m4: Include acx_configure_dir.m4.
6555 * acx_configure_dir.m4: New file.
6556 * aclocal.m4: Regenerate.
6557 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6558 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6559 (GNULIB): New variable.
6560 (GNULIB_STDINT_H): Adjust.
6561 (AC_OUTPUT): Don't output gnulib/Makefile.
6562 * gdb/defs.h: Include build-gnulib/config.h.
6563 * aclocal.m4: Regenerate.
6564 * config.in: Regenerate.
6565 * configure: Regenerate.
6566
6567 * gnulib/Makefile.in: New file.
6568 * gnulib/configure.ac: New file.
6569 * gnulib/aclocal.m4: New file.
6570 * gnulib/config.in: New file.
6571 * gnulib/configure: New file.
6572 * gnulib/: Re-run gnulib-tool to adjust.
6573
6574 2012-04-19 Doug Evans <dje@google.com>
6575
6576 * cleanups.h (struct cleanup): Move to cleanups.c.
6577 (make_cleanup_dtor_ftype): New typedef.
6578 (make_cleanup_dtor): Use it.
6579 (ALL_CLEANUPS): Replace with ...
6580 (all_cleanups): ... this. Declare. All uses updated.
6581 * cleanups.c: #include "gdb_assert.h".
6582 (sentinel_cleanup): New static global.
6583 (SENTINEL_CLEANUP): Define.
6584 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6585 (make_my_cleanup2): Assert result is non-NULL.
6586 (all_cleanups): New function.
6587 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6588 of NULL.
6589
6590 2012-04-19 Pedro Alves <palves@redhat.com>
6591
6592 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6593 Adjust paths to gnulib imported files.
6594
6595 2012-04-19 Pedro Alves <palves@redhat.com>
6596
6597 * gnulib/: Move whole directory ...
6598 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6599 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6600 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6601 (aclocal_m4_deps): Adjust.
6602 * aclocal.m4: Regenerate.
6603 * configure: Regenerate.
6604 * configure.ac: Adjust AC_OUTPUT output.
6605
6606 2012-04-19 Yao Qi <yao@codesourcery.com>
6607
6608 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6609 (vec.o): New rule.
6610 * vec.c: Move it ...
6611 * common/vec.c: ... here.
6612 * vec.h: Move it ...
6613 * common/vec.h: ... here.
6614
6615 2012-04-19 Yao Qi <yao@codesourcery.com>
6616
6617 * gdb-code-style.el: New.
6618
6619 2012-04-18 Pedro Alves <palves@redhat.com>
6620
6621 Update gnulib from latest git.
6622 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6623
6624 * gnulib/Makefile.am: Update.
6625 * gnulib/dummy.c: Update.
6626 * gnulib/extra/arg-nonnull.h: Update.
6627 * gnulib/extra/c++defs.h: Update.
6628 * gnulib/extra/update-copyright: Update.
6629 * gnulib/extra/warn-on-use.h: Update.
6630 * gnulib/inttypes.in.h: Update.
6631 * gnulib/m4/00gnulib.m4: Update.
6632 * gnulib/m4/extensions.m4: Update.
6633 * gnulib/m4/gnulib-cache.m4: Update.
6634 * gnulib/m4/gnulib-common.m4: Update.
6635 * gnulib/m4/gnulib-comp.m4: Update.
6636 * gnulib/m4/gnulib-tool.m4: Update.
6637 * gnulib/m4/include_next.m4: Update.
6638 * gnulib/m4/inttypes-pri.m4: Update.
6639 * gnulib/m4/inttypes.m4: Update.
6640 * gnulib/m4/longlong.m4: Update.
6641 * gnulib/m4/memchr.m4: Update.
6642 * gnulib/m4/memmem.m4: Update.
6643 * gnulib/m4/mmap-anon.m4: Update.
6644 * gnulib/m4/multiarch.m4: Update.
6645 * gnulib/m4/onceonly.m4: Update.
6646 * gnulib/m4/stddef_h.m4: Update.
6647 * gnulib/m4/stdint.m4: Update.
6648 * gnulib/m4/string_h.m4: Update.
6649 * gnulib/m4/warn-on-use.m4: Update.
6650 * gnulib/m4/wchar_h.m4: Update.
6651 * gnulib/m4/wchar_t.m4: Update.
6652 * gnulib/m4/wint_t.m4: Update.
6653 * gnulib/memchr.c: Update.
6654 * gnulib/memmem.c: Update.
6655 * gnulib/stddef.in.h: Update.
6656 * gnulib/stdint.in.h: Update.
6657 * gnulib/str-two-way.h: Update.
6658 * gnulib/string.in.h: Update.
6659 * gnulib/wchar.in.h: Update.
6660
6661 * gnulib/extra/arg-nonnull.h: Delete.
6662 * gnulib/extra/c++defs.h: Delete.
6663 * gnulib/extra/warn-on-use.h: Delete.
6664 * gnulib/m4/wchar_h.m4: Delete.
6665 * gnulib/m4/wint_t.m4: Delete.
6666 * gnulib/wchar.in.h: Delete.
6667
6668 * gnulib/extra/snippets/arg-nonnull.h: New.
6669 * gnulib/extra/snippets/c++defs.h: New.
6670 * gnulib/extra/snippets/warn-on-use.h: New.
6671
6672 * aclocal.m4: Regenerate.
6673 * config.in: Regenerate.
6674 * configure: Regenerate.
6675 * gnulib/Makefile.in: Regenerate.
6676
6677 2012-04-18 Pedro Alves <palves@redhat.com>
6678
6679 Reimport the update-copyright module from gnulib
6680 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6681
6682 * configure: Regenerate.
6683 * gnulib/Makefile.am: Update.
6684 * gnulib/Makefile.in: Regenerate.
6685 * gnulib/extra/update-copyright: Update.
6686 * gnulib/m4/gnulib-cache.m4: Update.
6687 * gnulib/m4/gnulib-comp.m4: Update.
6688
6689 2012-04-18 Tristan Gingold <gingold@adacore.com>
6690
6691 * configure.ac (aix): Put -lpthread into libs.
6692 * configure: Regenerate.
6693
6694 2012-04-18 Tom Tromey <tromey@redhat.com>
6695
6696 * linespec.c (convert_linespec_to_sals): Don't use
6697 SYMBOL_OBJ_SECTION.
6698 (compare_msymbols): Arguments are minsym_and_objfile, not
6699 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6700
6701 2012-04-18 Pedro Alves <palves@redhat.com>
6702
6703 Revert gnulib/ part of:
6704 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6705 Copyright year update in most files (performed by copyright.sh).
6706
6707 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6708
6709 Fix 64-bit constants on 32-bit hosts.
6710 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6711 from unsigned long to ULONGEST.
6712 (read_signed_leb128): Change declaration return type from long to
6713 LONGEST.
6714 (dwarf2_const_value_attr): Change declaration parameter value from long
6715 to LONGEST.
6716 (dwarf2_compute_name): Change variable value from long to LONGEST.
6717 (read_unsigned_leb128): Change return type, variable result and some
6718 casts from unsigned long to ULONGEST.
6719 (read_signed_leb128): Change return type, variable result and some
6720 casts from long to LONGEST.
6721 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6722 value from long to LONGEST.
6723 (dwarf2_const_value): Change variable value from long to LONGEST.
6724 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6725 plongest and hex_string.
6726 * symtab.h (struct general_symbol_info): Change ivalue from long to
6727 LONGEST, remove the comment.
6728 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6729 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6730
6731 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6732
6733 PR symtab/7259:
6734 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6735 * ada-lang.c (ada_discrete_type_high_bound)
6736 (ada_discrete_type_low_bound): Fix function comment. Use
6737 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6738 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6739 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6740 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6741 Use TYPE_FIELD_ENUMVAL.
6742 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6743 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6744 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6745 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6746 TYPE_CODE_ENUM.
6747 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6748 * dwarf2read.c (process_enumeration_scope): Likewise.
6749 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6750 field.bitpos.
6751 (class StructMainTypePrettyPrinter): Support also
6752 FIELD_LOC_KIND_ENUMVAL.
6753 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6754 TYPE_CODE_ENUM.
6755 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6756 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6757 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6758 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6759 field enumval.
6760 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6761 accommodate enumval.
6762 (struct call_site): Adjust loc_kind to accommodate enumval.
6763 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6764 (TYPE_FIELD_ENUMVAL): New macros.
6765 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6766 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6767 TYPE_CODE_ENUM.
6768 * p-typeprint.c (pascal_type_print_base): Likewise.
6769 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6770 enumval.
6771 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6772 * python/py-type.c (convert_field): New variable addrstring. Use
6773 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6774 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6775 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6776 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6777 TYPE_CODE_ENUM.
6778 * valprint.c (generic_val_print): Likewise.
6779
6780 2012-04-17 Doug Evans <dje@google.com>
6781
6782 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6783
6784 * dwarf2read.c: Whitespace fixes.
6785 (lookup_signatured_type): Tweak comment.
6786 (get_die_type_at_offset): Fix comment.
6787
6788 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6789
6790 * xcoffread.c (xcoff_secnum_to_sections): New function.
6791 (secnum_to_section, secnum_to_bfd_section): Reimplement
6792 using xcoff_secnum_to_sections. Rename "secnum" parameter
6793 into "n_scnum".
6794 (RECORD_MINIMAL_SYMBOL): Delete.
6795 (record_minimal_symbol): New function.
6796 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6797 by call to record_minimal_symbol and set misc_func_recorded
6798 to 1. Set last_csect_sec to the XCOFF section index instead
6799 of GDB's section_offset index. Update calls to
6800 prim_record_minimal_symbol_and_info to pass the BFD section
6801 as well.
6802
6803 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6804
6805 * xcoffread.c (read_xcoff_symtab): Delete variables
6806 last_csect_val and last_csect_sec and associated code.
6807
6808 2012-04-17 Doug Evans <dje@google.com>
6809
6810 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6811 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6812 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6813 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6814
6815 * cleanups.h: New file.
6816 * cleanups.c: New file.
6817 * Makefile.in (SFILES): Add cleanups.c.
6818 (HFILES_NO_SRCDIR): Add cleanups.h.
6819 (COMMON_OBS): Add cleanups.o.
6820 * defs.h (struct cleanup): Moved to cleanups.h.
6821 (do_cleanups,do_final_cleanups): Ditto.
6822 (discard_cleanups,discard_final_cleanups): Ditto
6823 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6824 (save_cleanups,save_final_cleanups): Ditto.
6825 (restore_cleanups,restore_final_cleanups): Ditto.
6826 (null_cleanup): Ditto.
6827 (make_my_cleanup,make_my_cleanup2): Ditto.
6828 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6829 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6830 (do_cleanups,do_final_cleanups): Ditto.
6831 (discard_cleanups,discard_final_cleanups): Ditto
6832 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6833 (save_cleanups,save_final_cleanups): Ditto.
6834 (restore_cleanups,restore_final_cleanups): Ditto.
6835 (null_cleanup): Ditto.
6836 (make_my_cleanup,make_my_cleanup2): Ditto.
6837 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6838
6839 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6840 make_my_cleanup.
6841 (make_cleanup_dyn_string_delete): Ditto.
6842 (make_cleanup_ui_file_delete): Ditto.
6843 (make_cleanup_ui_out_redirect_pop): Ditto.
6844 (make_cleanup_free_section_addr_info): Ditto.
6845 (make_cleanup_restore_integer): Ditto.
6846 (make_cleanup_unpush_target): Ditto.
6847 (make_cleanup_value_free_to_mark): Ditto.
6848 (make_cleanup_value_free): Ditto.
6849 (make_cleanup_free_so): Ditto.
6850
6851 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6852
6853 New option "set debug auto-load".
6854 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6855 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6856 (auto_load_safe_path_vec_update)
6857 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6858 if DEBUG_AUTO_LOAD.
6859 (file_is_auto_load_safe): New parameters debug_fmt and ....
6860 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6861 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6862 caller by explanatory string.
6863 (_initialize_auto_load): Register "set debug auto-load".
6864 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6865 and ....
6866 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6867 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6868 by explanatory string.
6869 * main.c (captured_main): Likewise.
6870 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6871 (source_section_scripts): Likewise.
6872
6873 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6874
6875 New option "set auto-load safe-path".
6876 * NEWS: New commands "set auto-load safe-path"
6877 and "show auto-load safe-path".
6878 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6879 (auto_load_safe_path, auto_load_safe_path_vec)
6880 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6881 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6882 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6883 (source_gdb_script_for_objfile): New variable is_safe. Call
6884 file_is_auto_load_safe. Return if it is not.
6885 (struct loaded_script): New field loaded.
6886 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6887 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6888 output "Missing" to "No".
6889 (_initialize_auto_load): New variable cmd. Initialize
6890 auto_load_safe_path. Register "set auto-load safe-path",
6891 "show auto-load safe-path" and "add-auto-load-safe-path".
6892 * auto-load.h (maybe_add_script): Add parameter loaded.
6893 (file_is_auto_load_safe): New declaration.
6894 * config.in: Regenerate.
6895 * configure: Regenerate.
6896 * configure.ac: New parameters --with-auto-load-safe-path
6897 and --without-auto-load-safe-path.
6898 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6899 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6900 * main.c (captured_main): Check file_is_auto_load_safe for
6901 LOCAL_GDBINIT.
6902 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6903 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6904 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6905 not.
6906
6907 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6908
6909 auto-load: Implementation.
6910 * NEWS: New descriptions for "info auto-load",
6911 "info auto-load gdb-scripts", "info auto-load python-scripts",
6912 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6913 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6914 and "show auto-load-scripts". New description for "set auto-load",
6915 "show auto-load", "set auto-load gdb-scripts",
6916 "show auto-load gdb-scripts", "set auto-load python-scripts",
6917 "show auto-load python-scripts", "set auto-load local-gdbinit",
6918 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6919 "show auto-load libthread-db".
6920 * auto-load.c: Remove include python/python-internal.h. Add includes
6921 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6922 cli/cli-setshow.h.
6923 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6924 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6925 (gdbpy_global_auto_load): Rename to ...
6926 (global_auto_load): ... here.
6927 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6928 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6929 (script_language_gdb, source_gdb_script_for_objfile): New.
6930 (struct loaded_script): New field language.
6931 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6932 LANGUAGE.
6933 (maybe_add_script): Add parameter language. Drop redundant
6934 entry.full_path initialization. Initialize entry.language and
6935 (*slot)->language.
6936 (auto_load_objfile_script): Change parameter suffix to language.
6937 Remove the call of maybe_add_script.
6938 Call language->source_script_for_objfile.
6939 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6940 New.
6941 (collect_matching_scripts): Adjust it for
6942 struct collect_matching_scripts_data.
6943 (auto_load_info_scripts_pattern_nl): New variable.
6944 (info_auto_load_scripts): Rename to ...
6945 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6946 for struct collect_matching_scripts_data.
6947 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6948 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6949 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6950 (auto_load_info_cmdlist_get): New.
6951 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6952 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6953 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6954 "info auto-load local-gdbinit".
6955 * auto-load.h (struct script_language): New.
6956 (gdbpy_global_auto_load): Rename to ...
6957 (global_auto_load): ... here.
6958 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6959 (auto_load_local_gdbinit_loaded): New declarations.
6960 (maybe_add_script): New parameter language.
6961 (auto_load_objfile_script): Change parameter suffix to language.
6962 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6963 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6964 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6965 declarations.
6966 * linux-thread-db.c: Include auto-load.h and ctype.h.
6967 (auto_load_thread_db, show_auto_load_thread_db): New.
6968 (struct thread_db_info): New field filename.
6969 (delete_thread_db_info): Call xfree for FILENAME.
6970 (try_thread_db_load): Initialize FILENAME.
6971 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6972 if !AUTO_LOAD_THREAD_DB.
6973 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6974 (_initialize_thread_db): Install auto_load_thread_db
6975 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6976 as "info auto-load libthread-db".
6977 * main.c (captured_main): Rename gdbpy_global_auto_load to
6978 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6979 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6980 (print_gdb_help): Extend the help for 'local init file'.
6981 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6982 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6983 (auto_load_scripts): Rename to ...
6984 (auto_load_python_scripts): ... here, update the comment.
6985 (gdbpy_load_auto_script_for_objfile): New declaration.
6986 (show_auto_load_python_scripts, script_language_python)
6987 (gdbpy_load_auto_script_for_objfile): New.
6988 (source_section_scripts): Refactor the code.
6989 (load_auto_scripts_for_objfile): Rename to ...
6990 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6991 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6992 (info_auto_load_python_scripts): New.
6993 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6994 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6995 Register "set auto-load-scripts" as its deprecated alias. Register
6996 "info auto-load python-scripts". Register "info auto-load-scripts" as
6997 its deprecated alias.
6998 (load_auto_scripts_for_objfile): Rename to ...
6999 (gdbpy_load_auto_scripts_for_objfile): ... here.
7000 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7001 (gdbpy_load_auto_scripts_for_objfile): ... here.
7002
7003 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7004
7005 auto-load: Move files.
7006 * Makefile.in (SFILES): Add auto-load.c.
7007 (HFILES_NO_SRCDIR): Add auto-load.h.
7008 (COMMON_OBS): Add auto-load.o.
7009 (distclean): Change .gdbinit for gdb-gdb.gdb.
7010 * auto-load.c: New file, with parts from python/py-auto-load.c.
7011 * auto-load.h: New file, with parts from python/python.h.
7012 * configure: Regenerate.
7013 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7014 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7015 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7016 * main.c: Include auto-load.h.
7017 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7018 command.h, observer.h and progspace.h to auto-load.c. Add include
7019 auto-load.h.
7020 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7021 (struct loaded_script, auto_load_pspace_data)
7022 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7023 (hash_loaded_script_entry, eq_loaded_script_entry)
7024 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7025 (maybe_add_script): Move to auto-load.c.
7026 (source_section_scripts): Change maybe_add_script parameters passing,
7027 use script_not_found_warning_print.
7028 (clear_section_scripts, auto_load_objfile_script)
7029 (auto_load_new_objfile, loaded_script_ptr)
7030 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7031 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7032 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7033 auto_load_new_objfile and info_auto_load_scripts initizations to
7034 auto-load.c.
7035 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7036
7037 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7038
7039 Code cleanup.
7040 * charset.c (find_charset_names): Remove variables ix and elt.
7041 Use free_char_ptr_vec.
7042 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7043 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7044 debugdir_end. New variable debugdir_len.
7045 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7046 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7047 declarations.
7048 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7049 and elt. Use free_char_ptr_vec.
7050 * source.c (add_path): Remove variables argv, arg and argv_index.
7051 New variables dir_vec, back_to, ix and name.
7052 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7053 make_cleanup_freeargv. Remove variable separator. Simplify the code
7054 no longer expecting DIRNAME_SEPARATOR.
7055 (openp): Remove variable p, p1 and len. New variables dir_vec,
7056 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7057 no longer expecting DIRNAME_SEPARATOR.
7058 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7059 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7060 debugdir_end.
7061 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7062 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7063 (dirnames_to_char_ptr_vec): New functions.
7064
7065 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7066
7067 Code cleanup.
7068 * source.c (add_path): Remove always true conditional 'p == 0' and
7069 unindent its code block.
7070
7071 2012-04-17 Pedro Alves <palves@redhat.com>
7072
7073 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7074 (FIELD_BITPOS_LVAL): ... this.
7075 (FIELD_BITPOS): New.
7076 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7077 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7078 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7079 SET_FIELD_BITPOS.
7080 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7081 SET_FIELD_BITPOS.
7082 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7083 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7084 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7085 SET_FIELD_BITPOS.
7086
7087 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7088
7089 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7090 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7091 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7092 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7093 * jv-lang.c (java_link_class_type): Likewise, once.
7094 * stabsread.c (read_enum_type): Likewise.
7095
7096 2012-04-16 Yao Qi <yao@codesourcery.com>
7097
7098 * common/agent.c (agent_run_command): Add one more parameter `len'.
7099 Update callers.
7100 * common/agent.h: Update declaration.
7101 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7102 Update.
7103 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7104
7105 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7106
7107 PR mi/13393
7108 * value.c (value_actual_type): New function.
7109 * value.h (value_actual_type): New declaration.
7110 * varobj.c (update_type_if_necessary): New function.
7111 (varobj_create): Call value_actual_type instead of
7112 value_type.
7113 (install_dynamic_child): distinct changed and type changed MI variable
7114 objects.
7115 (update_dynamic_varobj_children): Updated for install_dynamic_child
7116 change. All callers updated.
7117 (varobj_update): Support for MI variable object type change if
7118 the value changed and RTTI is used to determine the type.
7119 (create_child_with_value): Call value_actual_type instead of
7120 value_type.
7121 (adjust_value_for_child_access): Extended with a new parameter which
7122 specify whether the given value should be casted to enclosing type.
7123 All callers updated.
7124
7125 2012-04-14 Yao Qi <yao@codesourcery.com>
7126
7127 Import gnulib module inttypes from git
7128 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7129 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7130 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7131 gnulib/m4/inttypes-pri.m4
7132 * aclocal.m4, config.in, configure: Regenerated.
7133 * gnulib/Makefile.am: Update.
7134 * gnulib/Makefile.in: Update.
7135 * gnulib/m4/gnulib-cache.m4: Update.
7136 * gnulib/m4/gnulib-comp.m4: Update.
7137 * gnulib/inttypes.in.h: New.
7138 * gnulib/m4/inttypes-pri.m4: New.
7139 * gnulib/m4/inttypes.m4: New.
7140
7141 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7142
7143 * infrun.c (resume): Update PC address to the real PC after
7144 preparing to do displaced stepping.
7145
7146 2012-04-12 Doug Evans <dje@google.com>
7147
7148 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7149 All callers updated.
7150
7151 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7152
7153 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7154
7155 2012-04-12 Doug Evans <dje@google.com>
7156
7157 * dwarf2read.c (create_all_type_units): Renamed from
7158 create_debug_types_hash_table. All callers updated.
7159
7160 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7161 local type_sig to sig_type, type_offset to type_offset_in_tu.
7162 (hash_signatured_type): Renamed from hash_type_signature,
7163 all callers updated.
7164 (eq_signatured_type): Renamed from eq_type_signature,
7165 all callers updated.
7166 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7167 (process_enumeration_scope): Ditto.
7168 (lookup_signatured_type_at_offset): Ditto.
7169 (load_full_type_unit, read_signatured_type): Ditto.
7170
7171 2012-04-12 Yao Qi <yao@codesourcery.com>
7172
7173 * remote.c (async_remote_interrupt): Correct function name in
7174 debug message.
7175 (async_remote_interrupt_twice): Ditto.
7176
7177 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7178
7179 * source.c (find_and_open_source): Consistently pass resulting
7180 full path through xfullpath.
7181
7182 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7183
7184 Provide more specific displaced-stepping memory error message.
7185 * infrun.c (displaced_step_prepare): New variable status. Call
7186 target_read_memory instead of read_memory, provide more specific
7187 error message.
7188
7189 2012-04-11 Tristan Gingold <gingold@adacore.com>
7190
7191 PR gdb/13901
7192 * darwin-nat.c (darwin_execvp): Revert previous patch.
7193
7194 2012-04-11 Tristan Gingold <gingold@adacore.com>
7195
7196 PR gdb/13901
7197 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7198 in case of change.
7199
7200 2012-04-11 Tristan Gingold <gingold@adacore.com>
7201
7202 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7203 warning.
7204
7205 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7206
7207 New command 'explore' which helps explore values and types in
7208 scope.
7209 * NEWS: Add an entry about the new 'explore' command.
7210 * data-directory/Makefile.in: Add gdb/command/explore.py
7211 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7212 command using the GDB Python API.
7213
7214 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7215
7216 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7217 extension in jump target calculation.
7218
7219 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7220
7221 * mips-tdep.c (mips32_next_pc): Handle JALX.
7222
7223 2012-04-10 Yao Qi <yao@codesourcery.com>
7224
7225 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7226
7227 2012-04-10 Yao Qi <yao@codesourcery.com>
7228
7229 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7230 and gnulib/m4/gnulib-tool.m4.
7231
7232 2012-04-10 Doug Evans <dje@google.com>
7233
7234 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7235 (load_partial_dies): Clarify comment.
7236 (find_partial_die): Support rereading type units.
7237 Clarify CU handling, if we know offset is in CU, don't search for the
7238 containing CU. Add comment regarding memory waste.
7239
7240 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7241
7242 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7243 i386/x32-avx and i386/x32-avx-linux.
7244 (i386/x32-expedite): New.
7245 (i386/x32-linux-expedite): Likewise.
7246 (i386/x32-avx-expedite): Likewise.
7247 (i386/x32-avx-linux-expedite): Likewise.
7248 ($(outdir)/i386/x32.dat): Likewise.
7249 ($(outdir)/i386/x32-linux.dat): Likewise.
7250 ($(outdir)/i386/x32-avx.dat): Likewise.
7251 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7252
7253 * features/i386/x32-avx-linux.xml: New file.
7254 * features/i386/x32-avx.xml: Likewise.
7255 * features/i386/x32-core.xml: Likewise.
7256 * features/i386/x32-linux.xml: Likewise.
7257 * features/i386/x32.xml: Likewise.
7258
7259 * features/i386/x32-avx-linux.c: New. Generated.
7260 * features/i386/x32-avx.c: Likewise.
7261 * features/i386/x32-linux.c: Likewise.
7262 * features/i386/x32.c: Likewise.
7263 * regformats/i386/x32-avx-linux.dat: Likewise.
7264 * regformats/i386/x32-avx.dat: Likewise.
7265 * regformats/i386/x32-linux.dat: Likewise.
7266 * regformats/i386/x32.dat: Likewise.
7267
7268 2012-04-10 Tristan Gingold <gingold@adacore.com>
7269
7270 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7271 code to kill the inferior.
7272
7273 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7274
7275 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7276 defines.
7277 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7278 defines.
7279 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7280 (yyvsp): New defines.
7281 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7282 defines.
7283 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7284 defines.
7285 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7286 defines.
7287 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7288 defines.
7289 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7290 defines.
7291
7292 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7293
7294 * sparc64-tdep.c (sparc64_store_arguments)
7295 (sparc64_store_arguments): Fix coding style.
7296
7297 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7298
7299 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7300 complex floats, adjust some related comments and tighten a related
7301 assertion.
7302 (sparc64_extract_return_value): Handle complex floats.
7303
7304 2012-04-07 Doug Evans <dje@google.com>
7305
7306 * dwarf2read.c (load_partial_dies): Change condition to assert.
7307
7308 2012-04-06 Doug Evans <dje@google.com>
7309
7310 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7311 "mov %rsp,%rbp".
7312
7313 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7314
7315 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7316 fencepost error.
7317 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7318 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7319 architecture.
7320
7321 2012-04-05 Keith Seitz <keiths@redhat.com>
7322
7323 * linespec.c (decode_compound): Remove.
7324 (enum offset_relative_sign): New enum.
7325 (struct line_offset): New struct.
7326 (struct linespec): New struct.
7327 (struct linespec_state): Move file_symtabs,
7328 user_filename, and user_function into struct linespec.
7329 Make result an anonymous struct holding vectors of
7330 symbolp and minsym_and_objfile_d.
7331 Add language member.
7332 (enum ls_token_type): New enum.
7333 (linespec_keywords): New array.
7334 (struct ls_token): New struct.
7335 (struct ls_parser): New struct.
7336 (linespec_lexer_lex_number): New function.
7337 (linespec_lexer_lex_keyword): New function.
7338 (is_ada_operator): New function.
7339 (skip_quote_char): New function.
7340 (copy_token_string): New function.
7341 (is_closing_quote_enclosed): New function.
7342 (find_parameter_list_end): New function.
7343 (linespec_lexer_lex_string): New function.
7344 (linespec_lexer_lex_one): New function.
7345 (linespec_lexer_consume_token): New function.
7346 (linespec_lexer_peek_token): New function.
7347 (cplusplus_error): Remove unused function.
7348 (find_methods): Update comment.
7349 (find_toplevel_char): Return const.
7350 (is_objc_method_format): Remove unused function.
7351 (find_toplevel_string): New function.
7352 (is_linespec_boundary): Remove.
7353 (symbol_not_found_error): New function.
7354 (find_method_overload_end): Remove function.
7355 (unexpected_linespec_error): New function.
7356 (keep_name_info): Remove.
7357 (linespec_parse_line_offset): New function.
7358 (linespec_parse_basic): New function.
7359 (canonicalize_linespec): New function.
7360 (decode_line_internal): Remove.
7361 (create_sals_line_offset): New function adapted from
7362 decode_all_digits.
7363 (convert_linespec_to_sals): New function.
7364 (parse_linespec): New function.
7365 (linespec_parser_new): New function.
7366 (linespec_state_destructor): Change parameter type to
7367 struct linespec_state *.
7368 Add language parameter.
7369 Remove freeing of moved members.
7370 (linespec_parser_delete): New function.
7371 (decode_line_full): Use parse_linespec and linespec_parser_new.
7372 (decode_line_1): Likewise.
7373 (decode_indirect): Rename to ...
7374 (linespec_expression_to_pc): ... this and rewrite
7375 to simply find CORE_ADDR, storing this result for later
7376 conversion to SALs.
7377 (locate_first_half): Remove.
7378 (deocde_objc): Add parameter LS.
7379 Initialize new struct collect_info members.
7380 Handle minimal symbols, too.
7381 (decode_compound): Delete.
7382 (lookup_prefix_sym): Rewrite.
7383 (compare_msymbols): New function.
7384 (find_method): Rewrite.
7385 Do not call cplusplus_error.
7386 (symtabs_from_filename): Rewrite.
7387 (collect_function_symbols): Delete.
7388 (find_function_symbols): Rewrite without ARGPTR-style
7389 processing.
7390 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7391 (decode_dollar): Adapted and renamed to ...
7392 (linespec_parse_variable): ... this.
7393 (find_linespec_symbols): New function.
7394 (decode_label): Adapted and renamed to ...
7395 (find_label_symbols): ... this.
7396 (decode_digits_list_mode): Add and use LS argument.
7397 (decode_digits_ordinary): Likewise.
7398 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7399 If in list mode, allow any symbol class. Otherwise, only
7400 permit LOC_BLOCK symbols.
7401 (minsym_found): Update comments.
7402 (search_minsyms_for_name): Do not convert the matching symbol
7403 into a SAL. Simply push the symbol and objfile into the
7404 result vector.
7405 (decode_variable): Delete. Contents adapted into
7406 find_linespec_symbols.
7407
7408 * cp-support.c (SKIP_SPACE): Remove.
7409 (operator_tokens): Remove unused global.
7410 (cp_validate_operator): Remove.
7411 * cp-support.h (cp_validate_operator): Remove declaration.
7412
7413 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7414
7415 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7416 for TYPE_VPTR_FIELDNO.
7417 * valprint.c (valprint_check_validity): Make it global, move the
7418 function comment ...
7419 * value.h (valprint_check_validity): ... to this new declaration.
7420
7421 2012-04-02 Tristan Gingold <gingold@adacore.com>
7422
7423 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7424 the STATE32 api for i386 state.
7425 (i386_darwin_store_inferior_registers): Likewise.
7426
7427 2012-04-02 Tristan Gingold <gingold@adacore.com>
7428
7429 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7430 SS offset.
7431 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7432 format_string.
7433
7434 2012-04-02 Tristan Gingold <gingold@adacore.com>
7435
7436 PR gdb/13901
7437 * darwin-nat.c (darwin_execvp): Set binary preference.
7438
7439 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7440
7441 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7442
7443 2012-03-30 Tom Tromey <tromey@redhat.com>
7444
7445 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7446 of TRY_CATCH. Fix error handling.
7447 * python/py-value.c (convert_value_from_python): Move 'old'
7448 declaration to innermost scope.
7449
7450 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7451 Andrey Smirnov <andrew.smirnov@gmail.com>
7452
7453 -Wshadow warning fix.
7454 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7455 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7456 Adjust code accordingly.
7457
7458 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7459
7460 * ada-lang.c (symbol_completion_add): Rename parameter
7461 "encoded" into "encoded_p". Ajust code and documentation
7462 accordingly.
7463
7464 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7465 Andrey Smirnov <andrew.smirnov@gmail.com>
7466
7467 -Wshadow warning fix.
7468 * ada-lang.c (symbol_completion_add): Rename parameter
7469 "wild_match" into wild_match_p. Update code and documentation
7470 accordingly.
7471
7472 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7473
7474 * ada-lang.c (symbol_completion_match): Rename parameter
7475 "encoded" into "encoded_p". Ajust code and documentation
7476 accordingly.
7477
7478 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7479 Andrey Smirnov <andrew.smirnov@gmail.com>
7480
7481 -Wshadow warning fix.
7482 * ada-lang.c (symbol_completion_match): Rename parameter
7483 "wild_match" into "wild_match_p". Adjust code and function
7484 documentation accordingly.
7485
7486 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7487 Andrey Smirnov <andrew.smirnov@gmail.com>
7488
7489 -Wshadow warning fix.
7490 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7491 "symbol_info" into "info". Adjust code accordingly.
7492 (ada_lookup_symbol): Likewise.
7493
7494 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7495
7496 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7497 of this function's documentation.
7498
7499 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7500 Andrey Smirnov <andrew.smirnov@gmail.com>
7501
7502 -Wshadow warning fix.
7503 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7504 variable into "wild_match_p". Adjust code accordingly.
7505
7506 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7507 Andrey Smirnov <andrew.smirnov@gmail.com>
7508
7509 -Wshadow warning fix.
7510 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7511 parameter into "wild_match_p". Adjust code accordingly.
7512 Document this parameter in the function description.
7513
7514 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7515 Andrey Smirnov <andrew.smirnov@gmail.com>
7516
7517 -Wshadow warning fix.
7518 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7519 "wild_match" parameter to "wild_match_p" (-Wshadow).
7520
7521 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7522
7523 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7524 in function documentation.
7525
7526 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7527 Andrey Smirnov <andrew.smirnov@gmail.com>
7528
7529 -Wshadow warning fix.
7530 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7531 variable into wild_match_p. Adjust code accordingly.
7532
7533 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7534 Andrey Smirnov <andrew.smirnov@gmail.com>
7535
7536 * ada-valprint.c (ada_val_print_1): Move the code handling
7537 TYPE_CODE_ENUM inside its own lexical block. Declare
7538 variables len and val there, instead of in the function's
7539 top level block. Avoid declaring deref_val again in a way
7540 that shadows another variable of the same name declared
7541 in one of the up-level blocks. Just re-use the up-level
7542 variable instead.
7543
7544 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7545
7546 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7547 Replace block_found argument by symbol_info. Adjust
7548 implementation accordingly. Add function documentation.
7549 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7550 Fix documentation.
7551 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7552 * ada-exp.y (write_object_renaming): Adjust to new
7553 ada_lookup_encoded_symbol API.
7554
7555 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7556
7557 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7558 documentation.
7559
7560 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7561
7562 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7563 (v850_register_name): Add the mpu and fpu register names.
7564 (v850e_register_name): Add the mpu and fpu register names.
7565 (v850e2_register_name): New function.
7566 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7567 bfd_mach_v850e2v3.
7568
7569 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7570
7571 * NEWS: Add entry for Ada varobj support.
7572
7573 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7574
7575 * varobj.c (default_value_is_changeable_p): New function,
7576 extracted from varobj_value_is_changeable_p. Add declaration.
7577 (ada_value_is_changeable_p): New function, extracted from
7578 varobj_value_is_changeable_p. Add declaration.
7579 (struct language_specific): New field "value_is_changeable_p".
7580 (languages): Add entries for new field.
7581 (varobj_create): Set language before calling install_new_value.
7582 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7583 "value_is_changeable_p" language callback.
7584
7585 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7586
7587 * ada-varobj.h, ada-varobj.c: New files.
7588 * Makefile.in (SFILES): Add ada-varobj.c.
7589 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7590 (COMMON_OBS): Add ada-varobj.o.
7591
7592 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7593
7594 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7595 (struct language_specific): New field "value_has_mutated".
7596 (languages): Set field "value_has_mutated" in each entry of array.
7597 (varobj_value_has_mutated): New function.
7598 (varobj_udpdate): Add handling of type mutation.
7599 (value_of_root): Add handling of type mutation.
7600 (ada_value_has_mutated): New function.
7601
7602 2012-03-28 Pedro Alves <palves@redhat.com>
7603
7604 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7605 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7606
7607 2012-03-28 Tom Tromey <tromey@redhat.com>
7608
7609 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7610 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7611 before returning.
7612
7613 2012-03-28 Tom Tromey <tromey@redhat.com>
7614
7615 * .dir-locals.el: New file.
7616
7617 2012-03-28 Pedro Alves <palves@redhat.com>
7618
7619 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7620
7621 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7622
7623 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7624 handling for r0.
7625
7626 2012-03-27 Pedro Alves <palves@redhat.com>
7627
7628 Eliminate struct ui_stream.
7629
7630 * ui-out.h (struct ui_stream): Delete.
7631 (ui_out_field_stream): Adjust prototype.
7632 (ui_out_stream_new, ui_out_stream_delete)
7633 (make_cleanup_ui_out_stream_delete): Delete declarations.
7634 * ui-out.c (ui_out_field_stream): Change prototype to take a
7635 ui_file instead of a ui_stream. Adjust.
7636 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7637 (make_cleanup_ui_out_stream_delete): Delete.
7638 * breakpoint.c (print_breakpoint_location)
7639 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7640 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7641 * disasm.c (dump_insns): Ditto.
7642 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7643 prototype.
7644 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7645 ui_stream/ui_out_stream_new.
7646 * infcmd.c (print_return_value): Ditto.
7647 * osdata.c (info_osdata_command): Don't allocate a local
7648 ui_stream.
7649 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7650 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7651 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7652 allocate a local ui_stream.
7653 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7654 instead of ui_stream/ui_out_stream_new.
7655 (list_args_or_locals): Don't allocate a local ui_stream.
7656 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7657 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7658 ui_stream/ui_out_stream_new.
7659 * cli/cli-setshow.c (do_setshow_command): Ditto.
7660
7661 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7662
7663 * arm-linux-tdep.c (arm_linux_init_abi): Call
7664 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7665 * arm-tdep.c (arm_process_record): New function.
7666 (deallocate_reg_mem): New function.
7667 (decode_insn): New function.
7668 (thumb_record_branch): New function.
7669 (thumb_record_ldm_stm_swi(): New function.
7670 (thumb_record_misc): New function.
7671 (thumb_record_ld_st_stack): New function.
7672 (thumb_record_ld_st_imm_offset): New function.
7673 (thumb_record_ld_st_reg_offset(): New function.
7674 (thumb_record_add_sub_cmp_mov): New function.
7675 (thumb_record_shift_add_sub): New function.
7676 (arm_record_coproc_data_proc): New function.
7677 (arm_record_coproc): New function.
7678 (arm_record_b_bl): New function.
7679 (arm_record_ld_st_multiple): New function.
7680 (arm_record_ld_st_reg_offset): New function.
7681 (arm_record_ld_st_imm_offset): New function.
7682 (arm_record_data_proc_imm): New function.
7683 (arm_record_data_proc_misc_ld_str): New function.
7684 (arm_record_extension_space): New function.
7685 (arm_record_strx): New function.
7686 (sbo_sbz): New function.
7687 (struct insn_decode_record): New structure for arm insn record.
7688 (REG_ALLOC): New macro for reg allocations.
7689 (MEM_ALLOC): New macro for memory allocations.
7690 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7691
7692 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7693
7694 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7695 (store_register): Likewise.
7696
7697 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7698
7699 * MAINTAINERS (Write After Approval): Add myself to the list.
7700
7701 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7702
7703 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7704 Describe also the option "auto".
7705
7706 2012-03-22 Richard Henderson <rth@redhat.com>
7707
7708 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7709 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7710
7711 2012-03-22 Richard Henderson <rth@redhat.com>
7712
7713 * jit.c (jit_read_code_entry): Compute alignment and offset of
7714 int64_t member before computing entry_size.
7715
7716 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7717
7718 Python scripting: Add new method Value.referenced_value to
7719 gdb.Value which can dereference pointer as well as reference
7720 values.
7721 * NEWS: Add entry under 'Python scripting' about the new method
7722 Value.referenced_value on gdb.Value objects.
7723 * python/py-value.c (valpy_referenced_value): New function
7724 defining a new method on gdb.Value objects which can dereference
7725 pointer and reference values.
7726
7727 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7728
7729 * MAINTAINERS (Write After Approval): Add myself to the list.
7730
7731 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7732
7733 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7734 in addition to "main".
7735
7736 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7737
7738 * expression.h (op_name): Add declaration.
7739 * expprint.c (op_name): Remove declaration. Make non-static.
7740 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7741
7742 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7743
7744 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7745 of struct siginfo.
7746 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7747 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7748 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7749 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7750 (linux_nat_get_siginfo): Likewise.
7751 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7752 (linux_nat_get_siginfo): Likewise.
7753 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7754 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7755 * procfs.c (gdb_siginfo_t): Likewise.
7756
7757 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7758
7759 * .gitignore: Ignore more files.
7760
7761 2012-03-20 Pedro Alves <palves@redhat.com>
7762
7763 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7764 returns.
7765
7766 2012-03-20 Yao Qi <yao@codesourcery.com>
7767
7768 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7769 comment.
7770
7771 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7772
7773 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7774 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7775 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7776 sect_offset.
7777 * dwarf2expr.h (cu_offset, sect_offset): New types.
7778 (struct dwarf_expr_context_funcs) <dwarf_call>
7779 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7780 sect_offset.
7781 (struct dwarf_expr_context) <len>: Improve the comment.
7782 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7783 cu_offset and sect_offset.
7784 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7785 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7786 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7787 * dwarf2loc.h: Include dwarf2expr.h.
7788 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7789 and sect_offset.
7790 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7791 Improve the comment.
7792 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7793 (struct signatured_type, struct line_header, struct partial_die_info)
7794 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7795 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7796 (get_die_type_at_offset, create_cus_from_index)
7797 (create_signatured_type_table_from_index, dw2_get_file_names)
7798 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7799 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7800 (create_debug_types_hash_table, process_psymtab_comp_unit)
7801 (load_partial_comp_unit, create_all_comp_units)
7802 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7803 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7804 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7805 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7806 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7807 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7808 (find_partial_die, read_attribute_value, lookup_die_type)
7809 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7810 (is_ref_attr): New function comment.
7811 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7812 Use cu_offset and sect_offset.
7813 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7814 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7815 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7816 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7817 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7818 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7819 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7820 sect_offset.
7821
7822 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7823
7824 Code cleanup.
7825 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7826 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7827 with xfree.
7828 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7829
7830 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7831
7832 * NEWS: Describe new options --init-command=FILE, -ix and
7833 --init-eval-command=COMMAND, -iex.
7834 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7835 CMDARG_INIT_COMMAND.
7836 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7837 "init-command", "init-eval-command", "ix" and "iex" to the variable
7838 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7839 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7840 (print_gdb_help): Describe --init-command=FILE, -ix and
7841 --init-eval-command=COMMAND, -iex.
7842
7843 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7844
7845 Code cleanup.
7846 * main.c (struct cmdarg): Move it here from main. Add more comments.
7847 (cmdarg_s, VEC (cmdarg_s)): New.
7848 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7849 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7850 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7851 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7852 of CMDARG.
7853
7854 2012-03-19 Tom Tromey <tromey@redhat.com>
7855
7856 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7857
7858 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7859
7860 PR symtab/13777
7861 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7862 GCC >=4.5.
7863
7864 2012-03-16 Chris January <chris.january@allinea.com>
7865
7866 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7867 of clear.
7868
7869 2012-03-16 Chris January <chris.january@allinea.com>
7870
7871 * source.c (add_path): Use memmove instead of strcpy because the
7872 strings overlap.
7873
7874 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7875
7876 * value.h (set_value_parent): Add declaration.
7877 * value.c (set_value_parent): New function.
7878 (value_address): If VALUE->PARENT is not NULL, then use it as
7879 the base address instead of VALUE->LOCATION.address.
7880 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7881 the same as OBJ's address. Adjust V's offset accordingly.
7882 Set V's parent.
7883
7884 2012-03-16 Gary Benson <gbenson@redhat.com>
7885
7886 PR breakpoints/10738
7887 * dwarf2read.c (use_deprecated_index_sections): New global.
7888 (struct partial_die_info): New member may_be_inlined.
7889 (read_partial_die): Set may_be_inlined where appropriate.
7890 (add_partial_subprogram): Add partial symbols for partial
7891 DIEs that may be inlined.
7892 (new_symbol_full): Add inlined subroutines to the current
7893 scope.
7894 (write_psymtabs_to_index): Bump version number.
7895 (dwarf2_read_index): Read only version 6 indices unless
7896 use_deprecated_index_sections is set.
7897 * linespec.c (symbol_and_data_callback): New structure.
7898 (iterate_inline_only): New function.
7899 (iterate_over_all_matching_symtabs): New argument
7900 "include_inline". If nonzero, also call the callback for
7901 symbols representing inlined subroutines.
7902 (lookup_prefix_sym): Pass extra argument to the above.
7903 (find_function_symbols): Likewise.
7904 (add_matching_symbols_to_info): Likewise.
7905 * NEWS: Mention that GDB can now set breakpoints on inlined
7906 functions.
7907
7908 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7909
7910 * p-typeprint.c (pascal_type_print_method_args):
7911 Fix display of parameter of methods.
7912
7913 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7914
7915 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7916 Add missing prototype.
7917
7918 2012-03-16 Yao Qi <yao@codesourcery.com>
7919 Jan Kratochvil <jan.kratochvil@redhat.com>
7920
7921 Fix false compilation warning.
7922 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7923
7924 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7925 Pedro Alves <pedro@codesourcery.com>
7926
7927 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7928 (arm_register_g_packet_guesses): New function.
7929 (arm_gdbarch_init): Don't force a target description with
7930 registers when the executable is detected as M-profile. Instead
7931 set gdbarch->tdep->is_m. Register `g' packet guesses.
7932 (_initialize_arm_tdep): Initialize the new target description.
7933 * features/arm-with-m-fpa-layout.xml: New description.
7934 * features/arm-with-m-fpa-layout.c: New, generated.
7935
7936 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7937
7938 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7939 Update function description.
7940 (insert_bp_location): Do not wipe bl->target_info out.
7941 * mem-break.c: #include "gdb_string.h".
7942 (default_memory_insert_breakpoint): Do not call target_read_memory
7943 with a pointer to the breakpoint's shadow_contents buffer. Use
7944 a local buffer instead.
7945 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7946
7947 2012-03-15 Tom Tromey <tromey@redhat.com>
7948
7949 * NEWS: Mention "info vtbl", not "info vtable".
7950 * cp-support.c (info_vtbl_command): Fix comment.
7951 (_initialize_cp_support): Fix text.
7952
7953 2012-03-15 Tom Tromey <tromey@redhat.com>
7954
7955 * cp-valprint.c (cp_print_value_fields): Use
7956 print_function_pointer_address for vtable slot.
7957
7958 2012-03-15 Tom Tromey <tromey@redhat.com>
7959
7960 * gnu-v3-abi.c (struct value_and_voffset): New.
7961 (hash_value_and_voffset, eq_value_and_voffset)
7962 (compare_value_and_voffset, compute_vtable_size)
7963 (print_one_vtable, gnuv3_print_vtable): New functions.
7964 (init_gnuv3_ops): Initialize 'print_vtable' field.
7965 * cp-support.c (info_vtbl_command): New function.
7966 (_initialize_cp_support): Add "info vtbl".
7967 * cp-abi.h (cplus_print_vtable): Declare.
7968 (struct cp_abi_ops) <print_vtable>: New field.
7969 * cp-abi.c (cplus_print_vtable): New function.
7970 * NEWS: Update.
7971
7972 2012-03-15 Tom Tromey <tromey@redhat.com>
7973
7974 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7975 iterate_over_symbols.
7976
7977 2012-03-14 Doug Evans <dje@google.com>
7978
7979 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7980 DW_OP_GNU_parameter_ref.
7981
7982 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7983
7984 Fix double prompt of 'interpreter-exec mi'.
7985 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7986 (mi_interpreter_resume): use it.
7987 (mi_execute_command_input_handler): New function.
7988 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7989 mi_execute_command_input_handler.
7990
7991 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7992
7993 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7994 prototype.
7995 (darwin_debug_port_info): Make static.
7996 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7997 * machoread.c (_initialize_machoread): Add prototype.
7998 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7999 (i386_darwin_set_control, i386_darwin_get_control)
8000 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8001 i386_darwin_get_status, i386_darwin_get_control):
8002 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8003
8004 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8005
8006 * ax-gdb.c (gen_usual_unary): Remove special handling of
8007 enum and bool types.
8008
8009 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8010
8011 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8012
8013 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8014
8015 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8016
8017 2012-03-13 Chris January <chris.january@allinea.com>
8018
8019 * aix-thread.c (fill_sprs): Store the floating point registers
8020 at the correct offsets into vals.
8021
8022 2012-03-13 Doug Evans <dje@google.com>
8023
8024 * NEWS: Mention symbol-reloading has been deleted.
8025 * symfile.c (symbol_reloading): Delete.
8026 (show_symbol_reloading): Delete.
8027 (_initialize_symfile): Delete set/show symbol-reloading.
8028
8029 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8030 read_in_chain until we have successfully read it in.
8031 (load_full_comp_unit): Ditto.
8032 (read_signatured_type): Add comment.
8033
8034 2012-03-13 Chris January <chris.january@allinea.com>
8035
8036 * stabsread.c (fix_common_block): Change type of valu argument
8037 to CORE_ADDR.
8038
8039 2012-03-13 Chris January <chris.january@allinea.com>
8040
8041 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8042 instruction.
8043
8044 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8045
8046 * common/linux-procfs.c (linux_proc_get_int): New, from
8047 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8048 field.
8049 (linux_proc_get_tgid): Only call linux_proc_get_int.
8050 (linux_proc_get_tracerpid): New.
8051 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8052 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8053 linux_proc_pid_has_state.
8054 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8055 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8056 (linux_ptrace_attach_warnings): New.
8057 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8058 New declaration.
8059 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8060 (linux_nat_attach): New variables ex, buffer, message and message_s.
8061 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8062
8063 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8064
8065 * Makefile.in (linux-ptrace.o): New.
8066 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8067 from linux-nat.c.
8068 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8069 * common/linux-ptrace.c: New file.
8070 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8071 * config/arm/linux.mh: Likewise.
8072 * config/i386/linux.mh: Likewise.
8073 * config/i386/linux64.mh: Likewise.
8074 * config/ia64/linux.mh: Likewise.
8075 * config/m32r/linux.mh: Likewise.
8076 * config/m68k/linux.mh: Likewise.
8077 * config/mips/linux.mh: Likewise.
8078 * config/pa/linux.mh: Likewise.
8079 * config/powerpc/linux.mh: Likewise.
8080 * config/powerpc/ppc64-linux.mh: Likewise.
8081 * config/powerpc/spu-linux.mh: Likewise.
8082 * config/s390/s390.mh: Likewise.
8083 * config/sparc/linux.mh: Likewise.
8084 * config/sparc/linux64.mh: Likewise.
8085 * config/xtensa/linux.mh: Likewise.
8086 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8087 common/linux-procfs.c.
8088 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8089
8090 2012-03-13 Hui Zhu <teawater@gmail.com>
8091 Pedro Alves <palves@redhat.com>
8092
8093 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8094 CREATE_BREAKPOINT_FLAGS_INSERTED.
8095 (create_breakpoint_sal, create_breakpoints_sal)
8096 (base_breakpoint_create_breakpoints_sal)
8097 (tracepoint_create_breakpoints_sal)
8098 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8099 down.
8100 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8101 (ftrace_command, strace_command): Adjust.
8102 (create_tracepoint_from_upload): Pass
8103 CREATE_BREAKPOINT_FLAGS_INSERTED.
8104 * breakpoint.h (enum breakpoint_create_flags): New.
8105 (create_breakpoint): New flags parameter.
8106 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8107 * python/py-breakpoint.c (bppy_init): Adjust.
8108 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8109 * spu-tdep.c (spu_catch_start): Adjust.
8110
8111 2012-03-13 Pedro Alves <palves@redhat.com>
8112 Hui Zhu <teawater@gmail.com>
8113 Yao Qi <yao@codesourcery.com>
8114
8115 * remote.c (struct remote_state): New field `starting_up'.
8116 (remote_start_remote): Set and clear it.
8117 (remote_can_download_tracepoint): If starting up, return false.
8118
8119 2012-03-13 Yao Qi <yao@codesourcery.com>
8120
8121 * inferior.h (struct inferior): Remove fields any_syscall_count,
8122 syscalls_counts and total_syscalls_count. Move them to new
8123 struct catch_syscall_inferior_data in breakpoint.c.
8124 * breakpoint.c: Call DEF_VEC_I(int).
8125 (struct catch_syscall_inferior_data): New.
8126 (get_catch_syscall_inferior_data): New.
8127 (catch_syscall_inferior_data_cleanup): New.
8128 (insert_catch_syscall): Update to access data in
8129 struct catch_syscall_inferior_data.
8130 (insert_catch_syscall): Likewise.
8131 (remove_catch_syscall): Likewise.
8132 (remove_catch_syscall): Likewise.
8133 (is_syscall_catchpoint_enabled): Likewise.
8134 (add_catch_command): Likewise.
8135 (_initialize_breakpoint): Register cleanup.
8136 * breakpoint.h: Removed DEF_VEC_I(int).
8137 * dwarf2loc.c: Call DEF_VEC_I(int).
8138 * mi/mi-main.c: Likewise.
8139
8140 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8141
8142 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8143
8144 2012-03-12 Chris January <chris.january@allinea.com>
8145
8146 * aix-thread.c (_initialize_aix_thread): Add prototype.
8147 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8148 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8149
8150 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8151
8152 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8153 include of "amd64-nat.h".
8154
8155 2012-03-12 Tom Tromey <tromey@redhat.com>
8156
8157 * buildsym.c (record_pending_block): Now static.
8158 * buildsym.h: (record_pending_block): Remove.
8159
8160 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8161
8162 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8163
8164 2012-03-09 Tom Tromey <tromey@redhat.com>
8165
8166 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8167 producer_is_gxx_lt_4_6>: New fields.
8168 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8169
8170 2012-03-09 Tom Tromey <tromey@redhat.com>
8171
8172 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8173
8174 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8175
8176 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8177 prototype.
8178
8179 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8180
8181 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8182
8183 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8184
8185 Fix -Wmissing-prototypes build.
8186 * arm-linux-nat.c (get_thread_id): Make it static.
8187 * xtensa-linux-nat.c (get_thread_id): Likewise.
8188
8189 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8190
8191 * server.c (process_point_options): If a conditional expression
8192 is found, only print a message if remote_debug is nonzero.
8193
8194 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8195
8196 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8197 of internal error for unknown/unsupported types.
8198
8199 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8200
8201 Fix CU relative vs. absolute DIE offsets.
8202 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8203 offset to offset_in_cu.
8204 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8205 TYPE_OFFSET.
8206 (dwarf2_fetch_die_location_block): Rename parameter offset to
8207 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8208
8209 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8210
8211 * libunwind-frame.c: Rename to ...
8212 * ia64-libunwind-tdep.c: ... here.
8213 * libunwind-frame.h: Rename to ...
8214 * ia64-libunwind-tdep.h: ... here.
8215 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8216 ia64-libunwind-tdep.h.
8217 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8218 * README (--with-libunwind): Rename to ...
8219 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8220 * config.in: Regenerate.
8221 * configure: Regenerate.
8222 * configure.ac: New option --with-libunwind-ia64, make the
8223 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8224 Remove AC_DEFINE for HAVE_LIBUNWIND.
8225 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8226 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8227 Rename libunwind-frame in the general comment.
8228 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8229 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8230 Move forward declarations inside #ifndef. Rename libunwind-frame in
8231 the general comment.
8232 * ia64-tdep.c: Rename libunwind-frame.h #include to
8233 ia64-libunwind-tdep.h.
8234 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8235 (ia64_libunwind_descr): Rename libunwind-frame to
8236 ia64-libunwind-tdep in these function comments.
8237 * ia64-tdep.h: Rename libunwind-frame.h #include to
8238 ia64-libunwind-tdep.h.
8239 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8240 ia64-libunwind-tdep in that data comment.
8241
8242 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8243
8244 * libunwind-frame.h (struct frame_unwind): New declaration.
8245
8246 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8247
8248 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8249 "set breakpoint condition-evaluation" command.
8250
8251 2012-03-08 Tristan Gingold <gingold@adacore.com>
8252
8253 * sparc-stub.c: Move to stubs/
8254 * sh-stub.c: Likewise.
8255 * m68k-stub.c: Likewise.
8256 * m32r-stub.c: Likewise.
8257 * i386-stub.c: Likewise.
8258
8259 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8260
8261 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8262 linux_get_siginfo_type.
8263
8264 * m68klinux-nat.c: Include "gdb_proc_service.h".
8265 (PTRACE_GET_THREAD_AREA): Define.
8266 (ps_get_thread_area): New function.
8267
8268 2012-03-08 Yao Qi <yao@codesourcery.com>
8269
8270 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8271 `xsnprintf'.
8272 (remote_query_attached): Likewise.
8273 (remote_static_tracepoint_marker_at): Likewise.
8274 (remote_set_permissions): Likewise.
8275 (remote_detach_1, extended_remote_attach_1): Likewise.
8276 (send_g_packet, remote_vkill): Likewise.
8277 (extended_remote_disable_randomization): Likewise.
8278 (remote_add_target_side_condition): Likewise.
8279 (remote_insert_breakpoint): Likewise.
8280 (remote_remove_breakpoint): Likewise.
8281 (remote_insert_watchpoint): Likewise.
8282 (remote_remove_watchpoint): Likewise.
8283 (remote_insert_hw_breakpoint): Likewise.
8284 (remote_insert_hw_breakpoint): Likewise.
8285 (remote_remove_hw_breakpoint): Likewise.
8286 (remote_download_command_source): Likewise.
8287 (remote_download_tracepoint): Likewise.
8288 (remote_download_trace_state_variable): Likewise.
8289 (remote_disable_tracepoint): Likewise.
8290 (remote_trace_set_readonly_regions): Likewise.
8291 (remote_get_tracepoint_status): Likewise.
8292 (remote_trace_find): Likewise.
8293 (remote_get_trace_state_variable_value): Likewise.
8294 (remote_set_disconnected_tracing): Likewise.
8295 (remote_set_circular_trace_buffer): Likewise.
8296 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8297 (remote_use_agent): Likewise.
8298 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8299 Update callers.
8300
8301 2012-03-07 Pedro Alves <palves@redhat.com>
8302
8303 * NEWS: Mention QProgramSignals.
8304 * inferior.h (update_signals_program_target): Declare.
8305 * infrun.c: (update_signals_program_target): New.
8306 (handle_command): Update the target of the new program signals
8307 array changes.
8308 * remote.c (PACKET_QProgramSignals): New enum.
8309 (last_program_signals_packet): New global.
8310 (remote_program_signals): New.
8311 (remote_start_remote): Update the target with the program signals
8312 list.
8313 (remote_protocol_features): Add entry for QPassSignals.
8314 (remote_open_1): Free anc clear last_program_signals_packet.
8315 (init_remote_ops): Install remote_program_signals.
8316 * target.c (update_current_target): Adjust.
8317 (target_program_signals): New.
8318 * target.h (struct target_ops) <to_program_signals>: New field.
8319 (target_program_signals): Declare.
8320
8321 2012-03-07 Pedro Alves <palves@redhat.com>
8322
8323 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8324 extensions.
8325
8326 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8327
8328 * m68klinux-nat.c (getregs_supplies): Make static.
8329 (getfpregs_supplies): Likewise.
8330 (have_ptrace_getregs): Likewise.
8331
8332 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8333
8334 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8335 in call to get_die_type_at_offset.
8336
8337 2012-03-06 Stan Shebs <stan@codesourcery.com>
8338
8339 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8340 * mi/mi-cmd-disas.c: Ditto.
8341 * mi/mi-cmd-env.c: Ditto.
8342 * mi/mi-cmd-file.c: Ditto.
8343 * mi/mi-cmd-stack.c: Ditto.
8344 * mi/mi-cmd-target.c: Ditto.
8345 * mi/mi-cmd-var.c: Ditto.
8346 * mi/mi-cmds.c: Ditto.
8347 * mi/mi-cmds.h: Ditto.
8348 * mi/mi-console.c: Ditto.
8349 * mi/mi-getopt.c: Ditto.
8350 * mi/mi-getopt.h: Ditto.
8351 * mi/mi-interp.c: Ditto.
8352 * mi/mi-main.c: Ditto.
8353 * mi/mi-out.c: Ditto.
8354 * mi/mi-parse.c: Ditto.
8355 * mi/mi-parse.h: Ditto.
8356 * mi/mi-symbol-cmds.c: Ditto.
8357
8358 * mi/mi-getopt.h: Move mi_opt struct up.
8359 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8360 return.
8361 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8362
8363 2012-03-06 Tom Tromey <tromey@redhat.com>
8364
8365 * proc-service.c (ps_pglobal_lookup): Set the current program
8366 space.
8367
8368 2012-03-06 Pedro Alves <palves@redhat.com>
8369
8370 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8371
8372 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8373
8374 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8375
8376 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8377
8378 Code cleanup.
8379 * common/linux-osdata.c (linux_common_core_of_thread): New function
8380 comment.
8381 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8382 call by linux_common_core_of_thread.
8383 (linux_nat_core_of_thread_1): Remove.
8384 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8385 * linux-thread-db.c: Include linux-osdata.h.
8386 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8387 linux_common_core_of_thread.
8388
8389 2012-03-05 Tom Tromey <tromey@redhat.com>
8390
8391 * value.c (value_primitive_field): Don't fetch contents for
8392 non-virtual bases.
8393
8394 2012-03-05 Tom Tromey <tromey@redhat.com>
8395
8396 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8397
8398 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8399
8400 * s390-nat.c: Include "gregset.h".
8401
8402 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8403
8404 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8405 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8406 (libunwind_load): New variable so_error, use it for dlerror. Try to
8407 load also LIBUNWIND_SO_7.
8408
8409 2012-03-05 Pedro Alves <palves@redhat.com>
8410
8411 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8412 is not NULL, and remove resulting dead code.
8413
8414 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8415
8416 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8417 prologue to sh_analyze_prologue.
8418 (sh_analyze_prologue): Make better use of such an upper limit, and
8419 generally be more cautious about accessing memory.
8420
8421 2012-03-05 Tom Tromey <tromey@redhat.com>
8422
8423 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8424 _initialize_ia64_hpux_tdep.
8425
8426 2012-03-05 Pedro Alves <palves@redhat.com>
8427
8428 PR gdb/13766
8429
8430 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8431 the register state is clear, supply explicit zero, instead of
8432 marking the register unavailable.
8433
8434 2012-03-05 Tristan Gingold <gingold@adacore.com>
8435
8436 * NEWS: Mention OpenVMS ia64 new target.
8437
8438 2012-03-05 Tristan Gingold <gingold@adacore.com>
8439
8440 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8441 (ia64_unw_accessors, ia64_unw_rse_accessors)
8442 (ia64_libunwind_descr): Declare.
8443 * ia64-vms-tdep.c: New file.
8444 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8445 (ia64_libunwind_descr): Make them public.
8446 * configure.tgt: Add ia64-*-*vms*.
8447 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8448 (ALLDEPFILES): Add ia64-vms-tdep.c
8449
8450 2012-03-05 Tristan Gingold <gingold@adacore.com>
8451
8452 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8453 * remote.c (PACKET_qXfer_uib): New enum value.
8454 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8455 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8456 (_initialize_remote): Call add_packet_config_cmd for
8457 xfer:uib packet.
8458
8459 2012-03-05 Tristan Gingold <gingold@adacore.com>
8460
8461 * osabi.c (gdb_osabi_names): Add OpenVMS.
8462 (generic_elf_osabi_sniffer): Likewise.
8463 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8464
8465 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8466
8467 Removed unused code.
8468 * libunwind-frame.c (libunwind_frame_unwind)
8469 (libunwind_frame_base_address): Remove.
8470 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8471
8472 2012-03-04 Yao Qi <yao@codesourcery.com>
8473
8474 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8475 remove trailing new line.
8476 (agent_run_command, agent_run_command): Add _ markup.
8477 (agent_capability_check): Likewise.
8478
8479 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8480
8481 * breakpoint.c (set_condition_evaluation_mode): Set
8482 CONDITION_EVALUATION_MODE unconditionally.
8483
8484 2012-03-03 Yao Qi <yao@codesourcery.com>
8485
8486 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8487 * common/agent.h: Update declaration.
8488 * inf-child.c (inf_child_use_agent): New.
8489 (inf_child_can_use_agent): New.
8490 (inf_child_target): Initialize fields `to_use_agent'
8491 and `to_can_use_agent'.
8492 * agent.c (agent_new_objfile): New.
8493 (_initialize_agent): Add agent_new_objfile to new_objfile
8494 observer.
8495
8496 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8497 New.
8498 (linux_target_install_ops): Initialize field
8499 `to_static_tracepoint_markers_by_strid'.
8500 * remote.c (free_current_marker): Move it to ...
8501 * tracepoint.c (free_current_marker): ... here. New.
8502 (cleanup_target_stop): New.
8503 * tracepoint.h: Declare free_current_marker.
8504 * NEWS: Add one entry about `info static-tracepoint-marker'.
8505
8506 2012-03-03 Yao Qi <yao@codesourcery.com>
8507
8508 * common/agent.c (agent_loaded_p): New.
8509 (agent_look_up_symbols): New global.
8510 * common/agent.h: Declare agent_loaded_p.
8511
8512 2012-03-03 Yao Qi <yao@codesourcery.com>
8513
8514 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8515 (agent_capability_check, agent_capability_invalidate): New.
8516 (symbol_list): New array element.
8517 * common/agent.h (enum agent_capa): New.
8518 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8519
8520 2012-03-03 Yao Qi <yao@codesourcery.com>
8521
8522 * target.h (struct target_ops) <to_use_agent>: New field.
8523 (struct target_ops) <to_can_use_agent>: New field.
8524 (target_use_agent, target_can_use_agent): New macro.
8525 * target.c (update_current_target): Update.
8526 * remote.c: New enum `PACKET_QAgent'.
8527 (remote_protocol_features): Add a new element.
8528 (remote_use_agent, remote_can_use_agent): New.
8529 (init_remote_ops): Initialize field `can_use_agent' with
8530 remote_can_use_agent. Intiailize field `use_agent' with
8531 remote_use_agent.
8532 * common/agent.c (use_agent): New global.
8533 * common/agent.h: Declare it.
8534 * tracepoint.c (info_static_tracepoint_markers_command): Add
8535 comment.
8536 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8537 (COMMON_OBS): Add common/agent.o and agent.o
8538 (common-agent.o): New rule.
8539 * agent.c: New.
8540
8541 2012-03-03 Yao Qi <yao@codesourcery.com>
8542
8543 * common/agent.c: New.
8544 * common/agent.h: New.
8545 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8546 AC_CHECK_HEADERS.
8547 * configure, configh.in: Regenerated.
8548
8549 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8550
8551 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8552 unless it exists for this architecture.
8553
8554 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8555
8556 * language.h (struct language_defn): New "method" la_read_var_value.
8557 * findvar.c: #include "language.h".
8558 (default_read_var_value): Renames read_var_value. Rewrite
8559 function description.
8560 (read_var_value): New function.
8561 * value.h (default_read_var_value): Add prototype.
8562 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8563 New functions.
8564 (ada_language_defn): Add entry for la_read_var_value.
8565 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8566 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8567 language_defn structures to add entry for new la_read_var_value
8568 field.
8569
8570 2012-03-02 Tom Tromey <tromey@redhat.com>
8571 Pedro Alves <palves@redhat.com>
8572
8573 PR breakpoints/13776:
8574 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8575 breakpoints.
8576 (delete_longjmp_breakpoint_at_next_stop): New.
8577 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8578 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8579 before deleting the inferior. Add comments.
8580 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8581 breakpoints immediately, but only on next stop. Move that code
8582 next to where we mark other breakpoints for deletion.
8583
8584 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8585
8586 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8587 marker.
8588 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8589 violation.
8590
8591 2012-03-02 Pedro Alves <palves@redhat.com>
8592
8593 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8594
8595 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8596
8597 Fix -Wmissing-prototypes build.
8598 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8599 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8600 (gdbsim_has_memory): Likewise.
8601
8602 2012-03-02 Yao Qi <yao@codesourcery.com>
8603
8604 Fix -Wmissing-prototypes build.
8605 * charset.c (phony_iconv_open): Make static.
8606 (phony_iconv_close, phony_iconv): Likewise.
8607 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8608 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8609 prototype.
8610 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8611 * ser-mingw.c (create_select_thread): Make static.
8612 * windows-termcap.c (tgetent): New prototype.
8613 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8614
8615 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8616
8617 Fix -Wmissing-prototypes build.
8618 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8619 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8620 (_initialize_loadable): New prototypes.
8621
8622 2012-03-02 Doug Evans <dje@google.com>
8623
8624 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8625 abbrev table, read_comp_unit will do it.
8626
8627 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8628
8629 Fix -Wmissing-prototypes build.
8630 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8631 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8632 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8633 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8634 (_initialize_arm_symbian_tdep): New prototype.
8635 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8636 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8637 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8638 static.
8639 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8640 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8641 prototype.
8642 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8643 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8644 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8645 static.
8646 * moxie-tdep.c (moxie_process_record): Likewise.
8647 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8648 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8649 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8650 (_initialize_rl78_tdep): New prototype.
8651 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8652 (_initialize_rx_tdep): New prototype.
8653 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8654 (_initialize_darwin_solib): New prototype.
8655 * solib-spu.c: Include solib-spu.h.
8656 (_initialize_spu_solib): New prototype.
8657 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8658 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8659 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8660 (tic6x_software_single_step): Make it static.
8661 (_initialize_tic6x_tdep): New prototype.
8662
8663 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8664
8665 Fix -Wmissing-prototypes build.
8666 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8667 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8668
8669 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8670
8671 Fix -Wmissing-prototypes build.
8672 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8673 (frv_have_stopped_data_address): Remove.
8674
8675 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8676
8677 Fix -Wmissing-prototypes build.
8678 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8679 * sh-tdep.c: Include sh64-tdep.h.
8680 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8681 * sh64-tdep.c: Include sh64-tdep.h.
8682 * sh64-tdep.h: New file.
8683
8684 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8685
8686 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8687
8688 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8689
8690 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8691 sp_regnum once the gdbarch_init_osabi hook has been called.
8692
8693 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8694
8695 * mips-tdep.c (mips32_bc1_pc): New function.
8696 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8697 BPOSGE32 and BPOSGE64 instructions.
8698 (deal_with_atomic_sequence): Likewise.
8699 (mips32_instruction_has_delay_slot): Likewise.
8700
8701 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8702 Chris Dearman <chris@mips.com>
8703 Maciej W. Rozycki <macro@codesourcery.com>
8704 Joseph Myers <joseph@codesourcery.com>
8705
8706 * features/mips-dsp.xml: New file.
8707 * features/mips64-dsp.xml: New file.
8708 * features/mips-dsp-linux.xml: New file.
8709 * features/mips64-dsp-linux.xml: New file.
8710 * features/Makefile (WHICH): Add mips-dsp-linux and
8711 mips64-dsp-linux.
8712 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8713 * features/mips-dsp-linux.c: New file.
8714 * features/mips64-dsp-linux.c: New file.
8715 * regformats/mips-dsp-linux.dat: New file.
8716 * regformats/mips64-dsp-linux.dat: New file.
8717 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8718 registers.
8719 (mips64_linux_register_addr): Likewise.
8720 (mips64_linux_regsets_fetch_registers): Likewise.
8721 (mips64_linux_regsets_store_registers): Likewise.
8722 (mips64_linux_fetch_registers): Update call to
8723 mips64_linux_regsets_fetch_registers.
8724 (mips64_linux_store_registers): Update call to
8725 mips64_linux_regsets_store_registers.
8726 (mips_linux_read_description): Probe for DSP registers.
8727 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8728 and initialize_tdesc_mips64_dsp_linux.
8729 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8730 Remove padding of no longer used embedded register slots.
8731 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8732 (MIPS_RESTART_REGNUM): Redefine enum value.
8733 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8734 strings.
8735 (mips_tx39_reg_names): Likewise.
8736 (mips_linux_reg_names): New array of register names for Linux
8737 targets.
8738 (mips_register_name): Check for a null pointer in
8739 mips_processor_reg_names and return an empty string.
8740 (mips_register_type): Exclude embedded registers for the IRIX
8741 and Linux ABIs.
8742 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8743 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8744 DSP registers.
8745 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8746 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8747 (mips_gdbarch_init): Likewise. Initialize internal register
8748 indices for the Linux ABI. Use dynamic numbers to refer to
8749 registers, as applicable, while parsing the target description.
8750 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8751
8752 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8753
8754 * frame.h (read_frame_register_unsigned): Fix typo in function
8755 description.
8756
8757 2012-03-01 Pedro Alves <palves@redhat.com>
8758
8759 * jit-reader.in [!__cplusplus]
8760 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8761
8762 2012-03-01 Pedro Alves <palves@redhat.com>
8763
8764 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8765 * configure: Regenerate.
8766
8767 2012-03-01 Pedro Alves <palves@redhat.com>
8768
8769 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8770 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8771 (ftrace_command, strace_command): Make static.
8772 * d-lang.c (_initialize_d_language): Declare.
8773 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8774 * dwarf2loc.c (_initialize_dwarf2loc):
8775 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8776 * exec.c (exec_get_section_table): Make static.
8777 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8778 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8779 * inferior.c (remove_inferior_command, add_inferior_command)
8780 (clone_inferior_command): Make static.
8781 * linux-nat.c (linux_nat_thread_address_space)
8782 (linux_nat_core_of_thread): Make static.
8783 * linux-tdep.c (_initialize_linux_tdep): Declare.
8784 * objc-lang.c (_initialize_objc_lang): Declare.
8785 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8786 Make static.
8787 (_initialize_opencl_language): Declare.
8788 * record.c (_initialize_record): Declare.
8789 * remote.c (demand_private_info, remote_get_tib_address)
8790 (remote_supports_cond_tracepoints)
8791 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8792 Make static.
8793 * skip.c (_initialize_step_skip): Declare.
8794 * symtab.c (skip_prologue_using_lineinfo): Make static.
8795 * tracepoint.c (delete_trace_state_variable)
8796 (trace_variable_command, delete_trace_variable_command)
8797 (get_uploaded_tsv, find_matching_tracepoint_location)
8798 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8799 Make static.
8800 * value.c (pack_unsigned_long): Make static.
8801 * varobj.c (varobj_ensure_python_env): Make static.
8802 * windows-tdep.c (_initialize_windows_tdep): Declare.
8803 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8804
8805 2012-03-01 Pedro Alves <palves@redhat.com>
8806
8807 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8808 gdbarch parameter.
8809 (linux_init_abi): Install it as has_shared_address_space gdbarch
8810 callback.
8811
8812 2012-03-01 Pedro Alves <palves@redhat.com>
8813
8814 * observer.c (observer_test_first_notification_function)
8815 (observer_test_second_notification_function)
8816 (observer_test_third_notification_function): Add declarations.
8817
8818 2012-03-01 Pedro Alves <palves@redhat.com>
8819
8820 * common/signals.c (default_target_signal_to_host)
8821 (default_target_signal_from_host): Move ...
8822 * arch-utils.c: ... here.
8823 * arch-utils.h (default_target_signal_to_host)
8824 (default_target_signal_from_host): Declare.
8825
8826 * common/signals.c (target_signal_from_command): Move ...
8827 * infrun.c: ... here.
8828 * inferior.h (target_signal_from_command): Declare.
8829 * target.h (target_signal_from_command)
8830 (default_target_signal_from_host, default_target_signal_to_host):
8831 Delete declarations.
8832
8833 * common/signals.c (_initialize_signals): Delete.
8834
8835 2012-03-01 Pedro Alves <palves@redhat.com>
8836
8837 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8838 both __cplusplus and !__cplusplus.
8839
8840 2012-03-01 Pedro Alves <palves@redhat.com>
8841
8842 * psymtab.c (find_and_open_source): Delete declaration.
8843 * source.c (find_and_open_source): Move comment ...
8844 * source.h (find_and_open_source): ... to this new declaration.
8845
8846 2012-03-01 Pedro Alves <palves@redhat.com>
8847
8848 * inline-frame.c: Include inline-frame.h.
8849
8850 2012-03-01 Pedro Alves <palves@redhat.com>
8851
8852 * tui/tui-data.c (set_gen_win_origin): Delete.
8853 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8854 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8855
8856 2012-03-01 Pedro Alves <palves@redhat.com>
8857
8858 * remote.c (encode_actions): Delete declaration.
8859 * tracepoint.c (encode_actions): Make extern.
8860 * tracepoint.h (encode_actions): Declare.
8861
8862 2012-03-01 Pedro Alves <palves@redhat.com>
8863
8864 * python/py-breakpoint.c: Include python.h.
8865 * python/py-continueevent.c (create_continue_event_object): Make
8866 static.
8867 * python/py-lazy-string.c (stpy_get_type): Make static.
8868 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8869 Make static.
8870 * python/py-utils.c (unicode_to_target_python_string): Make
8871 static.
8872 * python/py-value.c: Include python.h.
8873
8874 2012-03-01 Pedro Alves <palves@redhat.com>
8875
8876 * inferior.c (delete_threads_of_inferior): Delete.
8877
8878 2012-03-01 Pedro Alves <palves@redhat.com>
8879
8880 Import fallback definitions from glibc.
8881
8882 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8883 ps_prochandle): Forward declare.
8884 (ps_err_e): Use glibc's comments.
8885 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8886 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8887 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8888 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8889 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8890 (struct ps_prochandle): Adjust comment.
8891
8892 2012-03-01 Pedro Alves <palves@redhat.com>
8893
8894 * ada-lang.c (ada_modulus_from_name): Delete.
8895 * ada-lex.l (lexer_init): Make static.
8896
8897 2012-03-01 Pedro Alves <palves@redhat.com>
8898
8899 PR gdb/13767
8900
8901 * frame.c (read_frame_register_unsigned): New.
8902 * frame.h (read_frame_register_unsigned): Declare.
8903 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8904 Handle it.
8905 (print_i387_control_word): New parameter `control_p'. Handle it.
8906 (i387_print_float_info): Handle unavailable float registers.
8907
8908 2012-03-01 Keith Seitz <keiths@redhat.com>
8909
8910 * linespec.c (decode_line_2): Sort the list of methods
8911 alphabetically before presenting the user with a selection
8912 menu.
8913
8914 2012-03-01 Doug Evans <dje@google.com>
8915
8916 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8917 has_namespace_info.
8918 (dwarf2_read_abbrevs): Remove corresponding initialization.
8919
8920 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8921
8922 * NEWS: Mention new python command class gdb.COMMAND_USER.
8923 * cli/cli-cmds.c (show_user): Print error when used on a python
8924 command.
8925 (init_cli_cmds): Update documentation strings for "show user" and
8926 "set/show max-user-call-depth" to clarify that it does not apply to
8927 python commands.
8928 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8929 error check.
8930 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8931 gdb python api.
8932 * top.c (execute_command): Only execute a user-defined command as a
8933 legacy macro if c->user_commands is set.
8934
8935 2012-03-01 Tom Tromey <tromey@redhat.com>
8936
8937 * valprint.h (struct generic_val_print_decorations): New.
8938 (generic_val_print): Declare.
8939 * valprint.c (generic_val_print): New function.
8940 * p-valprint.c (p_decorations): New global.
8941 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8942 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8943 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8944 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8945 * m2-valprint.c (m2_decorations): New global.
8946 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8947 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8948 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8949 TYPE_CODE_ERROR>: Call generic_val_print.
8950 * f-valprint.c (f_decorations): New global.
8951 (f_val_print): Use print_function_pointer_address.
8952 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8953 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8954 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8955 generic_val_print.
8956 * c-valprint.c (c_decorations): New global.
8957 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8958 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8959 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8960 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8961 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8962 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8963 case.
8964
8965 2012-03-01 Tom Tromey <tromey@redhat.com>
8966
8967 * valprint.c (val_print): Update.
8968 * p-valprint (pascal_val_print): Return void.
8969 * p-lang.h (pascal_val_print): Return void.
8970 * m2-valprint.c (m2_val_print): Return void.
8971 * m2-lang.h (m2_val_print): Return void.
8972 * language.h (struct language_defn) <la_val_print>: Return void.
8973 * language.c (unk_lang_val_print): Return void.
8974 * jv-valprint.c (java_val_print): Return void.
8975 * jv-lang.h (java_val_print): Return void.
8976 * f-valprint.c (f_val_print): Return void.
8977 * f-lang.h (f_val_print): Return void.
8978 * d-valprint.c (d_val_print): Return void.
8979 (dynamic_array_type): Update.
8980 * d-lang.h (d_val_print): Return void.
8981 * c-valprint.c (c_val_print): Return void.
8982 * c-lang.h (c_val_print): Return void.
8983 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8984 void.
8985 * ada-lang.h (ada_val_print): Return void.
8986
8987 2012-03-01 Tom Tromey <tromey@redhat.com>
8988
8989 * value.h (val_print): Return void.
8990 * valprint.c (val_print): Return void.
8991
8992 2012-03-01 Tom Tromey <tromey@redhat.com>
8993
8994 * value.h (common_val_print): Return void.
8995 * valprint.c (common_val_print): Return void.
8996
8997 2012-03-01 Tom Tromey <tromey@redhat.com>
8998
8999 * value.h (value_print): Return void.
9000 * valprint.c (value_print): Return void.
9001 * p-valprint.c (pascal_value_print): Return void.
9002 * p-lang.h (pascal_value_print): Return void.
9003 * language.h (struct language_defn) <la_value_print>: Return
9004 void.
9005 * language.c (unk_lang_value_print): Return void.
9006 * jv-valprint.c (java_value_print): Return void.
9007 * jv-lang.h (java_value_print): Return void.
9008 * f-valprint.c (c_value_print): Don't declare.
9009 Include c-lang.h.
9010 * c-valprint.c (c_value_print): Return void.
9011 * c-lang.h (c_value_print): Return void.
9012 * ada-valprint.c (ada_value_print): Return void.
9013 * ada-lang.h (ada_value_print): Return void.
9014
9015 2012-03-01 Tom Tromey <tromey@redhat.com>
9016
9017 * value.c (value_primitive_field): Handle virtual base classes.
9018
9019 2012-03-01 Tom Tromey <tromey@redhat.com>
9020
9021 * gdbtypes.h (struct vbase): Remove.
9022
9023 2012-03-01 Tom Tromey <tromey@redhat.com>
9024
9025 * c-valprint.c (print_function_pointer_address): Move...
9026 * valprint.c: ... here. Make non-static.
9027 * m2-valprint.c (print_function_pointer_address): Remove.
9028 * valprint.h (print_function_pointer_address): Declare.
9029
9030 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9031
9032 * NEWS: Document the fact that one can provide a condition when
9033 creating an Ada exception catchpoint.
9034
9035 2012-03-01 Tom Tromey <tromey@redhat.com>
9036
9037 * valprint.c (val_print_type_code_flags): Fix placement of
9038 trailing brace.
9039
9040 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9041
9042 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9043 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9044 environment variable before calling update-copyright.
9045
9046 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9047
9048 * gnulib/extra/update-copyright: Update to the latest from
9049 gnulib's git repository.
9050 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9051 variable to 2 instead of 1.
9052
9053 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9054
9055 * varobj.c (c_value_of_variable): Remove dead code.
9056
9057 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9058
9059 * ada-lex.p (processId): Do not modify already encoded IDs.
9060 Update function documentation.
9061
9062 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9063
9064 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9065 "name" with "struct symbol *name_sym".
9066 * ada-exp.y (write_var_or_type): Update call to
9067 ada_find_renaming_symbol.
9068 "name" with "struct symbol *name_sym". Adjust Implementation
9069 accordingly. Adjust the function documentation.
9070
9071 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9072
9073 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9074 * ada-lang.c (ada_find_any_type): Add advance declaration.
9075 Make static. Replace ada_find_any_symbol by
9076 ada_find_any_type_symbol.
9077 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9078 Improve function description. Make static.
9079 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9080 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9081
9082 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9083
9084 * ada-lang.c (struct tag_args): Delete.
9085 (ada_get_tsd_type): Function body moved up in source file.
9086 (ada_tag_name_1, ada_tag_name_2): Delete.
9087 (ada_get_tsd_from_tag): New function.
9088 (ada_tag_name_from_tsd): New function.
9089 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9090 to determine the tag name.
9091
9092 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9093
9094 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9095 declaration.
9096 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9097 function.
9098
9099 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9100
9101 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9102
9103 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9104
9105 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9106 full searches.
9107
9108 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9109
9110 * ada-lang.c (constrained_packed_array_type): If there is a
9111 parallel XA type, use it to determine the array index type.
9112
9113 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9114
9115 * ada-valprint.c (ada_val_print_1): If our value is a reference
9116 to an array descriptor, dereference it before converting it
9117 to a simple array.
9118
9119 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9120
9121 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9122 creating fixed value.
9123 (ada_value_ind, ada_coerce_ref, assign_component)
9124 (ada_evaluate_subexp): Remove call to unwrap_value before
9125 call to ada_to_fixed_value.
9126
9127 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9128
9129 * ada-lang.c (to_fixed_array_type): Set result's type name.
9130
9131 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9132
9133 * ada-lang.c (catch_ada_exception_command_split): Add new
9134 argument cond_string. Add support for condition at end of
9135 "catch exception" commands.
9136 (ada_decode_exception_location): Add new argument cond_string.
9137 Update call to catch_ada_exception_command_split.
9138 (create_ada_exception_catchpoint): Add new argument cond_string.
9139 Set the breakpoint condition if needed.
9140 (catch_ada_exception_command): Update call to
9141 ada_decode_exception_location.
9142 (ada_decode_assert_location): Add function documentation.
9143 Add support for condition at end of "catch assert" command.
9144 (catch_assert_command): Update calls to ada_decode_assert_location
9145 and create_ada_exception_catchpoint.
9146
9147 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9148
9149 Fix disp-step-syscall.exp: fork: single step over fork.
9150 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9151 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9152 comment, change parameters gdbarch and ptid to regcache. Remove
9153 parameter regcache, initialize gdbarch from regcache here.
9154 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9155 New functions.
9156 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9157 instead.
9158 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9159 'syscall'. Make the 'int' check more strict.
9160
9161 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9162
9163 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9164 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9165 (i386_linux_intx80_sysenter_syscall_record): ... here.
9166 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9167 Use the renamed function name.
9168
9169 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9170
9171 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9172 * breakpoint.c (until_break_command): Likewise.
9173 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9174 * infcall.c (call_function_by_hand): Likewise.
9175 * infcmd.c (finish_forward): Likewise.
9176 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9177
9178 2012-02-28 Tristan Gingold <gingold@adacore.com>
9179
9180 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9181 avoid variable assignments inside condition.
9182
9183 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9184
9185 Fix static analysis issue found by cppcheck.
9186 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9187 uninitialized BUF for size 2.
9188
9189 2012-02-27 Chris Dearman <chris@mips.com>
9190 Nathan Froyd <froydnj@codesourcery.com>
9191 Maciej W. Rozycki <macro@codesourcery.com>
9192
9193 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9194 (mips16_instruction_has_delay_slot): Likewise.
9195 (mips_segment_boundary): Likewise.
9196 (mips_adjust_breakpoint_address): Likewise.
9197 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9198
9199 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9200 Maciej W. Rozycki <macro@codesourcery.com>
9201
9202 * infrun.c (handle_inferior_event): Don't proceed through
9203 shared library trampolines if stepping at the machine
9204 instruction level.
9205
9206 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9207
9208 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9209 too.
9210
9211 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9212
9213 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9214 (sh_stub_unwind_sniffer): New functions.
9215 (sh_stub_unwind): New variable.
9216 (sh_gdbarch_init): Wire everything.
9217
9218 2012-02-27 Pedro Alves <palves@redhat.com>
9219
9220 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9221 (linux_nat_post_attach_wait): Adjust to use
9222 linux_proc_pid_is_stopped.
9223 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9224 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9225 based on pid_is_stopped from both linux-nat.c and
9226 gdbserver/linux-low.c, and renamed.
9227
9228 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9229
9230 * remote.c (remote_watchpoint_addr_within_range): New function.
9231 (init_remote_ops): Use it.
9232
9233 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9234
9235 * target.h (target_watchpoint_addr_within_range): Document macro.
9236
9237 2012-02-24 Pedro Alves <palves@redhat.com>
9238
9239 * stack.c (set_last_displayed_sal): Issue internal_error instead
9240 of warning, and issue it after clearing the last displayed sal.
9241
9242 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9243 Pedro Alves <palves@redhat.com>
9244
9245 * breakpoint.c (until_break_command): Install breakpoints after
9246 all frame manipulations.
9247
9248 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9249
9250 * remote.c (remote_supports_cond_breakpoints): New forward
9251 declaration.
9252 (remote_add_target_side_condition): New function.
9253 (remote_insert_breakpoint): Add target-side breakpoint
9254 conditional if supported.
9255 (remote_insert_hw_breakpoint): Likewise.
9256 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9257 hook.
9258
9259 * target.c (update_current_target): Inherit
9260 to_supports_evaluation_of_breakpoint_conditions.
9261 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9262
9263 * target.h (struct target_ops)
9264 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9265 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9266
9267 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9268 (condition_evaluation_both, condition_evaluation_auto,
9269 condition_evaluation_host, condition_evaluation_target,
9270 condition_evaluation_enums, condition_evaluation_mode_1,
9271 condition_evaluation_mode): New static globals.
9272 (translate_condition_evaluation_mode): New function.
9273 (breakpoint_condition_evaluation_mode): New function.
9274 (gdb_evaluates_breakpoint_condition_p): New function.
9275 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9276 (mark_breakpoint_modified): New function.
9277 (mark_breakpoint_location_modified): New function.
9278 (set_condition_evaluation_mode): New function.
9279 (show_condition_evaluation_mode): New function.
9280 (bp_location_compare_addrs): New function.
9281 (get_first_location_gte_addr): New helper function.
9282 (set_breakpoint_condition): Free condition bytecode if locations
9283 has become unconditional. Call mark_breakpoint_modified (...).
9284 (condition_command): Call update_global_location_list (1) for
9285 breakpoints.
9286 (breakpoint_xfer_memory): Use is_breakpoint (...).
9287 (is_breakpoint): New function.
9288 (parse_cond_to_aexpr): New function.
9289 (build_target_condition_list): New function.
9290 (insert_bp_location): Handle target-side conditional
9291 breakpoints and call build_target_condition_list (...).
9292 (update_inserted_breakpoint_locations): New function.
9293 (insert_breakpoint_locations): Handle target-side conditional
9294 breakpoints.
9295 (bpstat_check_breakpoint_conditions): Add comment.
9296 (bp_condition_evaluator): New function.
9297 (bp_location_condition_evaluator): New function.
9298 (print_breakpoint_location): Print information on where the condition
9299 will be evaluated.
9300 (print_one_breakpoint_location): Likewise.
9301 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9302 breakpoint location.
9303 (force_breakpoint_reinsertion): New functions.
9304 (update_global_location_list): Handle target-side breakpoint
9305 conditions.
9306 Reinsert locations that are already inserted if conditions have
9307 changed.
9308 (bp_location_dtor): Free agent expression bytecode.
9309 (disable_breakpoint): Call mark_breakpoint_modified (...).
9310 Call update_global_location_list (...) with parameter 1 for breakpoints.
9311 (disable_command): Call mark_breakpoint_location_modified (...).
9312 Call update_global_location_list (...) with parameter 1 for breakpoints.
9313 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9314 (enable_command): mark_breakpoint_location_modified (...).
9315 (_initialize_breakpoint): Update documentation and add
9316 condition-evaluation breakpoint subcommand.
9317
9318 * breakpoint.h: Include ax.h.
9319 (condition_list): New data structure.
9320 (condition_status): New enum.
9321 (bp_target_info) <cond_list>: New field.
9322 (bp_location) <condition_changed, cond_bytecode>: New fields.
9323 (is_breakpoint): New prototype.
9324
9325 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9326
9327 * remote.c (remote_state) <cond_breakpoints>: New field.
9328 (PACKET_ConditionalBreakpoints): New enum.
9329 (remote_cond_breakpoint_feature): New function.
9330 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9331 (remote_supports_cond_breakpoints): New function.
9332 (_initialize_remote): Add new packet configuration for
9333 target-side conditional breakpoints.
9334
9335 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9336
9337 * NEWS: Mention target-side conditional breakpoint support,
9338 new condition-evaluation breakpoint subcommand and remote
9339 packet extensions.
9340
9341 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9342
9343 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9344 number.
9345
9346 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9347
9348 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9349 (after_prologue): Remove.
9350
9351 2012-02-23 Tom Tromey <tromey@redhat.com>
9352
9353 * jv-valprint.c (java_val_print): Remove dead code.
9354
9355 2012-02-23 Tristan Gingold <gingold@adacore.com>
9356
9357 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9358 known_tasks_element and known_tasks_length fields.
9359 (read_known_tasks_array): Change argument type. Use pointer type
9360 and number of elements from DATA. Adjust.
9361 (read_known_tasks_list): Likewise.
9362 (get_known_tasks_addr): Remove.
9363 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9364 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9365 type and array length. Merge former get_known_tasks_addr code.
9366
9367 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9368
9369 PR backtrace/13716
9370 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9371 it after set_momentary_breakpoint.
9372
9373 2012-02-22 Sterling Augustine <saugustine@google.com>
9374
9375 PR 13689:
9376 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9377
9378 2012-02-22 Gary Benson <gbenson@redhat.com>
9379
9380 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9381 (find_slot_in_mapped_hash): Likewise.
9382
9383 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9384
9385 PR build/13638
9386 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9387 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9388 * configure: Regenerate.
9389
9390 2012-02-21 Tristan Gingold <gingold@adacore.com>
9391 Pedro Alves <palves@redhat.com>
9392
9393 * ia64-tdep.c: Do not include libunwind-ia64.h.
9394 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9395 Include libunwind-ia64.h instead of libunwind.h.
9396 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9397 for libunwind.h existence.
9398 * configure, config.in: Regenerate.
9399
9400 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9401
9402 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9403 instead of value_rtti_target_type.
9404 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9405 instead of value_rtti_target_type.
9406 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9407 value_rtti_target_type.
9408 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9409 (value_rtti_target_type): Rename to ...
9410 (value_rtti_indirect_type): ... here and make it indirect. Update
9411 function comment.
9412 * value.c (readjust_indirect_value_type): New function.
9413 (coerce_ref): Support for enclosing type setting for references
9414 with readjust_indirect_value_type.
9415 * value.h (readjust_value_type): New declaration.
9416 (value_rtti_target_type): Rename to ...
9417 (value_rtti_indirect_type): ... here.
9418
9419 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9420
9421 * MAINTAINERS (Write After Approval): Add myself to the list.
9422
9423 2012-02-20 Doug Evans <dje@google.com>
9424
9425 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9426 Rename objfile_p_char parameter to objfilep.
9427 (build_objfile_section_table): Result is now void. All callers
9428 updated.
9429 * objfiles.h (struct objfile): Tweak comments, whitespace.
9430 (build_objfile_section_table): Update.
9431
9432 * elfread.c (elf_symfile_segments): Fix warning text.
9433
9434 2012-02-20 Tom Tromey <tromey@redhat.com>
9435
9436 PR gdb/13498:
9437 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9438 particular set of file names once.
9439 (dw2_map_symbol_filenames): Likewise.
9440
9441 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9442
9443 Code cleanup.
9444 * main.c (write_files): Remove the declaration.
9445 (external_editor_command): Move the declaration ...
9446 [GDBTK] (external_editor_command): ... here. Fix the comment.
9447
9448 2012-02-20 Tom Tromey <tromey@redhat.com>
9449
9450 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9451 extraneous block.
9452
9453 2012-02-20 Tristan Gingold <gingold@adacore.com>
9454
9455 * darwin-nat.h (enum darwin_msg_state): Add comments.
9456
9457 2012-02-20 Tristan Gingold <gingold@adacore.com>
9458
9459 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9460 value.
9461
9462 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9463
9464 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9465 between function description and implementation.
9466
9467 2012-02-17 Tom Tromey <tromey@redhat.com>
9468
9469 PR python/12070:
9470 * python/py-event.c (event_object_getset): New global.
9471 (event_object_type): Reference it.
9472 * python/py-type.c (field_object_getset): New global.
9473 (field_object_type): Reference it.
9474 * python/python-internal.h (gdb_py_generic_dict): Declare.
9475 * python/py-utils.c (gdb_py_generic_dict): New function.
9476
9477 2012-02-17 Tristan Gingold <gingold@adacore.com>
9478
9479 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9480
9481 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9482
9483 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9484 TYPE_CALLING_CONVENTION annotation.
9485
9486 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9487
9488 * MAINTAINERS: Add rx to target ISA section.
9489 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9490 (ALLDEPFILES): Add rx-tdep.c.
9491
9492 2012-02-16 Tom Tromey <tromey@redhat.com>
9493
9494 * symfile.c (symbol_file_add_main_1): Use inferior's
9495 symfile_flags.
9496 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9497 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9498 inferior.
9499 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9500 inferior.
9501 (follow_exec): Use inferior's symfile_flags.
9502 * inferior.h (struct inferior) <symfile_flags>: New field.
9503
9504 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9505
9506 PR gdb/9734:
9507 * remote-sim.c (gdbsim_create_inferior): Call error() when
9508 sim_create_inferior() fails.
9509
9510 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9511
9512 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9513
9514 2012-02-16 Tom Tromey <tromey@redhat.com>
9515
9516 PR c++/13653:
9517 * thread.c (struct current_thread_cleanup) <was_removable>: New
9518 field.
9519 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9520 (make_cleanup_restore_current_thread): Initialize new field.
9521
9522 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9523
9524 * MAINTAINERS: Add rl78 to target ISA section.
9525 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9526 (ALLDEPFILES): Add rl78-tdep.c.
9527 * NEWS: Mention rl78 as a new target.
9528
9529 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9530
9531 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9532 data.
9533 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9534
9535 2012-02-15 Tom Tromey <tromey@redhat.com>
9536
9537 PR gdb/12659:
9538 * infcmd.c (registers_info): Print just the current register's
9539 name.
9540
9541 2012-02-15 Tom Tromey <tromey@redhat.com>
9542
9543 * python/py-symbol.c (sympy_value): Use _().
9544
9545 2012-02-15 Pedro Alves <palves@redhat.com>
9546
9547 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9548 output to be like native targets'.
9549 (remote_pid_to_str): Special case the null ptid.
9550
9551 2012-02-14 Stan Shebs <stan@codesourcery.com>
9552
9553 * NEWS: Mention enable count command.
9554 * breakpoint.h (struct breakpoint): New field enable_count.
9555 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9556 (enable_breakpoint): Add arg to call.
9557 (struct disp_data): New struct.
9558 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9559 (do_map_enable_once_breakpoint): Create a struct and pass it.
9560 (do_map_enable_delete_breakpoint): Ditto.
9561 (do_map_enable_count_breakpoint): New function.
9562 (enable_count_command): New function.
9563 (bpstat_stop_status): Decrement enable_count.
9564 (print_one_breakpoint_location): Report enable count.
9565 (_initialize_breakpoint): Add enable count command.
9566
9567 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9568
9569 * rl78-tdep.c (reggroups.h): Include.
9570 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9571 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9572 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9573 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9574 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9575 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9576 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9577 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9578 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9579 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9580 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9581 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9582 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9583 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9584 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9585 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9586 beginning of register list.
9587 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9588 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9589 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9590 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9591 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9592 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9593 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9594 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9595 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9596 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9597 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9598 the pseudo registers. Rearrange other pseudo registers too so
9599 that the bank registers appear at the end.
9600 (rl78_register_type): Account for the fact that the byte sized
9601 bank registers are now pseudo-registers.
9602 (rl78_register_name): Rearrange the register name array. Make
9603 initial set of raw banked registers inaccessible.
9604 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9605 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9606 case for copying bytes back and forth between raw and pseudo
9607 versions of the banked registers. Update other cases to reflect
9608 the changed names.
9609 (rl78_return_value): Update to account for changed names of
9610 raw registers.
9611 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9612 rl78_register_sim_regno().
9613
9614 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9615
9616 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9617 the name parameter being passed to find_pc_partial_function().
9618
9619 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9620
9621 * MAINTAINERS: Step down from being ia64 target maintainer.
9622
9623 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9624
9625 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9626 compilation warning.
9627
9628 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9629
9630 Fix crash on loaded shlibs without loaded exec_bfd.
9631 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9632 (set_section_command): Replace exec_bfd by p->bfd.
9633
9634 2012-02-10 Tom Tromey <tromey@redhat.com>
9635
9636 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9637 when we have a C++ qualified name.
9638
9639 2012-02-10 Pedro Alves <palves@redhat.com>
9640
9641 * inferior.c (inferior_pid_to_str): New.
9642 (print_inferior, inferior_command): Use it.
9643
9644 2012-02-10 Pedro Alves <palves@redhat.com>
9645
9646 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9647 the test CFLAGS.
9648 * configure: Regenerate.
9649
9650 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9651
9652 * linespec.c (decode_line_internal): Fix comment correctness.
9653
9654 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9655
9656 PR gdb/12953
9657 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9658 * amd64bsd-nat.c: Add support for debug registers (adapted from
9659 i386bsd-nat.c).
9660 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9661 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9662 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9663 (amd64bsd_dr_get_control): New functions.
9664 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9665 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9666 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9667 watchpoints initialization.
9668 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9669
9670 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9671
9672 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9673 flds_bnds.fields.
9674 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9675
9676 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9677
9678 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9679
9680 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9681
9682 * language.h (symbol_name_cmp_ftype): Renames
9683 symbol_name_match_p_ftype.
9684 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9685 la_get_symbol_name_match_p.
9686 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9687 ada_get_symbol_name_match_p. Update comment.
9688 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9689 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9690 Renames symbol_name_match_p. Update field type.
9691 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9692 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9693 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9694 "la_get_symbol_name_cmp" in comments.
9695 * language.c: Likewise.
9696
9697 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9698
9699 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9700 %eflags offset.
9701 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9702 (amd64_sol2_gregset32_reg_offs): Likewise.
9703
9704 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9705
9706 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9707 of the returned BFD is allocated by GDB.
9708
9709 2012-02-07 Tom Tromey <tromey@redhat.com>
9710
9711 PR python/12027:
9712 * python/python-internal.h (frame_object_type): Declare.
9713 * python/py-symbol.c (sympy_needs_frame): New function.
9714 (sympy_value): New function.
9715 (symbol_object_getset): Add "needs_frame".
9716 (symbol_object_methods): Add "value".
9717 * python/py-frame.c (frame_object_type): No longer static.
9718
9719 2012-02-07 Tom Tromey <tromey@redhat.com>
9720
9721 PR python/13599:
9722 * python/py-symbol.c (sympy_line): New function.
9723 (symbol_object_getset): Add "line".
9724
9725 2012-02-07 Tom Tromey <tromey@redhat.com>
9726
9727 * charset.c (find_charset_names): Check 'in' against NULL.
9728
9729 2012-02-06 Doug Evans <dje@google.com>
9730
9731 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9732 and fields.name members from char * to const char *. All uses updated.
9733 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9734 from char * to const char *. All uses updated.
9735 (type_name_no_tag): Update.
9736 (lookup_unsigned_typename, lookup_signed_typename): Update.
9737 * gdbtypes.c (type_name_no_tag): Change result type
9738 from char * to const char *. All callers updated.
9739 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9740 name parameter from char * to const char *.
9741 * symtab.h (struct cplus_specific): Change type of demangled_name
9742 member from char * to const char *. All uses updated.
9743 (struct general_symbol_info): Change type of name and
9744 mangled_lang.demangled_name members from char * to const char *.
9745 All uses updated.
9746 (symbol_get_demangled_name, symbol_natural_name): Update.
9747 (symbol_demangled_name, symbol_search_name): Update.
9748 * symtab.c (symbol_get_demangled_name): Change result type
9749 from char * to const char *. All callers updated.
9750 (symbol_natural_name, symbol_demangled_name): Ditto.
9751 (symbol_search_name): Ditto.
9752 (completion_list_add_name): Change type of symname,sym_text,
9753 text,word parameters from char * to const char *.
9754 (completion_list_objc_symbol): Change type of sym_text,
9755 text,word parameters from char * to const char *.
9756 * ada-lang.c (find_struct_field): Change type of name parameter
9757 from char * to const char *.
9758 (encoded_ordered_before): Similarly for N0,N1 parameters.
9759 (old_renaming_is_invisible): Similarly for function_name parameter.
9760 (ada_type_name): Change result type from char * to const char *.
9761 All callers updated.
9762 * ada-lang.h (ada_type_name): Update.
9763 * buildsym.c (hashname): Change type of name parameter
9764 from char * to const char *.
9765 * buildsym.h (hashname): Update.
9766 * dbxread.c (end_psymtab): Change type of include_list parameter
9767 from char ** to const char **.
9768 * dwarf2read.c (determine_prefix): Change result type
9769 from char * to const char *. All callers updated.
9770 * f-lang.c (find_common_for_function): Change type of name, funcname
9771 parameters from char * to const char *.
9772 * f-lang.c (find_common_for_function): Update.
9773 * f-valprint.c (list_all_visible_commons): Change type of funcname
9774 parameters from char * to const char *.
9775 * gdbarch.sh (static_transform_name): Change type of name parameter
9776 and result from char * to const char *.
9777 * gdbarch.c: Regenerate.
9778 * gdbarch.h: Regenerate.
9779 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9780 of name parameter from char * to const char *.
9781 * jv-lang.c (java_primitive_type_from_name): Ditto.
9782 (java_demangled_signature_length): Similarly for signature parameter.
9783 (java_demangled_signature_copy): Ditto.
9784 (java_demangle_type_signature): Ditto.
9785 * jv-lang.h (java_primitive_type_from_name): Update.
9786 (java_demangle_type_signature): Update.
9787 * objc-lang.c (specialcmp): Change type of a,b parameters
9788 from char * to const char *.
9789 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9790 from char * to const char *. All callers updated.
9791 * p-lang.h (is_pascal_string_type): Update.
9792 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9793 of name parameter from char * to const char *.
9794 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9795 * utils.c (fprintf_symbol_filtered): Ditto.
9796 * defs.h (fprintf_symbol_filtered): Update.
9797 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9798 * stabsread.h (end_psymtab): Update.
9799 * stack.c (find_frame_funname): Change type of funname parameter
9800 from char ** to const char **.
9801 * stack.h (find_frame_funname): Update.
9802 * typeprint.c (type_print): Change type of varstring parameter
9803 from char * to const char *.
9804 * value.h (type_print): Update.
9805 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9806 from char * to const char *. All callers updated.
9807 (xcoff_end_psymtab): Change type of include_list parameter
9808 from char ** to const char **. All callers updated.
9809 (swap_sym): Similarly for name parameter. All callers updated.
9810 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9811 Use xstrdup.
9812 (process_coff_symbol): Use xstrdup.
9813 * stabsread.c (stabs_method_name_from_physname): Renamed from
9814 update_method_name_from_physname. Change result type from void
9815 to char *. All callers updated.
9816 (read_member_functions): In has_destructor case, store name in objfile
9817 obstack instead of malloc space. In !has_stub case, fix mem leak.
9818
9819 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9820
9821 * configure: Rebuild.
9822 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9823 LDFLAGS.
9824
9825 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9826
9827 * configure.tgt (rl78-*-elf): New target.
9828 * rl78-tdep.c: New file.
9829
9830 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9831
9832 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9833 and continue the loop. Add QUIT statement.
9834
9835 2012-02-03 Tom Tromey <tromey@redhat.com>
9836
9837 PR gdb/13596:
9838 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9839 bfd_lookup_symbol_from_symtab.
9840 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9841 gdb_bfd_lookup_symbol_from_symtab.
9842
9843 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9844
9845 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9846 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9847 symbol. Add assertion that sym2 is never NULL.
9848
9849 2012-02-02 Doug Evans <dje@google.com>
9850
9851 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9852 "name" parameter to const char ** from char **. All callers updated.
9853 (find_pc_partial_function): Ditto.
9854 (cache_pc_function_name): Change type to const char * from char *.
9855 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9856 (find_pc_partial_function): Update.
9857 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9858 type of "name" parameter to const char * from char *.
9859 All uses updated.
9860 * arch-utils.c (generic_in_solib_return_trampoline): Change
9861 type of "name" parameter to const char * from char *.
9862 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9863 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9864 type of "name" parameter to const char * from char *.
9865 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9866 * gdbarch.c: Regenerate.
9867 * gdbarch.h: Regenerate.
9868 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9869 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9870 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9871 type of "name" parameter to const char * from char *.
9872 * skip.c (skip_function_pc): Ditto.
9873 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9874 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9875 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9876 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9877 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9878 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9879 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9880 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9881 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9882
9883 2012-02-02 Pedro Alves <palves@redhat.com>
9884
9885 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9886 the current inferior has no execution. Make sure the current
9887 remote process matches gdb's current inferior.
9888
9889 2012-02-02 Tom Tromey <tromey@redhat.com>
9890
9891 PR gdb/13405:
9892 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9893 read-only memory.
9894
9895 2012-02-02 Tom Tromey <tromey@redhat.com>
9896
9897 PR gdb/9307:
9898 * symtab.c (lookup_language_this): Set block_found.
9899
9900 2012-02-01 Tom Tromey <tromey@redhat.com>
9901
9902 PR gdb/13431:
9903 * jit.c (struct jit_inferior_data): Rewrite.
9904 (struct jit_objfile_data): New.
9905 (get_jit_objfile_data): New function.
9906 (add_objfile_entry): Update.
9907 (jit_read_descriptor): Return int. Replace descriptor_addr
9908 argument with inf_data. Update. Don't call error.
9909 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9910 descriptor here.
9911 (jit_inferior_init): Don't look up descriptor. Don't call error.
9912 (jit_reset_inferior_data_and_breakpoints)
9913 (jit_inferior_created_observer): Remove.
9914 (jit_inferior_exit_hook): Update.
9915 (jit_executable_changed_observer): Remove.
9916 (jit_event_handler): Update.
9917 (free_objfile_data): Reset inferior data if needed.
9918 (_initialize_jit): Update.
9919
9920 2012-02-01 Tom Tromey <tromey@redhat.com>
9921
9922 * jit.c (bfd_open_from_target_memory): Move higher in file.
9923
9924 2012-02-01 Tristan Gingold <gingold@adacore.com>
9925
9926 * libunwind-frame.c (libunwind_load): Display message if dlopen
9927 failed.
9928
9929 2012-02-01 Gary Benson <gbenson@redhat.com>
9930
9931 * symtab.h (symbol_found_callback_ftype): New typedef.
9932 (iterate_over_symbols): Use the above.
9933 * symtab.c (iterate_over_symbols): Likewise.
9934 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9935 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9936 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9937 (iterate_name_matcher): Document return values.
9938 (collect_one_symbol): Likewise.
9939 (collect_function_symbols): Likewise.
9940 (collect_symbols): Likewise.
9941
9942 2012-02-01 Tom Tromey <tromey@redhat.com>
9943
9944 * ada-lang.c (resolve_subexp): Update.
9945 (ada_lookup_symbol_list): Add 'full_search' argument.
9946 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9947 ada_lookup_symbol_list.
9948 (ada_lookup_encoded_symbol): Update.
9949 (get_var_value): Update.
9950 * ada-exp.y (block_lookup): Update.
9951 (write_var_or_type): Update.
9952 (write_name_assoc): Update.
9953 * ada-lang.h (ada_lookup_symbol_list): Update.
9954
9955 2012-01-31 Tom Tromey <tromey@redhat.com>
9956
9957 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9958 comment.
9959
9960 2012-01-31 Doug Evans <dje@google.com>
9961
9962 * symtab.h: Remove outdated comment.
9963 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9964
9965 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9966
9967 Fix build error in Darwin port.
9968 * i386-darwin-nat.c: Include i386-nat.h.
9969
9970 2012-01-30 Tom Tromey <tromey@redhat.com>
9971
9972 PR breakpoints/13568:
9973 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9974 argument. Check for recursive includes.
9975 (dwarf_decode_macros): Create an include hash.
9976
9977 2012-01-30 Michael Eager <eager@eagercon.com>
9978
9979 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9980 * ppc-linux-tdep.c: Include glibc-tdep.h.
9981 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9982 (powerpc_linux_in_plt_stub): New function.
9983 (powerpc_linux_in_dynsym_resolve_code): New function.
9984 (ppc_skip_trampoline_code): New function.
9985 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9986 Use glibc_skip_solib_resolver.
9987
9988 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9989
9990 Code cleanup: Make 1440 bytes of data segment read-only.
9991 * arch-utils.c (endian_enum): Make it const char *const [].
9992 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9993 Likewise.
9994 * breakpoint.c (always_inserted_enums): Likewise.
9995 * cli/cli-cmds.c (script_ext_enums): Likewise.
9996 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9997 enumlist parameter const char *const *.
9998 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9999 const char *const *.
10000 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10001 parameter const char *const *.
10002 * cris-tdep.c (cris_modes): Make it const char *const [].
10003 * filesystem.c (target_file_system_kinds): Likewise.
10004 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10005 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10006 (can_use_displaced_stepping_enum, scheduler_enums)
10007 (exec_direction_names): Likewise.
10008 * language.c (_initialize_language): Make the type_or_range_names and
10009 case_sensitive_names variables const char *const [].
10010 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10011 * python/python.c (python_excp_enums): Likewise.
10012 * remote.c (interrupt_sequence_modes): Likewise.
10013 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10014 * serial.c (logbase_enums): Likewise.
10015 * sh-tdep.c (sh_cc_enum): Likewise.
10016 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10017 Likewise.
10018 * symtab.c (multiple_symbols_modes): Likewise.
10019 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10020 Likewise.
10021 * utils.c (internal_problem_modes): Likewise.
10022
10023 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10024
10025 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10026 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10027 result.
10028
10029 2012-01-27 Doug Evans <dje@google.com>
10030
10031 * configure.ac (with_python): Fix absolute path handling for win32.
10032 * configure: Regenerate.
10033
10034 2012-01-26 Doug Evans <dje@google.com>
10035
10036 * symtab.c: Whitespace cleanup, no code changes.
10037
10038 * symtab.c (lookup_symbol_in_language): Improve comment.
10039 (lookup_symbol_aux): Fix comment.
10040
10041 * psymtab.c (add_psymbol_to_list): Result is now "void".
10042 * psympriv.h (add_psymbol_to_list): Update.
10043
10044 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10045
10046 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10047
10048 Do not open script filenames twice.
10049 * cli/cli-cmds.c (source_script_from_stream): Pass to
10050 source_python_script also STREAM.
10051 * python/py-auto-load.c (source_section_scripts): Pass to
10052 source_python_script_for_objfile also STREAM.
10053 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10054 also INPUT.
10055 * python/python-internal.h (source_python_script_for_objfile): New
10056 parameter file, rename parameter file to filename.
10057 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10058 instead if !_WIN32. Update the function comment.
10059 (source_python_script, source_python_script_for_objfile)
10060 (source_python_script): New parameter file, rename parameter file to
10061 filename. Pass FILENAME to python_run_simple_file.
10062 * python/python.h (source_python_script): New parameter file, rename
10063 parameter file to filename.
10064
10065 2012-01-26 Pedro Alves <palves@redhat.com>
10066
10067 * corelow.c (core_has_fake_pid): Delete.
10068 (core_close): Delete references to `core_has_fake_pid'.
10069 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10070 (core_open): Delete references to `core_has_fake_pid'.
10071 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10072 the removed global.
10073
10074 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10075
10076 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10077 Remove language parameter from name_matcher. Adjust the comment.
10078 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10079 Remove language parameter.
10080 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10081 * linespec.c (iterate_name_matcher): Likewise.
10082 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10083 name_matcher. Adjust call accordingly.
10084 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10085 (maintenance_check_symtabs): Adjust type of parameter "fun".
10086 * psymtab.h (maintenance_check_symtabs): Likewise.
10087
10088 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10089
10090 * language.h (symbol_name_match_p_ftype): New typedef.
10091 (struct language_defn): Replace field la_symbol_name_compare
10092 by la_get_symbol_name_match_p.
10093 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10094 (ada_language_defn): Use it.
10095 * linespec.c (struct symbol_matcher_data): New type.
10096 (iterate_name_matcher): Rewrite.
10097 (iterate_over_all_matching_symtabs): Pass a pointer to
10098 a symbol_matcher_data struct to expand_symtabs_matching
10099 instead of just the lookup name.
10100 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10101 opencl-lang.c, p-lang.c, language.c: Delete field
10102 la_symbol_name_compare, and replace by NULL for new field
10103 la_get_symbol_name_match_p.
10104 * symfile.h (struct quick_symbol_functions): Update comment.
10105
10106 2012-01-25 Tom Tromey <tromey@redhat.com>
10107
10108 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10109 dereferencing.
10110
10111 2012-01-24 Tom Tromey <tromey@redhat.com>
10112
10113 PR symtab/12406:
10114 * solib.c (update_solib_list): Update the program space's
10115 added_solibs and deleted_solibs fields.
10116 * progspace.h (struct program_space) <added_solibs,
10117 deleted_solibs>: New fields.
10118 (clear_program_space_solib_cache): Declare.
10119 * progspace.c (release_program_space): Call
10120 clear_program_space_solib_cache.
10121 (clear_program_space_solib_cache): New function.
10122 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10123 bpstat_stop_status. Use handle_solib_event.
10124 * breakpoint.c: Include gdb_regex.h.
10125 (print_solib_event): New function.
10126 (bpstat_print): Use print_solib_event.
10127 (bpstat_stop_status): Add special case for bp_shlib_event.
10128 (handle_solib_event): New function.
10129 (bpstat_what): Use handle_solib_event.
10130 (struct solib_catchpoint): New.
10131 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10132 (breakpoint_hit_catch_solib, check_status_catch_solib)
10133 (print_it_catch_solib, print_one_catch_solib)
10134 (print_mention_catch_solib, print_recreate_catch_solib): New
10135 functions.
10136 (catch_solib_breakpoint_ops): New global.
10137 (catch_load_or_unload, catch_load_command_1)
10138 (catch_unload_command_1): New functions.
10139 (internal_bkpt_check_status): Add special case for
10140 bp_shlib_event.
10141 (internal_bkpt_print_it): Use print_solib_event.
10142 (initialize_breakpoint_ops): Initialize
10143 catch_solib_breakpoint_ops.
10144 (_initialize_breakpoint): Register "catch load" and "catch
10145 unload".
10146 * breakpoint.h (handle_solib_event): Declare.
10147 * NEWS: Add entry for "catch load" and "catch unload".
10148
10149 2012-01-24 Tom Tromey <tromey@redhat.com>
10150
10151 * ada-lang.c: Include gdb_vecs.h.
10152 * charset.c: Include gdb_vecs.h.
10153 * tracepoint.h: Include gdb_vecs.h.
10154 * gdb_vecs.h: New file.
10155
10156 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10157
10158 * breakpoint.c (breakpoint_hit_catch_fork)
10159 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10160 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10161 * infrun.c (inferior_has_forked, inferior_has_vforked)
10162 (inferior_has_execd, inferior_has_called_syscall): Delete.
10163 (handle_syscall_event): Get syscall_number from the execution
10164 control state's wait status.
10165 (wait_for_inferior): Don't clear syscall_number.
10166
10167 2012-01-24 Pedro Alves <palves@redhat.com>
10168
10169 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10170 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10171 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10172 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10173 `ws' parameter.
10174 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10175 false for events other than TARGET_SIGNAL_TRAP.
10176 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10177 Add `ws' parameter.
10178 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10179 events other than TARGET_SIGNAL_TRAP.
10180 (tracepoint_breakpoint_hit): Add `ws' parameter.
10181 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10182 parameter.
10183 (bpstat_stop_status): Same.
10184 (pc_at_non_inline_function): Same.
10185 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10186 to pass the current event's waitstatus to bpstat_stop_status
10187 and pc_at_non_inline_function.
10188
10189 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10190
10191 Code cleanup.
10192 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10193 Update the function comment for it.
10194 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10195 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10196 for STREAM.
10197
10198 2012-01-24 Pedro Alves <palves@redhat.com>
10199
10200 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10201 outside `bs->stop' block.
10202 (bpstat_what): Rework bp_shlib_event handling.
10203 (internal_bkpt_check_status): If the breakpoint is a
10204 bp_shlib_event, then set bs->stop and bs->print if
10205 stop_on_solib_events is set.
10206
10207 2012-01-24 Gary Benson <gbenson@redhat.com>
10208
10209 Delete #if 0'd out code.
10210 * stack.c (print_frame_label_vars): Remove.
10211 (catch_info): Likewise.
10212 (_initialize_stack): Remove "info catch" command.
10213 * NEWS: Mention the above.
10214
10215 2012-01-24 Pedro Alves <palves@redhat.com>
10216
10217 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10218 it.
10219 (remote_notice_new_inferior): If the remote end doesn't support
10220 the multiprocess extensions, then the PID is fake.
10221 (add_current_inferior_and_thread): New.
10222 (remote_start_remote): Use it.
10223 (extended_remote_attach_1): Adjust.
10224 (extended_remote_create_inferior_1): Use
10225 add_current_inferior_and_thread.
10226
10227 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10228
10229 Fix watchpoints to be specific for each inferior.
10230 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10231 current_program_space.
10232 * i386-nat.c (i386_inferior_data_cleanup): New.
10233 (i386_inferior_data_get): Replace variable inf_data_local by an
10234 inferior_data call.
10235 (i386_use_watchpoints): Initialize i386_inferior_data.
10236 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10237 specific iterate_over_lwps.
10238
10239 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10240
10241 Fix watchpoints across inferior fork.
10242 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10243 comment for linux_nat_iterate_watchpoint_lwps.
10244 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10245 linux_nat_iterate_watchpoint_lwps.
10246 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10247 * i386-linux-nat.c (update_debug_registers_callback): Update the
10248 comment for linux_nat_iterate_watchpoint_lwps.
10249 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10250 linux_nat_iterate_watchpoint_lwps.
10251 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10252 * i386-nat.c: Include inferior.h.
10253 (dr_mirror): Remove.
10254 (i386_inferior_data, struct i386_inferior_data)
10255 (i386_inferior_data_get): New.
10256 (i386_debug_reg_state): Use i386_inferior_data_get.
10257 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10258 (i386_insert_watchpoint, i386_remove_watchpoint)
10259 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10260 (i386_remove_hw_breakpoint): New variable state, use
10261 i386_debug_reg_state instead of DR_MIRROR.
10262 * linux-nat.c (delete_lwp): New declaration.
10263 (num_lwps): Move here from downwards.
10264 (delete_lwp_cleanup): New.
10265 (linux_child_follow_fork): Create new child_lp, call
10266 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10267 PTRACE_DETACH.
10268 (num_lwps): Move upwards.
10269 (linux_nat_iterate_watchpoint_lwps): New.
10270 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10271 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10272
10273 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10274
10275 GDB 7.4 released.
10276
10277 2012-01-23 Pedro Alves <palves@redhat.com>
10278
10279 * top.c (caution): Rename to ...
10280 (confirm): ... this.
10281 (show_caution): Rename to ...
10282 (show_confirm): ... this.
10283 (quit_cover): Adjust.
10284 (init_main): Adjust.
10285 * top.h (caution): Rename to ...
10286 (confirm): ... this.
10287 * utils.c (internal_vproblem, defaulted_query): Adjust.
10288
10289 2012-01-23 Pedro Alves <palves@redhat.com>
10290
10291 * top.c (caution): Update comment.
10292 (execute_command): Don't consider the current value of `caution'.
10293
10294 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10295
10296 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10297
10298 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10299
10300 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10301 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10302 * target.c (target_fileio_pwrite): Remove buffer address from
10303 debug output.
10304 (target_fileio_pread): Likewise.
10305
10306 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10307
10308 * NEWS: Document remote "info proc" and "generate-core-file".
10309
10310 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10311
10312 * gdbarch.sh (find_memory_regions): New callback.
10313 * gdbarch.c, gdbarch.h: Regenerate.
10314
10315 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10316 callback before falling back to target method.
10317
10318 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10319 (linux_target_install_ops): No longer install it.
10320
10321 * linux-tdep.c (linux_find_memory_regions): New function.
10322 (linux_init_abi): Install it.
10323
10324 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10325
10326 * gdbarch.sh (make_corefile_notes): New architecture callback.
10327 * gdbarch.c: Regenerate.
10328 * gdbarch.h: Likewise.
10329
10330 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10331 before target_make_corefile_notes. If NULL is returned, the
10332 target does not support core file generation.
10333
10334 * linux-nat.c: Include "linux-tdep.h".
10335 (find_signalled_thread, find_stop_signal): Remove.
10336 (linux_nat_do_thread_registers): Likewise.
10337 (struct linux_nat_corefile_thread_data): Likewise.
10338 (linux_nat_corefile_thread_callback): Likewise.
10339 (iterate_over_spus): Likewise.
10340 (struct linux_spu_corefile_data): Likewise.
10341 (linux_spu_corefile_callback): Likewise.
10342 (linux_spu_make_corefile_notes): Likewise.
10343 (linux_nat_collect_thread_registers): New function.
10344 (linux_nat_make_corefile_notes): Replace contents by call to
10345 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10346 as native-only callback.
10347
10348 * linux-tdep.h: Include "bfd.h".
10349 (struct regcache): Add forward declaration.
10350 (linux_collect_thread_registers_ftype): New typedef.
10351 (linux_make_corefile_notes): Add prototype.
10352 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10353 "regset.h", and "elf-bfd.h".
10354 (find_signalled_thread, find_stop_signal): New functions.
10355 (linux_spu_make_corefile_notes): Likewise.
10356 (linux_collect_thread_registers): Likewise.
10357 (struct linux_corefile_thread_data): New data structure.
10358 (linux_corefile_thread_callback): New funcion.
10359 (linux_make_corefile_notes): Likewise.
10360 (linux_make_corefile_notes_1): Likewise.
10361 (linux_init_abi): Install it.
10362
10363 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10364
10365 * gdbarch.sh (info_proc): New callback.
10366 * gdbarch.c, gdbarch.h: Regenerate.
10367
10368 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10369 before falling back to the target info_proc callback.
10370
10371 * linux-nat.c: Do not include "cli/cli-utils.h".
10372 (linux_nat_info_proc): Remove.
10373 (linux_target_install_ops): No longer install it.
10374
10375 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10376 (read_mapping): New function.
10377 (linux_info_proc): Likewise.
10378 (linux_init_abi): Install it.
10379
10380 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10381
10382 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10383 * infcmd.c: (info_proc_cmd_1): New function.
10384 (info_proc_cmd): New function, moved here from equivalent routine
10385 orignally in linux-nat.c.
10386 (info_proc_cmd_mappings): Likewise.
10387 (info_proc_cmd_stat): Likewise.
10388 (info_proc_cmd_status): Likewise.
10389 (info_proc_cmd_cwd): Likewise.
10390 (info_proc_cmd_cmdline): Likewise.
10391 (info_proc_cmd_exe): Likewise.
10392 (info_proc_cmd_all): Likewise.
10393 (_initialize_infcmd): Install "info proc" command and subcommands.
10394
10395 * target.h (struct target_ops): Add to_info_proc.
10396 (target_info_proc): Add prototype.
10397 * target.c (target_info_proc): New function.
10398
10399 * procfs.c (procfs_info_proc): Add prototype.
10400 (info_proc_cmd): Rename into ...
10401 (procfs_info_proc): ... this. Update argument types as appropriate
10402 for a to_info_proc implementation. Handle "what" argument.
10403 (procfs_target): Install procfs_info_proc.
10404 (_initialize_procfs): No longer install "info proc" command.
10405
10406 * linux-nat.c: (enum info_proc_what): Remove.
10407 (linux_nat_info_proc_cmd_1): Rename into ...
10408 (linux_nat_info_proc): ... this. Update argument types as appropriate
10409 for a to_info_proc implementation.
10410 (linux_nat_info_proc_cmd): Remove.
10411 (linux_nat_info_proc_cmd_mappings): Likewise.
10412 (linux_nat_info_proc_cmd_stat): Likewise.
10413 (linux_nat_info_proc_cmd_status): Likewise.
10414 (linux_nat_info_proc_cmd_cwd): Likewise.
10415 (linux_nat_info_proc_cmd_cmdline): Likewise.
10416 (linux_nat_info_proc_cmd_exe): Likewise.
10417 (linux_nat_info_proc_cmd_all): Likewise.
10418 (linux_target_install_ops): Install linux_nat_info_proc.
10419 (_initialize_linux_nat): No longer install "info proc" command
10420 and subcommands.
10421
10422 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10423
10424 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10425 * config.in, configure: Regenerate.
10426
10427 * target.h (struct target_ops): Add to_fileio_readlink.
10428 (target_fileio_readlink): Add prototype.
10429 * target.c (target_fileio_readlink): New function.
10430
10431 * inf-child.c: Conditionally include <sys/param.h>.
10432 (inf_child_fileio_readlink): New function.
10433 (inf_child_target): Install it.
10434
10435 * remote.c (PACKET_vFile_readlink): New enum value.
10436 (remote_hostio_readlink): New function.
10437 (init_remote_ops): Install it.
10438 (_initialize_remote): Handle vFile:readlink packet type.
10439
10440 2012-01-20 Pedro Alves <palves@redhat.com>
10441 Ulrich Weigand <ulrich.weigand@linaro.org>
10442
10443 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10444 * config.in, configure: Regenerate.
10445
10446 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10447 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10448 (target_fileio_open): Add prototype.
10449 (target_fileio_pwrite): Likewise.
10450 (target_fileio_pread): Likewise.
10451 (target_fileio_close): Likewise.
10452 (target_fileio_unlink): Likewise.
10453 (target_fileio_read_alloc): Likewise.
10454 (target_fileio_read_stralloc): Likewise.
10455
10456 * target.c: Include "gdb/fileio.h".
10457 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10458 (default_fileio_target): New function.
10459 (target_fileio_open): Likewise.
10460 (target_fileio_pwrite): Likewise.
10461 (target_fileio_pread): Likewise.
10462 (target_fileio_close): Likewise.
10463 (target_fileio_unlink): Likewise.
10464 (target_fileio_close_cleanup): Likewise.
10465 (target_fileio_read_alloc_1): Likewise.
10466 (target_fileio_read_alloc): Likewise.
10467 (target_fileio_read_stralloc): Likewise.
10468
10469 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10470 <fcntl.h>, and <unistd.h>.
10471 (inf_child_fileio_open_flags_to_host): New function.
10472 (inf_child_errno_to_fileio_error): Likewise.
10473 (inf_child_fileio_open): Likewise.
10474 (inf_child_fileio_pwrite): Likewise.
10475 (inf_child_fileio_pread): Likewise.
10476 (inf_child_fileio_close): Likewise.
10477 (inf_child_fileio_unlink): Likewise.
10478 (inf_child_target): Install to_fileio routines.
10479
10480 * remote.c (init_remote_ops): Install to_fileio routines.
10481
10482 2012-01-20 Pedro Alves <palves@redhat.com>
10483 Ulrich Weigand <ulrich.weigand@linaro.org>
10484
10485 * remote.c (remote_multi_process_p): Only check for multi-process
10486 protocol feature, do not check for extended protocol.
10487 (remote_supports_multi_process): Check for extended protocol here.
10488 (set_general_process): Likewise.
10489 (extended_remote_kill): Likewise.
10490 (remote_pid_to_str): Likewise.
10491 (remote_query_supported): Always query multiprocess mode.
10492
10493 2012-01-20 Pedro Alves <palves@redhat.com>
10494 Ulrich Weigand <ulrich.weigand@linaro.org>
10495
10496 * inferior.h (struct inferior): Add fake_pid_p.
10497 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10498 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10499 magic_null_ptid since the remote side doesn't provide a real PID.
10500
10501 2012-01-19 Tom Tromey <tromey@redhat.com>
10502
10503 * NEWS: Combine the two Python sections.
10504
10505 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10506
10507 * target.h (target_close): Update comment on the target's unpush state.
10508
10509 2012-01-19 Pedro Alves <palves@redhat.com>
10510
10511 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10512 linux_nat_async directly instead of going through the target
10513 vector.
10514 * target.c (unpush_target): Close target after unpushing it, not
10515 before.
10516
10517 2012-01-19 Gary Benson <gbenson@redhat.com>
10518
10519 * mdebugread.c (sort_blocks): Replace integer constants with ones
10520 derived from FIRST_LOCAL_BLOCK.
10521
10522 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10523 Jan Kratochvil <jan.kratochvil@redhat.com>
10524
10525 PR gdb/9538
10526 * symfile.c (find_separate_debug_file): New function.
10527 (terminate_after_last_dir_separator): Likewise.
10528 (find_separate_debug_file_by_debuglink): Also try realpath.
10529 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10530 * configure: Regenerate.
10531 * config.in: Regenerate.
10532
10533 2012-01-18 Doug Evans <dje@google.com>
10534
10535 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10536 (main.o): Remove rule.
10537 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10538 (--with-sysroot): Rewrite.
10539 * configure: Regenerate.
10540 * config.in: Regenerate.
10541
10542 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10543
10544 * parse.c (initialize_expout): New function.
10545 (reallocate_expout): Likewise.
10546 (parse_exp_in_context): Use `initialize_expout' and
10547 `reallocate_expout' when appropriate.
10548
10549 2012-01-18 Pedro Alves <palves@redhat.com>
10550
10551 * record.c (struct record_breakpoint, record_breakpoint_p)
10552 (record_breakpoints): New.
10553 (record_insert_breakpoint, record_remove_breakpoint): Manage
10554 record breakpoints list. Only remove breakpoints from the
10555 inferior if they had been inserted there in the first place.
10556
10557 2012-01-17 Doug Evans <dje@google.com>
10558
10559 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10560 if we know we don't have a file name to look for.
10561
10562 2012-01-17 Pedro Alves <palves@redhat.com>
10563
10564 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10565 the frame's stop reason is UNWIND_UNAVAILABLE.
10566
10567 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10568
10569 Fix compilation error.
10570 * m2-exp.y (yyerror): Use ANSI C prototype.
10571
10572 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10573
10574 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10575 (growbuf_by_size): Likewise.
10576 (yyerror): Likewise.
10577 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10578 (modblock): Remove variable (was #if 0'ed).
10579 (parse_number): Convert prototype from K&R to ANSI C.
10580 (yyerror): Likewise.
10581 * objc-exp.y (parse_number): Likewise.
10582 (yyerror): Likewise.
10583 (yylex): Remove #if 0'ed code.
10584 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10585 (yyerror): Likewise.
10586
10587 2012-01-16 Tom Tromey <tromey@redhat.com>
10588
10589 * NEWS: Add item.
10590 * symtab.h (compare_filenames_for_search): Declare.
10591 * symtab.c (compare_filenames_for_search): New function.
10592 (iterate_over_some_symtabs): Use it.
10593 * symfile.h (struct quick_symbol_functions)
10594 <map_symtabs_matching_filename>: Change spec.
10595 * psymtab.c (partial_map_symtabs_matching_filename): Use
10596 compare_filenames_for_search. Update for new spec.
10597 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10598 compare_filenames_for_search. Update for new spec.
10599 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10600
10601 2012-01-16 Tom Tromey <tromey@redhat.com>
10602
10603 PR python/13281:
10604 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10605 (struct main_type) <flag_flag_enum>: New field.
10606 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10607 * NEWS: Add entries.
10608 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10609 enums.
10610 * python/lib/gdb/printing.py (_EnumInstance): New class.
10611 (FlagEnumerationPrinter): Likewise.
10612
10613 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10614
10615 * breakpoint.c (create_sals_from_address_default): New function.
10616 (create_breakpoints_sal_default): Likewise.
10617 (decode_linespec_default): Likewise.
10618 (is_marker_spec): Removed.
10619 (strace_marker_p): New function.
10620 (init_breakpoint_sal): Using `strace_marker_p' instead of
10621 `is_marker_spec'.
10622 (create_breakpoint): Call method `create_sals_from_address' from
10623 breakpoint_ops, replacing code that created SALs conditionally
10624 on the type of the breakpoint. Call method `create_breakpoints_sal',
10625 replacing code that created breakpoints conditionally on the type
10626 wanted.
10627 (base_breakpoint_create_sals_from_address): New function.
10628 (base_breakpoint_create_breakpoints_sal): Likewise.
10629 (base_breakpoint_decode_linespec): Likewise.
10630 (base_breakpoint_ops): Add methods
10631 `base_breakpoint_create_sals_from_address',
10632 `base_breakpoint_create_breakpoints_sal' and
10633 `base_breakpoint_decode_linespec'.
10634 (bkpt_create_sals_from_address): New function.
10635 (bkpt_create_breakpoints_sal): Likewise.
10636 (bkpt_decode_linespec): Likewise.
10637 (tracepoint_create_sals_from_address): Likewise.
10638 (tracepoint_create_breakpoints_sal): Likewise.
10639 (tracepoint_decode_linespec): Likewise.
10640 (strace_marker_create_sals_from_address): Likewise.
10641 (strace_marker_create_breakpoints_sal): Likewise.
10642 (strace_marker_decode_linespec): Likewise.
10643 (strace_marker_breakpoint_ops): New variable.
10644 (addr_string_to_sals): Remove `marker_spec'. Call method
10645 `decode_linespec' from breakpoint_ops, replacing code that decoded
10646 an address string into a SAL. Use `strace_marker_p' instead of
10647 `marker_spec'.
10648 (strace_command): Decide whether we are dealing with a static
10649 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10650 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10651 * breakpoint.h (linespec_result, linespec_sals): New forward
10652 declarations.
10653 (breakpoint_ops) <create_sals_from_address>,
10654 <create_breakpoints_sal>, <decode_linespec>: New methods.
10655
10656 2012-01-14 Doug Evans <dje@google.com>
10657
10658 * NEWS: Update text for "maint set python print-stack".
10659 It is deprecated in gdb 7.4 and deleted in 7.5.
10660
10661 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10662
10663 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10664 including curses.h.
10665
10666 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10667
10668 * configure: Regenerate.
10669 * config.in: Regenerate.
10670
10671 2012-01-12 Keith Seitz <keiths@redhat.com>
10672
10673 PR mi/10586
10674 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10675 (ANONYMOUS_UNION_NAME): Define.
10676 (is_path_expr_parent): New function.
10677 (get_path_expr_parent): New function.
10678 (is_anonymous_child): New function.
10679 (create_child_with_value): If the child is anonymous and without
10680 a name, assign an object name to it.
10681 (c_describe_child): Use get_path_expr_parent to determine
10682 the parent expression.
10683 If there field represents an anonymous struct or union and
10684 has no name, set an appropriate display name and expression.
10685 (cplus_describe_child): Likewise.
10686
10687 2012-01-12 Pedro Alves <palves@redhat.com>
10688
10689 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10690 available when %ebp is found to be zero (outermost).
10691
10692 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10693
10694 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10695 an internal gdb_static_assert.
10696 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10697
10698 2012-01-11 Tom Tromey <tromey@redhat.com>
10699
10700 PR gdb/9598:
10701 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10702 catch" and "catch throw".
10703
10704 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10705
10706 * blockframe.c (block_innermost_frame): Start search from selected
10707 frame, if present, or otherwise the current frame.
10708
10709 * c-exp.y (variable): Update innermost_block for
10710 'block COLONCOLON NAME' clause.
10711 * m2-exp.y (variable): Ditto.
10712 * objc-exp.y (variable): Ditto.
10713
10714 2012-01-10 Tom Tromey <tromey@redhat.com>
10715
10716 PR python/13199:
10717 * python/python.c (finish_python_initialization): Set sys.argv.
10718
10719 2012-01-10 Doug Evans <dje@google.com>
10720
10721 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10722 "want_line_info". All callers updated.
10723 (dwarf_decode_lines_1): New function.
10724 (handle_DW_AT_stmt_list): Add function comment.
10725 New arg "want_line_info". All callers updated.
10726 (read_file_scope,read_type_unit_scope): Move comment from
10727 handle_DW_AT_stmt_list to here.
10728
10729 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10730
10731 Fix regression after libiberty/ update for GCC PR 6057 and others.
10732 * c-exp.y (operator) <OPERATOR DELETE>
10733 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10734 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10735 (make_builtin_type, make_name): New variable i, add gdb_assert.
10736 (operator) <OPERATOR NEW>: Update ARGS to 3.
10737 (operator) <OPERATOR DELETE>: Add trailing space.
10738 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10739 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10740 * cp-support.c (cp_canonicalize_string): Check NULL from
10741 cp_comp_to_string, call warning and return.
10742
10743 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10744
10745 Fix duplicate .o files after omitting libbfd.a.
10746 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10747 (SFILES): Add corelow.c.
10748 (COMMON_OBS): Add corelow.o.
10749 (ALLDEPFILES): Remove corelow.c.
10750 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10751 * config/alpha/alpha-osf3.mh: Likewise.
10752 * config/alpha/fbsd.mh: Likewise.
10753 * config/arm/nbsdaout.mh: Likewise.
10754 * config/arm/nbsdelf.mh: Likewise.
10755 * config/i386/i386gnu.mh: Likewise.
10756 * config/ia64/hpux.mh: Likewise.
10757 * config/ia64/linux.mh: Likewise.
10758 * config/m32r/linux.mh: Likewise.
10759 * config/m68k/linux.mh: Likewise.
10760 * config/mips/irix5.mh: Likewise.
10761 * config/mips/irix6.mh: Likewise.
10762 * config/pa/hpux.mh: Likewise.
10763 * config/pa/linux.mh: Likewise.
10764 * config/powerpc/aix.mh: Likewise.
10765 * config/sparc/linux.mh: Likewise.
10766 * config/sparc/linux64.mh: Likewise.
10767 * config/sparc/sol2.mh: Likewise.
10768 * config/vax/vax.mh: Likewise.
10769 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10770 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10771 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10772 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10773 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10774 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10775 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10776 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10777 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10778 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10779 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10780 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10781 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10782 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10783 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10784 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10785 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10786 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10787 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10788 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10789 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10790 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10791 corelow.o from gdb_target_obs.
10792 * corefile.c (core_target): Update the comment on NULL value.
10793 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10794 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10795 MATCHES. Drop YUMMY set on NULL.
10796 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10797 reclaim CORE_DATA if it is already NULL.
10798
10799 2012-01-09 Doug Evans <dje@google.com>
10800
10801 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10802 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10803
10804 2012-01-09 Keith Seitz <keiths@redhat.com>
10805
10806 * breakpoint.c (wrapper.h): Don't include.
10807
10808 2012-01-09 Keith Seitz <keiths@redhat.com>
10809
10810 * Makefile.in (SFILES): Remove wrapper.c.
10811 (HFILES_NO_SRCDIR): Remove wrapper.h.
10812 (COMMON_OBS): Remove wrapper.o.
10813 * cli/cli-interp.c: Don't inlude wrapper.h.
10814 * corelow.c: Likewise.
10815 (core_open): Replace gdb_target_find_new_threads with
10816 TRY_CATCH around target_find_new_threads.
10817 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10818 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10819 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10820 evaluate_expression.
10821 (varobj_set_value): Likewise for evaluate_expression and
10822 value_assign.
10823 (install_new_variable): Likewise for value_fetch_lazy.
10824 (adjust_value_for_child_access): Likewise for value_ind.
10825 (c_describe_child): Likewise for value_subscript and
10826 value_ind.
10827 (c_value_of_root): Likewise for evaluate_expression.
10828 * wrapper.c: Remove.
10829 * wrapper.h: Remove.
10830
10831 2012-01-09 Doug Evans <dje@google.com>
10832
10833 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10834 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10835 "abfd" args with "section". All callers updated.
10836 Error checking code moved ...
10837 (error_check_comp_unit_head): ... here. New function.
10838 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10839 Delete arg "abfd". New arg "type_offset". All callers updated.
10840 (create_debug_types_hash_table): Simplify by using
10841 read_and_check_type_unit_head.
10842
10843 * parser-defs.h (namecopy): Delete.
10844 * parse.c (namecopy, namecopy_size): Move into copy_name.
10845
10846 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10847
10848 Partially fix duplicate .o files after omitting libbfd.a.
10849 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10850 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10851 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10852 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10853 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10854 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10855 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10856
10857 2012-01-09 Pedro Alves <palves@redhat.com>
10858
10859 * MAINTAINERS: Update my email address.
10860
10861 2012-01-08 Doug Evans <dje@google.com>
10862
10863 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10864 n_type_units. Rename type_comp_units to all_type_units.
10865 All uses updated.
10866 (add_signatured_type_cu_to_table): Renamed from
10867 add_signatured_type_cu_to_list. All callers updated.
10868
10869 * gdbtypes.h (struct cplus_struct_type): Delete member
10870 nfn_fields_total. All uses removed.
10871
10872 2012-01-06 Doug Evans <dje@google.com>
10873
10874 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10875 to top of file.
10876 (dwarf2_find_comp_unit): Delete.
10877 (process_psymtab_comp_unit): Make result "void".
10878 Delete args buffer, info_ptr, buffer_size, and replace with
10879 "section". All callers updated.
10880 (dwarf2_build_psymtabs_hard): Simplify.
10881
10882 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10883 Thiago Jung Bauermann <bauerman@br.ibm.com>
10884
10885 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10886 before `struct gdb_exception'.
10887 * breakpoint.c (update_global_location_list_nothrow)
10888 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10889 * cp-abi.c (value_rtti_type): Likewise.
10890 * cp-support.c (cp_validate_operator): Likewise.
10891 * infrun.c (insert_exception_resume_breakpoint)
10892 (check_exception_resume, keep_going): Likewise.
10893 * mi-interp.c (mi_breakpoint_created)
10894 (mi_breakpoint_modified): Likewise.
10895 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10896 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10897 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10898
10899 2012-01-05 Doug Evans <dje@google.com>
10900
10901 * dwarf2read.c (statement_prologue): Delete, unused.
10902
10903 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10904 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10905
10906 * dwarf2read.c (comp_unit_header): Delete, unused.
10907
10908 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10909
10910 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10911 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10912
10913 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10914
10915 * infrun.c (normal_stop): Don't skip calling the normal_stop
10916 observers if the thread was doing a multi-step, but stopped for
10917 some reason other than stepping.
10918
10919 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10920
10921 * cli/cli-decode.h: Add comments.
10922 (CMD_LIST_AMBIGUOUS): Moved to command.h
10923 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10924 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10925 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10926 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10927 (add_com, add_com_alias, add_info, add_info_alias)
10928 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10929 declarations.
10930 * command.h: Add and adjust comments.
10931 (CMD_LIST_AMBIGUOUS): Moved here.
10932 (help_cmd, help_cmd_list): Delete declarations.
10933
10934 2012-01-04 Doug Evans <dje@google.com>
10935
10936 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10937 All callers updated.
10938 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10939 Replace all arguments with "per_cu". All callers updated.
10940
10941 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10942
10943 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10944 New arg "per_cu". All callers updated.
10945
10946 Delete #if 0'd out code.
10947 * language.c (binop_result_type): Delete.
10948 (simple_type, ordered_type, same_type, integral_type): Delete.
10949 (numeric_type, character_type, string_type, boolean_type): Delete.
10950 (float_type, structured_type): Delete.
10951 * language.h: Update.
10952
10953 2012-01-04 Tom Tromey <tromey@redhat.com>
10954
10955 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10956
10957 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10958
10959 * corefile.c (close_exec_file): Delete.
10960 (reopen_exec_file): Remove commented out code that seems related
10961 to close_exec_file, which is being deleted here.
10962 * inferior.h (close_exec_file): Delete.
10963 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10964
10965 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10966
10967 * ada-lang.c: #include "cli/cli-utils.h".
10968 (get_selections): Use skip_spaces.
10969 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10970 (catch_ada_exception_command_split): Use skip_spaces.
10971 (ada_decode_assert_location): Likewise.
10972
10973 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10974
10975 * linespec.c (decode_line_internal): Check for C++ or Java
10976 compound constructs only if the current language is C, C++
10977 or Java.
10978
10979 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10980
10981 Revert:
10982 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10983 Joel Brobecker <brobecker@adacore.com>
10984 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10985 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10986 3 times.
10987 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10988 fall through into AT_ENTRY_POINT.
10989 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10990 DUMMY_ADDR with it.
10991 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10992 PPC_INSN_SIZE skip to 3 times.
10993
10994 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10995
10996 * linespec.c (add_minsym): Preserve function descriptors.
10997
10998 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10999
11000 * breakpoint.c (all_locations_are_pending): Consider locations
11001 in program spaces executing during startup pending as well.
11002
11003 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11004
11005 Copyright year update in most files of the GDB Project.
11006
11007 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11008
11009 * copyright.sh: Delete.
11010 * copyright.py: Rewrite.
11011
11012 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11013
11014 * gnulib/extra/update-copyright: New file, imported from gnulib.
11015
11016 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11017
11018 * README (Copyright and License Notices): New section.
11019
11020 2012-01-03 Tom Tromey <tromey@redhat.com>
11021
11022 PR python/12533:
11023 * python/py-value.c (valpy_dereference, valpy_get_address
11024 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11025 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11026 (valpy_absolute, valpy_richcompare): Free intermediate values.
11027
11028 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11029
11030 * ada-lang.c: Reformat the copyright notice.
11031
11032 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11033
11034 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11035 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11036 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11037 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11038 Revert this part of:
11039 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11040 Build gdb directly from *.o files not using libgdb.a.
11041 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11042
11043 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11044
11045 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11046 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11047 Reformat the copyright header.
11048
11049 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11050
11051 Revert this part of:
11052 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11053 Remove the gdbtui binary.
11054 * gdb.c (main): Remove args.interpreter_p initialization.
11055 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11056 * main.h (struct captured_main_args): Remove interpreter_p.
11057
11058 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11059
11060 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11061
11062 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11063
11064 * top.c (print_gdb_version): Update copyright year.
11065
11066 2012-01-02 Yao Qi <yao@codesourcery.com>
11067
11068 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11069
11070 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11071 Joel Brobecker <brobecker@adacore.com>
11072
11073 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11074 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11075 3 times.
11076 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11077 fall through into AT_ENTRY_POINT.
11078 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11079 DUMMY_ADDR with it.
11080 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11081 PPC_INSN_SIZE skip to 3 times.
11082
11083 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11084
11085 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11086 the return value.
11087 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11088
11089 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11090
11091 Build gdb directly from *.o files not using libgdb.a.
11092 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11093 (COMMON_OBS): Remove solib-target.o.
11094 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11095 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11096 (LIBGDB_OBS, libgdb.a): Move it above.
11097 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11098 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11099 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11100 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11101 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11102 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11103 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11104 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11105 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11106 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11107 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11108 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11109 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11110 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11111 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11112 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11113 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11114 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11115 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11116 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11117 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11118 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11119 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11120 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11121 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11122 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11123 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11124
11125 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11126
11127 Remove the gdbtui binary.
11128 * .gitignore (/gdbtui): Remove.
11129 * Makefile.in (TUI): Remove.
11130 (SUBDIR_TUI_OBS): Remove tui-main.o.
11131 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11132 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11133 (tui-main.o): Remove.
11134 (all_object_files): Remove tui-main.o.
11135 * NEWS: New note for the gdbtui removal.
11136 * configure: Rebuilt.
11137 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11138 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11139 CONFIG_UNINSTALL respectively.
11140 * gdb.c (main): Remove args.interpreter_p initialization.
11141 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11142 * main.h (struct captured_main_args): Remove interpreter_p.
11143 * tui/tui-main.c: Remove.
11144
11145 2012-01-01 Doug Evans <dje@google.com>
11146
11147 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11148 (dwarf2_physname, read_import_statement): Ditto.
11149 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11150 (process_structure_scope read_subroutine_type): Ditto.
11151 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11152 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11153 (dwarf2_fetch_die_location_block): Ditto.
11154 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11155
11156 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11157 All callers updated.
11158 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11159 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11160 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11161
11162 * dwarf2read.c (load_cu): Move assert to more useful location.
11163
11164 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11165 All callers updated.
11166
11167 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11168 (dwarf2_elf_names): Minor reformat.
11169 (dwarf2_per_cu_data): Tweak comment.
11170 (dwarf2_read_section): Fix comment.
11171 (create_all_comp_units): Fix comment.
11172 (load_full_comp_unit): Fix comment.
11173 (process_full_comp_unit): Fix comment.
11174 (read_signatured_type): Fix comment.
11175
11176 For older changes see ChangeLog-2011.
11177 \f
11178 Local Variables:
11179 mode: change-log
11180 left-margin: 8
11181 fill-column: 74
11182 version-control: never
11183 coding: utf-8
11184 End:
This page took 0.259614 seconds and 5 git commands to generate.