* lib/gdb.exp (standard_output_file): Use "file join".
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-06-25 Michael Eager <eager@eagercon.com>
2
3 PR python/14291
4 * python/python.c (gdbpy_write): Check for interrupted output.
5
6 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
7
8 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
9 register as a stack alignment in ARM mode.
10
11 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12
13 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
14 * gnulib/config.in: Regenerate.
15 * gnulib/configure: Likewise.
16 * gnulib/import/m4/extensions.m4: Update it.
17 * gnulib/import/m4/gnulib-common.m4: Likewise.
18 * gnulib/import/m4/memmem.m4: Likewise.
19 * gnulib/import/m4/mmap-anon.m4: Likewise.
20 * gnulib/import/m4/multiarch.m4: Likewise.
21 * gnulib/import/stdint.in.h: Likewise.
22
23 2012-06-24 Yao Qi <yao@codesourcery.com>
24
25 * corefile.c (write_memory_with_notification): New.
26 * gdbcore.h: Declare write_memory_with_notification.
27 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
28 'observer_notify_memory_changed' with 'write_memory_with_notification'.
29 * valops.c (value_assign): Likewise.
30 * python/py-inferior.c (infpy_write_memory): Call
31 'write_memory_with_notification'.
32
33 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
34
35 * cc-with-index.sh: Use also -ex "set auto-load no".
36
37 2012-06-23 Doug Evans <dje@google.com>
38
39 PR 14125
40 * NEWS: Document additions to .gdb_index.
41 * dwarf2read.c: #include "gdb/gdb-index.h".
42 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
43 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
44 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
45 (dwarf2_read_index): Recognize version 7.
46 (dw2_do_expand_symtabs_matching): New args want_specific_block,
47 block_kind, domain): All callers updated.
48 (dw2_find_symbol_file): Handle new index CU values.
49 (dw2_expand_symtabs_matching): Match symbol kind if requested.
50 (add_index_entry): New args is_static, kind. All callers updated.
51 (offset_type_compare, uniquify_cu_indices): New functions
52 (symbol_kind): New function.
53 (write_psymtabs_to_index): Remove duplicate CU values.
54 (write_psymtabs_to_index): Write .gdb_index version 7.
55
56 2012-06-22 Joel Brobecker <brobecker@adacore.com>
57
58 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
59 * configure: Regenerate.
60
61 2012-06-20 Yao Qi <yao@codesourcery.com>
62
63 * python/py-inferior.c: Update comments of infpy_read_memory
64 and infpy_write_memory.
65
66 2012-06-19 Tom Tromey <tromey@redhat.com>
67
68 PR exp/9514:
69 * parser-defs.h (insert_type, insert_type_address_space): Declare.
70 (push_type_address_space): Remove.
71 * parse.c (insert_into_type_stack): New function.
72 (insert_type): Likewise.
73 (insert_type_address_space): Rename from push_type_address_space.
74 Insert tp_space_identifier.
75 * c-exp.y (ptr_operator): New production.
76 (abs_decl): Use ptr_operator.
77 (space_identifier): Call insert_type_address_space.
78 (ptype): Don't use const_or_volatile_or_space_identifier.
79 (const_or_volatile_noopt): Call insert_type.
80 (conversion_type_id, conversion_declarator): New productions.
81 (operator): Use conversion_type_id.
82
83 2012-06-18 Doug Evans <dje@google.com>
84
85 * symtab.h (minimal_symbol): New member created_by_gdb.
86 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
87 created by gdb.
88 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
89 (search_symbols): Call it instead of lookup_symbol.
90 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
91
92 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
93 Adjust address for DW_OP_GNU_addr_index.
94 * dwarf2expr.h (dwarf_expr_context): Update comment.
95 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
96 all callers updated. Handle TLS vars described with
97 DW_OP_GNU_const_index.
98 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
99 and DW_OP_GNU_const_index.
100 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
101
102 * block.c (find_block_in_blockvector): Make explicit the fact that we
103 ignore GLOBAL_BLOCK.
104
105 2012-06-18 Tom Tromey <tromey@redhat.com>
106
107 * c-exp.y (operator): Remove trailing space after "delete" and
108 "delete[]".
109
110 2012-06-18 Mark Kettenis <kettenis@gnu.org>
111 Jan Kratochvil <jan.kratochvil@redhat.com>
112
113 Switch i386 and derived targets to ON_STACK.
114 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
115 (amd64_dicos_init_abi): Remove its installment.
116 * dicos-tdep.c (dicos_init_abi): Remove the
117 set_gdbarch_call_dummy_location call. Update the comment here.
118 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
119 (i386_dicos_init_abi): Remove its installment.
120 * i386-tdep.c (i386_push_dummy_code): New function.
121 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
122 i386_push_dummy_code.
123
124 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
125
126 Remove stale dummy frames.
127 * breakpoint.c: Include dummy-frame.h.
128 (longjmp_breakpoint_ops): New variable.
129 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
130 bp_longjmp_call_dummy.
131 (bpstat_what, bptype_string, print_one_breakpoint_location)
132 (init_bp_location): Support bp_longjmp_call_dummy.
133 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
134 (set_longjmp_breakpoint_for_call_dummy)
135 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
136 functions.
137 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
138 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
139 FIXME comment and extend the other comment for bp_call_dummy.
140 (set_longjmp_breakpoint_for_call_dummy)
141 (check_longjmp_breakpoint_for_call_dummy): New declarations.
142 * dummy-frame.c: Include gdbthread.h.
143 (pop_dummy_frame_bpt): New function.
144 (pop_dummy_frame): Call pop_dummy_frame_bpt.
145 (dummy_frame_discard): New function.
146 (cleanup_dummy_frames): Update the comment about longjmps.
147 * dummy-frame.h (dummy_frame_discard): New declaration.
148 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
149 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
150 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
151 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
152 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
153 keep_going if IS_LONGJMP and there is no other reason to stop.
154
155 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
156
157 * remote-sim.c (sim_command_completer): Initialize
158 variable 'result'.
159
160 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
161
162 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
163 * dwarf2loc.c (call_site_parameter_matches): Support
164 CALL_SITE_PARAMETER_PARAM_OFFSET.
165 (needs_dwarf_reg_entry_value): Push stub value.
166 * dwarf2read.c (read_call_site_scope): New variable origin. Support
167 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
168 * gdbtypes.h (enum call_site_parameter_kind): New item
169 CALL_SITE_PARAMETER_PARAM_OFFSET.
170 (struct call_site.parameter.u): New field param_offset.
171
172 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
173
174 Code cleanup: Generalize call_site.parameter key.
175 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
176 variable dwarf_reg. New variable kind_u. Update parameters to
177 push_dwarf_reg_entry_value.
178 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
179 * dwarf2expr.h (enum call_site_parameter_kind)
180 (union call_site_parameter_u): Forward declarations.
181 (struct dwarf_expr_context_funcs): Update parameters and their
182 description for push_dwarf_reg_entry_value.
183 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
184 * dwarf2loc.c (call_site_parameter_matches): New function.
185 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
186 description. Use call_site_parameter_matches.
187 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
188 Update parameters and their description.
189 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
190 New variable kind_u. Adjust the caller for updated parameters.
191 (needs_dwarf_reg_entry_value): Update parameters.
192 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
193 instead of attr. Update for the changed fields of struct
194 call_site_parameter.
195 * gdbtypes.h: Include dwarf2expr.h.
196 (enum call_site_parameter_kind): New.
197 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
198 fb_offset into new union u.
199
200 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
201
202 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
203 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
204 for x32.
205
206 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
207
208 * amd64-linux-nat.c (compat_x32_clock_t): New.
209 (compat_x32_siginfo_t): Likewise.
210 (compat_x32_siginfo_from_siginfo): Likewise.
211 (siginfo_from_compat_x32_siginfo): Likewise.
212 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
213 and siginfo_from_compat_x32_siginfo for x32.
214
215 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
216
217 * tracepoint.c (tfile_xfer_partial): Add a lseek.
218
219 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
220
221 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
222 instead of gdbarch_ptr_bit.
223 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
224 (amd64_supply_native_gregset): Likewise.
225 (amd64_collect_native_gregset): Likewise.
226 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
227 (amd64_supply_xsave): Likewise.
228 (amd64_collect_fxsave): Likewise.
229 (amd64_collect_xsave): Likewise.
230
231 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
232
233 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
234 (amd64_linux_read_description): Check DS segment register for
235 x32 process.
236
237 2012-06-15 Tom Tromey <tromey@redhat.com>
238
239 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
240 init_cutu_and_read_dies.
241
242 2012-06-15 Iain Sandoe <iain@codesourcery.com>
243
244 * MAINTAINERS (Write After Approval): Add myself to the list.
245
246 2012-06-15 Tom Tromey <tromey@redhat.com>
247
248 * valops.c (value_find_oload_method_list): Now static.
249 * value.h (value_find_oload_method_list): Don't declare.
250
251 2012-06-15 Tom Tromey <tromey@redhat.com>
252
253 * valops.c (find_overload_match): Use value_ind.
254
255 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
256
257 * infrun.c (handle_inferior_event): Correct indentation.
258
259 2012-06-14 Doug Evans <dje@google.com>
260
261 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
262 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
263 All uses updated.
264 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
265 updated. Handle DEBUG_LOC_START_LENGTH.
266 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
267 (loclist_describe_location): Ditto.
268
269 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
270
271 PR backtrace/13866
272 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
273 after hiding inline functions.
274
275 2012-06-13 Joel Brobecker <brobecker@adacore.com>
276
277 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
278 _initialize_inf_ttrace.
279
280 2012-06-13 Joel Brobecker <brobecker@adacore.com>
281
282 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
283 _initialize_hppa_hpux_nat.
284
285 2012-06-13 Joel Brobecker <brobecker@adacore.com>
286
287 * remote-sim.c (sim_command_completer): Change type of return
288 value to "VEC (char_ptr) *". Adjust implementation accordingly.
289
290 2012-06-13 Mark Kettenis <kettenis@gnu.org>
291 Jan Kratochvil <jan.kratochvil@redhat.com>
292
293 PR tdep/14222
294 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
295 stack on a 16-byte boundary.
296
297 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
298
299 * jit.c (finalize_symtab): Set function's return type to 'void' by
300 default.
301
302 2012-06-13 Mark Kettenis <kettenis@gnu.org>
303 H.J. Lu <hongjiu.lu@intel.com>
304
305 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
306 Move bits common to both the classic LP64 and the new x32 ILP32
307 ABI here.
308 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
309 (amd64_x32_linux_init_abi): New function.
310 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
311 subtype.
312
313 * i386-tdep.h (i386_pseudo_register_name): New prototype.
314 * i386-tdep.c (i386_pseudo_register_name): Make public.
315 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
316 * amd64-tdep.c (amd64_dword_names): Add "eip".
317 (amd64_x32_pseudo_register_type): New function
318 (amd64_x32_init_abi): New function.
319
320 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
321
322 PR build/14003
323 * inferior.h (struct inferior_suspend_state): Comment out.
324 (struct inferior): Comment out the field suspend.
325 * infrun.c (struct infcall_suspend_state): Comment out the field
326 inferior_suspend.
327 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
328 out its assignment.
329
330 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
331
332 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
333 * c-exp.y (classify_inner_name): Remove caller assumptions in the
334 function comment. Return ERROR for unresolved cases. Implement
335 returning proper NAME.
336 (yylex): Accept also NAME from classify_inner_name.
337 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
338 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
339 LOC_TYPEDEF type.
340 * cp-support.h (cp_lookup_nested_type): Update its declaration.
341
342 2012-06-13 Tom Tromey <tromey@redhat.com>
343
344 * breakpoint.c (condition_completer): New function.
345 (_initialize_breakpoint): Use it.
346 * value.c (complete_internalvar): New function.
347 * value.h (complete_internalvar): Declare.
348
349 2012-06-13 Tom Tromey <tromey@redhat.com>
350
351 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
352 * breakpoint.c (catch_syscall_completer): Return a VEC.
353 * cli/cli-cmds.c (complete_command): Update.
354 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
355 (complete_on_enum): Likewise.
356 * command.h: Include gdb_vecs.h.
357 (completer_ftype): Change return type.
358 (complete_on_cmdlist, complete_on_enum): Likewise.
359 * completer.c (noop_completer, filename_completer)
360 (location_completer): Return a VEC.
361 (add_struct_fields): Remove 'nextp' argument. Change 'output'
362 to a VEC.
363 (expression_completer, complete_line_internal, complete_line)
364 (command_completer): Return a VEC.
365 (gdb_completion_word_break_characters, line_completion_function):
366 Update.
367 * completer.h: Include gdb_vecs.h.
368 (complete_line, noop_completer, filename_completer)
369 (expression_completer, location_completer, command_completer):
370 Update.
371 * f-lang.c (f_word_break_characters): Return a VEC.
372 * interps.c (interpreter_completer): Return a VEC.
373 * language.h (struct language_defn)
374 <la_make_symbol_completion_list>: Return a VEC.
375 * python/py-cmd.c (cmdpy_completer): Return a VEC.
376 * symtab.c (free_completion_list): Take a VEC.
377 (return_val_size, return_val_index): Remove.
378 (return_val): Now a VEC.
379 (completion_list_add_name): Update.
380 (default_make_symbol_completion_list_break_on)
381 (default_make_symbol_completion_list, make_symbol_completion_list)
382 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
383 Return a VEC.
384 (add_filename_to_list): Update.
385 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
386 <list>: Now a VEC.
387 (maybe_add_partial_symtab_filename): Update.
388 (make_source_files_completion_list): Return a VEC.
389 * symtab.h (default_make_symbol_completion_list_break_on)
390 (default_make_symbol_completion_list, make_symbol_completion_list)
391 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
392 (make_source_files_completion_list): Update.
393
394 2012-06-13 Tom Tromey <tromey@redhat.com>
395
396 * breakpoint.c (add_catch_command): Use completer_ftype.
397 * breakpoint.h: Include command.h.
398 (add_catch_command): Use completer_ftype.
399 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
400 * cli/cli-decode.h (struct cmd_list_element) <completer>:
401 Use completer_ftype.
402 * command.h (completer_ftype): New typedef.
403 (set_cmd_completer): Use it.
404 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
405 completer_ftype.
406
407 2012-06-13 Pedro Alves <palves@redhat.com>
408
409 Partial revert of previous change.
410
411 * serial.c (scb_base): New global.
412 (serial_for_fd): New.
413 (serial_open, serial_fdopen_ops): Link new serial in open serials
414 chain.
415 (do_serial_close): Unlink serial from the open serials chain.
416
417 2012-06-12 Pedro Alves <palves@redhat.com>
418
419 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
420 threads here.
421 (prepare_for_detach): No longer context switch here in non-stop
422 mode.
423 (fetch_inferior_event): Ditto.
424 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
425 to the event thread before removing breakpoints. Switch to the
426 event thread before inserting breakpoints and resuming.
427 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
428 event thread before resuming.
429 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
430 Switch to the event thread before removing breakpoints.
431
432 2012-06-12 Eli Zaretskii <eliz@gnu.org>
433
434 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
435 special characters correctly for the Windows shells. See
436 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
437 report.
438 [!__MINGW32__]: Remove extra double quote character from special
439 characters.
440
441 2012-06-11 Stan Shebs <stan@codesourcery.com>
442
443 * ui-out.h: Remove #if 0 declarations.
444 * ui-out.c: Remove #if 0 functions.
445
446 2012-06-11 Pedro Alves <palves@redhat.com>
447
448 * ser-base.c (run_async_handler_and_reschedule): New.
449 (fd_event, push_event): Use it.
450 * serial.c (serial_open, serial_fdopen_ops): Set the initial
451 reference count to 1.
452 (do_serial_close): Set the bufp field to NULL. Use serial_unref
453 instead of xfree.
454 (serial_is_open, serial_ref, serial_unref): New.
455 * serial.h (serial_open): Adjust comment.
456 (serial_is_open): Declare.
457 (serial_close): Adjust comment.
458 (serial_ref, serial_unref) Declare.
459 (struct serial): New field 'refcnt'.
460
461 2012-06-11 Pedro Alves <palves@redhat.com>
462
463 Remove #if 0'd "connect" command, and unnecessary associated
464 refcounting and serial reuse bits.
465
466 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
467 * serial.c (last_serial_opened): Delete.
468 (scb_base): Delete.
469 (serial_open): Adjust.
470 (serial_for_fd): Delete.
471 (serial_fdopen_ops, do_serial_close): Adjust.
472 (serial_fdopen_ops): Adjust.
473
474 2012-06-11 Pedro Alves <palves@redhat.com>
475
476 * serial.c (do_serial_close): Remove early return when SCB is
477 null.
478
479 2012-06-11 Tom Tromey <tromey@redhat.com>
480
481 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
482
483 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
484
485 Fix regression by the "ambiguous linespec" series.
486 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
487 get_last_displayed_symtab and get_last_displayed_line and depending
488 on CURSAL.
489
490 2012-06-11 Tom Tromey <tromey@redhat.com>
491
492 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
493 (dw2_find_symbol_file): Use it.
494
495 2012-06-11 Michael Eager <eager@eagercon.com>
496
497 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
498 * mips-linux-tdep.h (mips_signals): New
499
500 2012-06-11 Tom Tromey <tromey@redhat.com>
501
502 * infrun.c (handle_inferior_event)
503 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
504 breakpoint.
505 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
506 exception logic in all cases. Update comments.
507 (insert_longjmp_resume_breakpoint): Set the exception resume
508 breakpoint.
509
510 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
511
512 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
513
514 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
515
516 * valarith.c (binop_types_user_defined_p): Fix a typo.
517
518 2012-06-08 Yao Qi <yao@codesourcery.com>
519 Chung-Lin Tang <cltang@codesourcery.com>
520
521 * arch-utils.c (default_return_in_first_hidden_param_p): New.
522 * arch-utils.h: Declare.
523 * gdbarch.sh: Add return_in_first_hidden_param_p.
524 * gdbarch.c, gdbarch.h: Regenerated.
525 * infcall.c (call_function_by_hand): Call
526 gdbarch_return_in_first_hidden_param_p instead of
527 language_pass_by_reference.
528
529 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
530 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
531 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
532 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
533 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
534 `cplus_return_struct_by_reference'.
535 (tic6x_return_value): Handle language cplusplus.
536 (tic6x_return_in_first_hidden_param_p): New.
537 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
538
539 2012-06-07 Doug Evans <dje@google.com>
540
541 * dwarf2read.c (dwarf2_cu): Add comment.
542
543 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
544
545 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
546 variable.
547 (mips_eabi_push_dummy_call): Likewise.
548 (mips_n32n64_push_dummy_call): Likewise.
549 (mips_o32_push_dummy_call): Likewise.
550 (mips_o64_push_dummy_call): Likewise.
551
552 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
553
554 * mips-tdep.c (mips_convert_register_p): Correct coding style.
555
556 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
557
558 * mips-tdep.c (mips_pseudo_register_type): Use
559 mips_float_register_p.
560
561 2012-06-06 Pedro Alves <palves@redhat.com>
562
563 * infrun.c (handle_inferior_event): Remove calls to
564 reinit_frame_cache that follow a context_switch call.
565
566 2012-06-06 Pedro Alves <palves@redhat.com>
567
568 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
569 context_switch and remove stale comment.
570
571 2012-06-06 Pedro Alves <palves@redhat.com>
572
573 * infrun.c (struct execution_control_state): Remove
574 `new_thread_event' field.
575 (handle_inferior_event): Simplify new threads handling; don't
576 resume the inferior if we find a new thread.
577
578 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
579
580 * NEWS: Document the deprecation of SH's 'regs' command.
581 * inferior.h (all_registers_info): Add function declaration.
582 * sh-tdep.c (sh_show_regs): Remove variable.
583 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
584 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
585 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
586 (sh_show_regs_command): Remove functions.
587 (sh_gdbarch_init): Don't set sh_show_regs.
588 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
589 'info all-registers'.
590 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
591 (sh64_show_regs): Remove functions.
592 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
593
594 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
595
596 * configure.ac: Move development=true below AC_INIT.
597 * configure: Regenerate.
598
599 2012-06-05 Stan Shebs <stan@codesourcery.com>
600
601 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
602 gdb_stdout.
603
604 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
605
606 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
607 argument as ssize_t.
608 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
609 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
610 * target.c (target_read_stack, target_write_memory)
611 (target_write_raw_memory): Likewise.
612 * target.h (target_read_stack, target_write_memory)
613 (target_write_raw_memory): Likewise.
614
615 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
616
617 * symfile-mem.c: Change gdb_static_assert to ssize_t.
618 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
619 * target.c (target_read_memory): Change LEN to ssize_t.
620 * target.h (target_read_memory): Change LEN to ssize_t.
621
622 2012-06-05 Pedro Alves <palves@redhat.com>
623
624 PR backtrace/13866
625
626 * breakpoint.c (until_break_command): Only fetch the selected
627 frame after decode_line_1.
628
629 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
630
631 * solib-svr4.c (enable_break): Don't fallback to setting the solib
632 event breakpoint at _start, __start or main if a program
633 interpreter is not found.
634
635 2012-06-05 Joel Brobecker <brobecker@adacore.com>
636
637 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
638 Add declaration.
639 * windows-tdep.c: #include "objfiles.h".
640 (windows_iterate_over_objfiles_in_search_order): New function.
641 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
642 iterate_over_objfiles_in_search_order gdbarch method to
643 windows_iterate_over_objfiles_in_search_order.
644 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
645
646 2012-06-05 Joel Brobecker <brobecker@adacore.com>
647
648 * gdbarch.sh: Add generation of
649 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
650 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
651 (iterate_over_objfiles_in_search_order): New gdbarch method.
652 * gdbarch.h, gdbarch.c: Regenerate.
653 * objfiles.h (default_iterate_over_objfiles_in_search_order):
654 Add declaration.
655 * objfiles.c (default_iterate_over_objfiles_in_search_order):
656 New function.
657 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
658 out of lookup_symbol_aux_symtabs.
659 (lookup_symbol_aux_symtabs): Replace extracted-out code by
660 call to lookup_symbol_aux_objfile.
661 (struct global_sym_lookup_data): New type.
662 (lookup_symbol_global_iterator_cb): New function.
663 (lookup_symbol_global): Search for symbol using
664 gdbarch_iterate_over_objfiles_in_search_order and
665 lookup_symbol_global_iterator_cb.
666 * findvar.c (struct minsym_lookup_data): New type.
667 (minsym_lookup_iterator_cb): New function.
668 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
669 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
670 and minsym_lookup_iterator_cb.
671
672 2012-06-05 Joel Brobecker <brobecker@adacore.com>
673
674 Revert the following patch:
675 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
676 try locating the symbol in the symbol's own objfile first, before
677 extending the search to all objfiles.
678 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
679 out of lookup_symbol_aux_symtabs.
680 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
681 Replace extracted-out code by call to lookup_symbol_aux_objfile.
682 Do not search EXCLUDE_OBJFILE.
683 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
684 (lookup_symbol_global): Search for matches in the block's objfile
685 first, before searching all other objfiles.
686
687 2012-06-05 Joel Brobecker <brobecker@adacore.com>
688
689 * breakpoint.c (find_condition_and_thread): Stop parsing
690 as soon as the first invalid keyword is found.
691
692 2012-06-05 Joel Brobecker <brobecker@adacore.com>
693
694 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
695
696 2012-06-05 Joel Brobecker <brobecker@adacore.com>
697
698 * config/djgpp/djcheck.sh: Add copyright header.
699
700 2012-06-05 Joel Brobecker <brobecker@adacore.com>
701
702 * copyright.py (update_files, main): Fix path to update-copyright
703 script.
704
705 2012-06-05 Joel Brobecker <brobecker@adacore.com>
706
707 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
708 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
709 for which a reminder to update by hand is printed.
710
711 2012-06-04 Doug Evans <dje@google.com>
712
713 * buildsym.c (make_blockvector): Add comment.
714
715 2012-06-04 Pedro Alves <palves@redhat.com>
716
717 * arch-utils.c (default_gdb_signal_from_target): Delete.
718 * arch-utils.h (default_gdb_signal_from_target): Delete.
719 * corelow.c (core_open) <signal mapping>: Extended comment. Check
720 gdbarch_gdb_signal_from_target_p.
721 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
722 predicate).
723 * gdbarch.h: Regenerate.
724 * gdbarch.c: Regenerate.
725
726 2012-06-04 Pedro Alves <palves@redhat.com>
727
728 * gdbarch.sh (gdb_signal_from_target): Mention that the
729 implementation of the method must be host independent.
730 * gdbarch.h: Regenerate.
731
732 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
733
734 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
735 parameters.
736 (target_read_memory_bfd): New function.
737 (symbol_file_add_from_memory): Use it.
738
739 2012-06-03 Doug Evans <dje@google.com>
740
741 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
742 of primary symtab.
743 (basic_lookup_transparent_type): Ditto.
744
745 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
746 (ALL_PRIMARY_SYMTABS): Use it.
747 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
748 * dwarf2read.c (dw2_find_symbol_file): Ditto.
749 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
750 * symtab.c (lookup_symbol_aux_objfile): Ditto.
751 (basic_lookup_transparent_type): Ditto.
752
753 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
754
755 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
756 it to optimize resolution of demangled name.
757
758 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
759
760 * configure.ac (development): Define new variable.
761 Call AC_CHECK_LIB for mcheck if $development.
762 (ERROR_ON_WARNING): Enable it by default only if $development.
763 * config.in: Regenerate.
764 * configure: Regenerate.
765
766 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
767
768 * target.c (target_read_memory): Make LEN argument as size_t.
769 * target.h (target_read_memory): Likewise.
770
771 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
772
773 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
774
775 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
776
777 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
778 BookE interface for PowerPC server processors if not available
779 in the Linux Kernel.
780
781 2012-05-31 Keith Seitz <keiths@redhat.com>
782
783 * linespec.c (decode_objc): Add cleanup to free
784 INFO.FILE_SYMTABS.
785 (find_linespec_symbols): Add cleanup to free CLASSES.
786 * symfile.c (find_separate_debug_file_by_debuglink): Add
787 cleanup to free DEBUGLINK.
788 * ui-out.c (clear_header_list): No need to check if
789 HEADER_NEXT.COLHDR is NULL.
790 Free HEADER_NEXT.COL_NAME.
791
792 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
793
794 * ada-lang.c (standard_lookup): Prevent uninitialized variable
795 warning.
796
797 2012-05-30 Jeff Kenton <jkenton@tilera.com>
798
799 * configure.host (gdb_host_cpu): Handle tilegx*.
800 (gdb_host): Handle tilegx-*-linux*.
801 * tilegx-linux-nat.c: New file.
802 * config/tilegx/linux.mh: New file.
803
804 2012-05-30 Jeff Kenton <jkenton@tilera.com>
805
806 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
807 tilegx-linux-tdep.o.
808 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
809 tilegx-linux-tdep.c.
810 * configure.tgt: Handle tilegx-*-linux*.
811 * tilegx-tdep.h: New file.
812 * tilegx-tdep.c: New file.
813 * tilegx-linux-tdep.c: New file.
814 * regformats/reg-tilegx.dat: New file.
815
816 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
817
818 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
819 accounting of hw watchpoints on ppc.
820
821 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
822
823 * source.c (openp): Expand tilde in path entries.
824
825 2012-05-29 Doug Evans <dje@google.com>
826
827 * buildsym.c (block_compar): Fix comment.
828 (end_symtab): Fix and clarify some comments.
829
830 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
831 cleanup_undefined_types.
832 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
833 All callers updated.
834
835 2012-05-29 Tom Tromey <tromey@redhat.com>
836
837 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
838 fails.
839 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
840 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
841 fails.
842 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
843 fails.
844
845 2012-05-29 Tristan Gingold <gingold@adacore.com>
846
847 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
848 (struct darwin_info): ... New struct.
849 (solib_darwin_pspace_data): New variable.
850 (darwin_pspace_data_cleanup): New function.
851 (get_darwin_info): Likewise.
852 (darwin_dyld_version_ok, darwin_load_image_infos)
853 (darwin_solib_get_all_image_info_addr_at_init)
854 (darwin_solib_read_all_image_info_addr): Add info argument.
855 Adjust code.
856 (darwin_current_sos): Use per pspace structure.
857 (darwin_solib_create_inferior_hook): Likewise.
858 (darwin_clear_solib): Likewise.
859 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
860
861 2012-05-28 Pedro Alves <palves@redhat.com>
862
863 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
864 block that uses them. Clear ecss before handling each event.
865
866 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
867
868 * solib-svr4.c (svr4_current_sos): New comment on
869 svr4_current_sos_via_xfer_libraries fall back.
870
871 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
872
873 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
874 it as a fallback for TYPE_IS_OPAQUE.
875 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
876 symbols for lookup_symbol.
877
878 2012-05-24 John Steele Scott <toojays@toojays.net>
879
880 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
881 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
882 (producer_is_gxx_lt_4_6): Move the checking and caching to...
883 (check_producer): ... this new function, which also checks for ICC
884 and caches the result.
885 (producer_is_icc): New function.
886 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
887 producer was ICC.
888
889 2012-05-24 Pedro Alves <palves@redhat.com>
890
891 PR gdb/7205
892
893 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
894 (default_gdb_signal_to_target): ... this. Add comment.
895 (default_gdb_signal_from_host): Rename to ...
896 (default_gdb_signal_from_target): ... this. Add comment.
897 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
898 (default_gdb_signal_to_target): ... this.
899 (default_gdb_signal_from_host): Rename to ...
900 (default_gdb_signal_from_target): ... this.
901 * corelow.c (core_open): Adjust to naming change. Replace comment.
902 * gdbarch.sh (gdb_signal_from_host): Rename to ...
903 (gdb_signal_from_target): ... this. Adjust to
904 default_gdb_signal_from_host naming change. Extend comment.
905 (gdb_signal_to_host): Rename to ...
906 (gdb_signal_to_target): ... this. Adjust to
907 default_gdb_signal_to_host naming change.
908 * gdbarch.h, gdbarch.c: Renegerate.
909
910 2012-05-24 Pedro Alves <palves@redhat.com>
911
912 PR gdb/7205
913
914 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
915
916 2012-05-24 Pedro Alves <palves@redhat.com>
917
918 PR gdb/7205
919
920 Replace target_signal with gdb_signal throughout.
921
922 2012-05-24 Pedro Alves <palves@redhat.com>
923
924 PR tui/14159
925
926 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
927 string, instead of reusing the va_list argument.
928
929 2012-05-24 Tom Tromey <tromey@redhat.com>
930
931 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
932 Remove.
933
934 2012-05-23 Doug Evans <dje@google.com>
935
936 * symtab.c (search_symbols): Formatting fixes.
937 (print_symbol_info): Formatting fixes.
938
939 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
940 int64_t change to leb128 API.
941 (read_encoded_value, decode_frame_entry_1): Ditto.
942 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
943 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
944 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
945 (execute_stack_op): Ditto.
946 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
947 (safe_read_uleb128, safe_read_sleb128): Ditto.
948 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
949 (dwarf2_compile_expr_to_ax): Ditto.
950 (locexpr_describe_location_piece): Ditto.
951 (disassemble_dwarf_expression): Ditto.
952 (locexpr_describe_location_1): Ditto.
953
954 2012-05-23 Stan Shebs <stan@codesourcery.com>
955 Kwok Cheung Yeung <kcy@codesourcery.com>
956
957 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
958 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
959 (mi-cmd-info.o): New rule.
960 * osdata.h (info_osdata_command): New declaration.
961 * osdata.c (info_osdata_command): Change to non-static.
962 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
963 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
964 * mi/mi-cmd-info.c: New file.
965
966 2012-05-23 Doug Evans <dje@google.com>
967
968 * symtab.c (search_symbols): Pass NULL for file_matcher to
969 expand_symtabs_matching if there are no files to match.
970
971 * gdbtypes.c (lookup_typename): Simplify.
972
973 2012-05-23 Pedro Alves <palves@redhat.com>
974
975 * arch-utils.h (default_target_signal_to_host): Delete.
976 * arch-utils.c (default_target_signal_to_host): Delete.
977 * gdbarch.sh (target_signal_to_host): Remove.
978 * gdbarch.h, gdbarch.c: Regenerate.
979
980 2012-05-22 Doug Evans <dje@google.com>
981
982 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
983 "const gdb_byte *".
984 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
985 (execute_cfa_program): Update to match API of leb128 functions.
986 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
987 "const gdb_byte *".
988 (read_unsigned_leb128, read_signed_leb128): Delete.
989 (read_initial_length): Change type of buf argument to
990 "const gdb_byte *".
991 (read_encoded_value): Update to match API of leb128 functions.
992 (decode_frame_entry): Change result to "const gdb_byte *", and
993 similarly for "start" parameter.
994 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
995 (dwarf2_build_frame_info): Change local frame_ptr to
996 "const gdb_byte *".
997 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
998 read_uleb128, read_sleb128. All callers updated.
999 (safe_skip_leb128): New function.
1000 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
1001 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
1002 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
1003 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
1004 read_uleb128, read_sleb128.
1005 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1006 (execute_stack_op): Update to match API of leb128 functions.
1007 * dwarf2expr.h: #include "leb128.h".
1008 (read_uleb128, read_sleb128): Delete.
1009 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
1010 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
1011 * dwarf2loc.c (debug_loc_kind): New enum.
1012 (decode_debug_loc_addresses): New function.
1013 (decode_debug_loc_dwo_addresses): New function.
1014 (dwarf2_find_location_expression): Rewrite.
1015 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
1016 (locexpr_describe_location_piece): Ditto.
1017 (disassemble_dwarf_expression): Ditto.
1018 (locexpr_describe_location_1): Ditto.
1019 (loclist_describe_location): Rewrite.
1020 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
1021 * dwarf2read.c (die_reader_specs): New member "buffer_end".
1022 (dwarf2_section_buffer_overflow_complaint): Renamed from
1023 dwarf2_macros_too_long_complaint. All callers updated.
1024 (skip_leb128): Delete.
1025 (init_cu_die_reader): Initialize reader->buffer_end.
1026 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
1027 (skip_form_bytes): New arg buffer_end. All callers updated.
1028 Replace call to skip_leb128 with gdb_skip_leb128.
1029 (skip_unknown_opcode): New arg mac_end. All callers updated.
1030 (fill_in_loclist_baton): Initialize baton->from_dwo.
1031
1032 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1033
1034 * mips-linux-nat.c (mips_linux_read_description): Use a more
1035 verbose error message.
1036
1037 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1038
1039 * NEWS: Add MIPS/Linux DSP support.
1040 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
1041 (SIGCONTEXT_DSPCTL): New macro.
1042 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
1043 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
1044 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
1045 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
1046 (N64_SIGCONTEXT_HI3): Likewise.
1047 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
1048 (N64_SIGCONTEXT_LO3): Likewise.
1049 (N64_SIGCONTEXT_DSPCTL): Likewise.
1050 (N64_SIGCONTEXT_FPCSR): Clarify definition.
1051 (mips_linux_o32_sigframe_init): Handle DSP registers.
1052 (mips_linux_n32n64_sigframe_init): Likewise.
1053
1054 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1055
1056 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
1057 call to abort.
1058
1059 2012-05-22 Pedro Alves <palves@redhat.com>
1060
1061 * target.h (store_waitstatus): Move declaration ...
1062 * inf-child.h (store_waitstatus): ... here.
1063 * target.c: Move inclusion of gdb_wait.h, and ...
1064 (store_waitstatus): ... this ...
1065 * inf-child.c: ... here.
1066 * linux-nat.c: Include inf-child.h.
1067 * rs6000-nat.c: Include inf-child.h.
1068 * spu-linux-nat.c: Include inf-child.h.
1069
1070 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1071
1072 * tracepoint.c (start_tracing): Add missing i18n markup.
1073 (stop_tracing, set_trace_user): Ditto.
1074 (set_trace_notes, set_trace_stop_notes): Ditto.
1075
1076 2012-05-21 Tom Tromey <tromey@redhat.com>
1077
1078 PR c++/7173:
1079 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
1080 types.
1081 * value.h (value_cast_pointers): Update.
1082 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
1083 (value_cast): Update.
1084 (update_search_result): New function.
1085 (do_search_struct_field): New, from search_struct_field. Check
1086 for ambiguous results.
1087 (search_struct_field): Rewrite.
1088 * infcall.c (value_arg_coerce): Update.
1089 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
1090 value_cast_pointers.
1091 * ada-lang.c (ada_convert_actual): Update.
1092
1093 2012-05-21 Tom Tromey <tromey@redhat.com>
1094
1095 * macroexp.c (macro_stringify): Terminate the string.
1096
1097 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1098
1099 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
1100 Describe it.
1101 * auto-load.c (auto_load_expand_dir_vars): New function.
1102 (auto_load_safe_path_vec_update): Use it, remove the
1103 substitute_path_component call thanks to it.
1104 (auto_load_objfile_script): Remove the debug_file_directory processing.
1105 Use auto_load_expand_dir_vars, remove the substitute_path_component
1106 call thanks to it.
1107 * configure: Regenerate.
1108 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
1109 path. Escape $ also for $debugdir.
1110 (--with_auto_load_safe_path): Escape $ also for $debugdir.
1111 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
1112
1113 2012-05-20 Doug Evans <dje@google.com>
1114
1115 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
1116 before use. Check for symtab->includes == NULL before scanning it.
1117
1118 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1119
1120 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
1121
1122 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1123
1124 * NEWS: Add microMIPS support and "set mips compression",
1125 "show mips compression" commands.
1126 * mips-tdep.h (mips_isa): New enum.
1127 (gdbarch_tdep): Add mips_isa.
1128 (mips_pc_is_mips16): Update prototype.
1129 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
1130 * mips-tdep.c (mips_compression_mips16): New variable.
1131 (mips_compression_micromips): Likewise.
1132 (mips_compression_strings): Likewise.
1133 (mips_compression_string): Likewise.
1134 (is_mips16_isa, is_micromips_isa): New functions.
1135 (is_mips16_addr): Rename to...
1136 (is_compact_addr): ... this.
1137 (unmake_mips16_addr): Likewise to...
1138 (unmake_compact_addr): ... this.
1139 (make_mips16_addr): Likewise to...
1140 (make_compact_addr): ... this.
1141 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
1142 functions.
1143 (mips_elf_make_msymbol_special): Handle microMIPS code.
1144 (msymbol_is_special): Rename to...
1145 (msymbol_is_mips16): ... this.
1146 (mips_make_symbol_special, mips_pc_is_mips16): Update
1147 accordingly.
1148 (msymbol_is_mips, msymbol_is_micromips): New functions.
1149 (mips16_to_32_reg): Rename to...
1150 (mips_reg3_to_reg): ... this.
1151 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
1152 (mips_pc_isa): Likewise.
1153 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
1154 code.
1155 (mips_fetch_instruction): Pass return status instead of printing
1156 an error message if requested. Handle microMIPS code. Bail out
1157 on an invalid ISA.
1158 (micromips_op): New macro.
1159 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1160 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1161 (b6s4_op, b7s3_reg): Likewise.
1162 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1163 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1164 (mips_insn_size): New function.
1165 (mips32_next_pc): Update mips_fetch_instruction call.
1166 (micromips_relative_offset7): New function.
1167 (micromips_relative_offset10): Likewise.
1168 (micromips_relative_offset16): Likewise.
1169 (micromips_pc_insn_size): Likewise.
1170 (micromips_bc1_pc): Likewise.
1171 (micromips_next_pc): Likewise.
1172 (unpack_mips16): Update mips_fetch_instruction call.
1173 (extended_mips16_next_pc): Update according to change to
1174 mips16_to_32_reg.
1175 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
1176 code.
1177 (mips16_scan_prologue): Update mips_fetch_instruction call.
1178 Update according to change to mips16_to_32_reg.
1179 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1180 (mips_insn16_frame_base_sniffer): Likewise.
1181 (micromips_decode_imm9): New function.
1182 (micromips_scan_prologue): Likewise.
1183 (mips_micro_frame_cache): Likewise.
1184 (mips_micro_frame_this_id): Likewise.
1185 (mips_micro_frame_prev_register): Likewise.
1186 (mips_micro_frame_sniffer): Likewise.
1187 (mips_micro_frame_unwind): New variable.
1188 (mips_micro_frame_base_address): New function.
1189 (mips_micro_frame_base): New variable.
1190 (mips_micro_frame_base_sniffer): New function.
1191 (mips32_scan_prologue): Update mips_fetch_instruction call.
1192 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1193 rather than for MIPS16.
1194 (mips_insn32_frame_base_sniffer): Likewise.
1195 (mips_addr_bits_remove): Handle microMIPS code.
1196 (deal_with_atomic_sequence): Rename to...
1197 (mips_deal_with_atomic_sequence): ... this. Update the type
1198 of the variable used to hold an instruction. Remove the ISA bit
1199 check. Update mips_fetch_instruction call.
1200 (micromips_deal_with_atomic_sequence): New function.
1201 (deal_with_atomic_sequence): Likewise.
1202 (mips_about_to_return): Handle microMIPS code. Update
1203 mips_fetch_instruction call.
1204 (heuristic_proc_start): Check for the standard MIPS ISA rather
1205 than for MIPS16. Update mips_pc_is_mips16 and
1206 mips_fetch_instruction calls. Handle microMIPS code.
1207 (mips_push_dummy_code): Handle microMIPS code.
1208 (mips_eabi_push_dummy_call): Likewise.
1209 (mips_o32_return_value): Update mips_pc_is_mips16 call.
1210 (mips_o64_push_dummy_call): Handle microMIPS code.
1211 (mips_o64_return_value): Update mips_pc_is_mips16 call.
1212 (is_delayed): Remove function.
1213 (mips_single_step_through_delay): Replace the call to is_delayed
1214 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
1215 Handle microMIPS code.
1216 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
1217 microMIPS code.
1218 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1219 call.
1220 (micromips_in_function_epilogue_p): New function.
1221 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1222 call.
1223 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1224 Handle microMIPS.
1225 (gdb_print_insn_mips): Likewise.
1226 (mips_breakpoint_from_pc): Likewise.
1227 (mips_remote_breakpoint_from_pc): New function.
1228 (mips32_instruction_has_delay_slot): Simplify making use of the
1229 updated mips_fetch_instruction interface.
1230 (micromips_instruction_has_delay_slot): New function.
1231 (mips16_instruction_has_delay_slot): Simplify making use of the
1232 updated mips_fetch_instruction interface.
1233 (mips_adjust_breakpoint_address): Check for the standard MIPS
1234 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
1235 calls. Handle microMIPS code.
1236 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1237 (mips_skip_trampoline_code): Handle microMIPS code.
1238 (global_mips_compression): New function.
1239 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1240 file flags. Register the microMIPS remote breakpoint handler
1241 and heuristic frame unwinder.
1242 (show_mips_compression): New function.
1243 (_initialize_mips_tdep): Add the "set mips compression" and
1244 "show mips compression" commands.
1245
1246 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
1247
1248 * ada-lang.c:
1249 * ada-tasks.c:
1250 * ada-varobj.c:
1251 * amd64-darwin-tdep.c:
1252 * arm-symbian-tdep.c:
1253 * arm-tdep.c:
1254 * avr-tdep.c:
1255 * ax-gdb.c:
1256 * bfin-linux-tdep.c:
1257 * breakpoint.c:
1258 * c-valprint.c:
1259 * cli/cli-cmds.c:
1260 * coffread.c:
1261 * cp-support.c:
1262 * cris-tdep.c:
1263 * dwarf2-frame-tailcall.c:
1264 * dwarf2-frame.c:
1265 * dwarf2expr.c:
1266 * dwarf2loc.c:
1267 * dwarf2read.c:
1268 * elfread.c:
1269 * eval.c:
1270 * expprint.c:
1271 * f-valprint.c:
1272 * frv-tdep.c:
1273 * h8300-tdep.c:
1274 * hppa-hpux-tdep.c:
1275 * hppa-tdep.c:
1276 * hppanbsd-tdep.c:
1277 * i386-nto-tdep.c:
1278 * i386-tdep.c:
1279 * i387-tdep.c:
1280 * ia64-tdep.c:
1281 * jit.c:
1282 * linespec.c:
1283 * linux-tdep.c:
1284 * lm32-tdep.c:
1285 * m2-valprint.c:
1286 * m32c-tdep.c:
1287 * m32r-rom.c:
1288 * m32r-tdep.c:
1289 * m68k-tdep.c:
1290 * m68klinux-tdep.c:
1291 * mi/mi-main.c:
1292 * microblaze-tdep.c:
1293 * mips-linux-tdep.c:
1294 * mips-tdep.c:
1295 * mn10300-tdep.c:
1296 * p-valprint.c:
1297 * parse.c:
1298 * ppc-linux-tdep.c:
1299 * ppc-sysv-tdep.c:
1300 * printcmd.c:
1301 * python/py-finishbreakpoint.c:
1302 * python/py-inferior.c:
1303 * python/py-infthread.c:
1304 * python/py-type.c:
1305 * python/python.c:
1306 * remote-fileio.c:
1307 * remote-m32r-sdi.c:
1308 * remote-mips.c:
1309 * reverse.c:
1310 * rl78-tdep.c:
1311 * rs6000-aix-tdep.c:
1312 * rs6000-tdep.c:
1313 * s390-tdep.c:
1314 * score-tdep.c:
1315 * sh64-tdep.c:
1316 * skip.c:
1317 * solib-darwin.c:
1318 * solib-dsbt.c:
1319 * solib-frv.c:
1320 * sparc-tdep.c:
1321 * spu-multiarch.c:
1322 * spu-tdep.c:
1323 * stack.c:
1324 * symfile.c:
1325 * symtab.c:
1326 * tic6x-tdep.c:
1327 * tracepoint.c:
1328 * v850-tdep.c:
1329 * valarith.c:
1330 * valprint.c:
1331 * value.c:
1332 * xcoffread.c:
1333 * xtensa-tdep.c:
1334 * ada-lang.c:
1335 * ada-tasks.c:
1336 * ada-varobj.c:
1337 * amd64-darwin-tdep.c:
1338 * arm-symbian-tdep.c:
1339 * arm-tdep.c: Delete unused variables.
1340
1341 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1342
1343 Rename $ddir to $datadir.
1344 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1345 * auto-load.c (auto_load_safe_path_vec_update)
1346 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1347 * configure: Regenerate.
1348 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1349 Likewise. Remove the 'use $ddir' help string.
1350
1351 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1352
1353 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1354 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1355
1356 2012-05-18 Tom Tromey <tromey@redhat.com>
1357
1358 PR exp/13907:
1359 * valprint.h (struct value_print_options) <symbol_print>: New
1360 field.
1361 * valprint.c (user_print_options): Add default for symbol_print.
1362 (show_symbol_print): New function.
1363 (generic_val_print): Respect symbol_print.
1364 (_initialize_valprint): Add "print symbol" setting.
1365 * f-valprint.c (f_val_print): Respect symbol_print.
1366 * c-valprint.c (c_val_print): Respect symbol_print.
1367 * NEWS: Update.
1368 * printcmd.c (print_address_symbolic): Return int. Ignore some
1369 zero-size symbols.
1370 (print_address_demangle): Return int.
1371 * defs.h: (print_address_symbolic): Return int.
1372 * value.h (print_address_demangle): Return int.
1373
1374 2012-05-18 Tom Tromey <tromey@redhat.com>
1375
1376 * valprint.c (val_print_string): Don't print leading space.
1377 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1378 print space before string or vtbl.
1379 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1380 before string.
1381 * jv-valprint.c (java_value_print): Print space before string.
1382 * go-valprint.c (print_go_string): Print space before string.
1383 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1384 space before string.
1385 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1386 space before string or vtbl.
1387 * auxv.c (fprint_target_auxv): Print space after address.
1388
1389 2012-05-18 Tom Tromey <tromey@redhat.com>
1390
1391 * printcmd.c (print_address_demangle): Remove special case for 0.
1392
1393 2012-05-18 Tom Tromey <tromey@redhat.com>
1394
1395 * printcmd.c (print_address_demangle): Add 'opts' argument.
1396 * p-valprint.c (pascal_val_print): Update.
1397 * jv-valprint.c (java_val_print): Update.
1398 * value.h: Update.
1399 * valprint.c (generic_val_print): Update.
1400 (print_function_pointer_address): Add 'options' argument. Remove
1401 'addressprint' argument. Update.
1402 * m2-valprint.c (print_unpacked_pointer): Update.
1403 * gnu-v3-abi.c (print_one_vtable): Update.
1404 (gnuv3_print_method_ptr): Update.
1405 * f-valprint.c (f_val_print): Update.
1406 * cp-valprint.c (cp_print_value_fields): Update.
1407 * valprint.h (print_function_pointer_address): Update.
1408 * c-valprint.c (c_val_print): Update.
1409
1410 2012-05-18 Tom Tromey <tromey@redhat.com>
1411
1412 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1413 directly corresponding to the found psymtab.
1414 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1415 (dw2_find_pc_sect_symtab): Use it.
1416 * block.h (blockvector_contains_pc): Declare.
1417 * block.c (find_block_in_blockvector): New function.
1418 (blockvector_for_pc_sect): Use it.
1419 (blockvector_contains_pc): New function.
1420
1421 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1422
1423 * mips-tdep.h (mips_write_pc): New prototype.
1424 * mips-tdep.c (mips_write_pc): Make external, add description.
1425 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1426 add description.
1427
1428 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1429
1430 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1431 mips_regnum->pc.
1432 (mips_unwind_pc, mips_write_pc): Likewise.
1433 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1434 gdbarch_read_pc.
1435
1436 2012-05-17 Joel Brobecker <brobecker@adacore.com>
1437
1438 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1439 proc_warn, proc_error, proc_get_status, proc_flags,
1440 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1441 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1442 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1443 proc_stop_process, proc_wait_for_stop, proc_run_process,
1444 proc_set_traced_signals, proc_set_traced_faults,
1445 proc_set_traced_sysentry, proc_set_traced_sysexit,
1446 proc_set_held_signals, proc_get_held_signals,
1447 proc_get_traced_signals, proc_get_traced_faults,
1448 proc_get_traced_sysentry, proc_get_traced_sysexit,
1449 proc_clear_current_fault, proc_set_current_signal,
1450 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1451 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1452 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1453 proc_get_current_thread, proc_get_current_thread,
1454 proc_get_current_thread, proc_update_threads,
1455 proc_update_threads, proc_update_threads, proc_update_threads,
1456 proc_iterate_over_threads, procfs_find_new_threads,
1457 procfs_pid_to_str): Make static. Remove advance declaration.
1458 (proc_cursig): Make static. Conditionalized defintion on
1459 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1460 (proc_syscall, proc_set_kill_on_last_close,
1461 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1462 proc_get_pending_signals, proc_get_signal_actions,
1463 proc_trace_signal, proc_ignore_signal): Delete.
1464
1465 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1466
1467 * coffread.c (cs_section_address): Passing proper argument for
1468 `bfd_get_section_vma'.
1469 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1470 `bfd_get_section_flags'.
1471 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1472 `bfd_get_section_vma'.
1473
1474 2012-05-16 Tom Tromey <tromey@redhat.com>
1475
1476 PR macros/13205:
1477 * macrotab.h: (macro_define_special): Declare.
1478 (enum macro_special_kind): New.
1479 (struct macro_definition) <argc, replacement>: Update comments.
1480 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1481 (macro_define_object_internal): New function.
1482 (macro_define_object): Use it.
1483 (macro_define_special): New function.
1484 (fixup_definition): New function.
1485 (macro_lookup_definition, foreach_macro_in_scope)
1486 (foreach_macro): Use fixup_definition.
1487 * macroexp.h (macro_stringify): Declare.
1488 * macroexp.c (free_buffer_return_text): New function.
1489 (stringify): Constify "arg".
1490 (macro_stringify): New function.
1491 * dwarf2read.c (macro_start_file): Call macro_define_special.
1492
1493 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1494 Maciej W. Rozycki <macro@mips.com>
1495
1496 * breakpoint.h (bp_location): Add related_address member.
1497 * inferior.h (get_return_value): Take a pointer to struct value
1498 instead of struct type for the function requested.
1499 * value.h (using_struct_return): Likewise.
1500 * gdbarch.sh (return_value): Take a pointer to struct value
1501 instead of struct type for the function requested.
1502 * breakpoint.c (set_breakpoint_location_function): Initialize
1503 related_address for bp_gnu_ifunc_resolver breakpoints.
1504 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1505 requested function's address to gdbarch_return_value.
1506 * eval.c (evaluate_subexp_standard): Pass the requested
1507 function's address to using_struct_return.
1508 * infcall.c (call_function_by_hand): Pass the requested
1509 function's address to using_struct_return and
1510 gdbarch_return_value.
1511 * infcmd.c (get_return_value): Take a pointer to struct value
1512 instead of struct type for the function requested.
1513 (print_return_value): Update accordingly.
1514 (finish_command_continuation): Likewise.
1515 * stack.c (return_command): Pass the requested function's
1516 address to using_struct_return and gdbarch_return_value.
1517 * value.c (using_struct_return): Take a pointer to struct value
1518 instead of struct type for the function requested. Pass the
1519 requested function's address to gdbarch_return_value.
1520 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1521 New function_value member, replacing function_type.
1522 (bpfinishpy_dealloc): Update accordingly.
1523 (bpfinishpy_pre_stop_hook): Likewise.
1524 (bpfinishpy_init): Likewise. Record the requested function's
1525 address.
1526 * mips-tdep.c (mips_fval_reg): New enum.
1527 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1528 words put in GP registers.
1529 (mips_o64_push_dummy_call): Update a comment.
1530 (mips_o32_return_value): Take a pointer to struct value instead
1531 of struct type for the function requested and use it to check if
1532 using the MIPS16 calling convention. Return the designated
1533 general purpose registers for floating-point values returned in
1534 MIPS16 mode.
1535 (mips_o64_return_value): Likewise.
1536 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1537 (ppc_sysv_abi_broken_return_value): Likewise.
1538 (ppc64_sysv_abi_return_value): Likewise.
1539 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1540 value instead of struct type for the function requested.
1541 * amd64-tdep.c (amd64_return_value): Likewise.
1542 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1543 * arm-tdep.c (arm_return_value): Likewise.
1544 * avr-tdep.c (avr_return_value): Likewise.
1545 * bfin-tdep.c (bfin_return_value): Likewise.
1546 * cris-tdep.c (cris_return_value): Likewise.
1547 * frv-tdep.c (frv_return_value): Likewise.
1548 * h8300-tdep.c (h8300_return_value): Likewise.
1549 (h8300h_return_value): Likewise.
1550 * hppa-tdep.c (hppa32_return_value): Likewise.
1551 (hppa64_return_value): Likewise.
1552 * i386-tdep.c (i386_return_value): Likewise.
1553 * ia64-tdep.c (ia64_return_value): Likewise.
1554 * iq2000-tdep.c (iq2000_return_value): Likewise.
1555 * lm32-tdep.c (lm32_return_value): Likewise.
1556 * m32c-tdep.c (m32c_return_value): Likewise.
1557 * m32r-tdep.c (m32r_return_value): Likewise.
1558 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1559 * m68k-tdep.c (m68k_return_value): Likewise.
1560 (m68k_svr4_return_value): Likewise.
1561 * m88k-tdep.c (m88k_return_value): Likewise.
1562 * mep-tdep.c (mep_return_value): Likewise.
1563 * microblaze-tdep.c (microblaze_return_value): Likewise.
1564 * mn10300-tdep.c (mn10300_return_value): Likewise.
1565 * moxie-tdep.c (moxie_return_value): Likewise.
1566 * mt-tdep.c (mt_return_value): Likewise.
1567 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1568 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1569 (ppc_sysv_abi_broken_return_value): Likewise.
1570 (ppc64_sysv_abi_return_value): Likewise.
1571 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1572 * rl78-tdep.c (rl78_return_value): Likewise.
1573 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1574 * rx-tdep.c (rx_return_value): Likewise.
1575 * s390-tdep.c (s390_return_value): Likewise.
1576 * score-tdep.c (score_return_value): Likewise.
1577 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1578 (sh_return_value_fpu): Likewise.
1579 * sh64-tdep.c (sh64_return_value): Likewise.
1580 * sparc-tdep.c (sparc32_return_value): Likewise.
1581 * sparc64-tdep.c (sparc64_return_value): Likewise.
1582 * spu-tdep.c (spu_return_value): Likewise.
1583 * tic6x-tdep.c (tic6x_return_value): Likewise.
1584 * v850-tdep.c (v850_return_value): Likewise.
1585 * vax-tdep.c (vax_return_value): Likewise.
1586 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1587 * xtensa-tdep.c (xtensa_return_value): Likewise.
1588 * gdbarch.c: Regenerate.
1589 * gdbarch.h: Regenerate.
1590
1591 2012-05-15 Tom Tromey <tromey@redhat.com>
1592
1593 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1594
1595 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1596
1597 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1598 of command in two error message.
1599
1600 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1601
1602 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1603
1604 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1605
1606 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1607
1608 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1609
1610 * NEWS (show auto-load scripts-directory): Add forgotten command.
1611
1612 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1613
1614 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1615 parameters.
1616
1617 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1618
1619 * amd64-tdep.c: Include features/i386/x32.c and
1620 features/i386/x32-avx.c.
1621 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1622 initialize_tdesc_x32_avx.
1623
1624 2012-05-14 Stan Shebs <stan@codesourcery.com>
1625
1626 Add dynamic printf.
1627 * breakpoint.h (enum bptype): New type bp_dprintf.
1628 (struct breakpoint): New field extra_string.
1629 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1630 (create_breakpoint): Add extra_string arg.
1631 * breakpoint.c (dprintf_breakpoint_ops): New.
1632 (is_breakpoint): Add bp_dprintf.
1633 (bpstat_what): Add dprintf case.
1634 (bptype_string): Ditto.
1635 (print_one_breakpoint_location): Ditto.
1636 (init_bp_location): Ditto.
1637 (bkpt_print_mention): Ditto.
1638 (dprintf_style_enums): New array.
1639 (dprintf_style): New global.
1640 (dprintf_function): New global.
1641 (dprintf_channel): New global.
1642 (update_dprintf_command_list): New function.
1643 (update_dprintf_commands): New function.
1644 (init_breakpoint_sal): Add extra_string argument, handle it.
1645 (create_breakpoint_sal): Add extra_string argument.
1646 (create_breakpoints_sal): Add extra_string argument, update callers.
1647 (find_condition_and_thread): Add extra argument.
1648 (create_breakpoint): Add extra_string argument, record it.
1649 (dprintf_command): New function.
1650 (break_command_1): Add arg to create_breakpoint call.
1651 (handle_gnu_v3_exceptions): Ditto.
1652 (trace_command): Ditto.
1653 (ftrace_command): Ditto.
1654 (strace_command): Ditto.
1655 (bkpt_print_mention): Add dprintf case.
1656 (create_breakpoint_sal_default): Add extra_string argument.
1657 (_initialize_breakpoint): Add new commands.
1658 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1659 * python/py-breakpoint.c (bppy_init): Ditto.
1660 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1661
1662 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1663
1664 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1665
1666 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1667
1668 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1669 unsigned long long.
1670
1671 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1672
1673 Add a new function gdb.find_pc_line to the Python API.
1674 * NEWS (Python Scripting): Add entry about the new function.
1675 * python/python.c (gdbpy_find_pc_line): New function which
1676 implements gdb.find_pc_line.
1677 (GdbMethods): Add entry for the new function.
1678
1679 2012-05-12 Pedro Alves <palves@redhat.com>
1680
1681 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1682 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1683
1684 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1685
1686 * inferior.c: Include completer.h
1687 (initialize_inferiors): Set completer of add-inferior to
1688 filename_completer.
1689
1690 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1691
1692 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1693 gdbarch_ptr_bit for x32 core dump.
1694
1695 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1696
1697 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1698 and features/i386/x32-avx-linux.c.
1699
1700 2012-05-11 Stan Shebs <stan@codesourcery.com>
1701 Kwok Cheung Yeung <kcy@codesourcery.com>
1702
1703 * NEWS: Describe new info os commands.
1704 * common/linux-osdata.c (PID_T, TIME_T): Define.
1705 (MAX_PID_T_STRLEN): New.
1706 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1707 MAX_PID_T_STRLEN.
1708 (command_from_pid): Add comment. Change to use PID_T.
1709 (commandline_from_pid): Change to use PID_T.
1710 (user_from_pid): Add comment.
1711 (get_process_owner): Add comment. Change to use PID_T and
1712 MAX_PID_T_STRLEN.
1713 (get_number_of_cpu_cores): Add comment.
1714 (get_cores_used_by_process): Add comment. Change to use PID_T and
1715 MAX_PID_T_STRLEN.
1716 (linux_xfer_osdata_processes): Change to use PID_T and
1717 MAX_PID_T_STRLEN.
1718 (compare_processes): New function.
1719 (linux_xfer_osdata_processgroups): New function.
1720 (linux_xfer_osdata_threads): Change to use PID_T.
1721 (linux_xfer_osdata_fds): New function.
1722 (format_socket_state, print_sockets): New functions.
1723 (union socket_addr): New union.
1724 (linux_xfer_osdata_isockets): New function.
1725 (time_from_time_t, group_from_gid): New functions.
1726 (linux_xfer_osdata_shm): New function.
1727 (linux_xfer_osdata_sem): New function.
1728 (linux_xfer_osdata_msg): New function.
1729 (linux_xfer_osdata_modules): New function.
1730 (osdata_table): Add new entries.
1731 * common/buffer.c (buffer_xml_printf): Add support for long and
1732 long long format specifiers.
1733
1734 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1735
1736 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1737 (tdesc_x32_avx_linux): Likewise.
1738
1739 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1740
1741 Implement multi-component --with-auto-load-dir.
1742 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1743 entries.
1744 (--with-auto-load-safe-path): Update the default value description.
1745 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1746 New.
1747 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1748 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1749 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1750 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1751 "set auto-load scripts-directory".
1752 * config.in: Regenerate.
1753 * configure: Regenerate.
1754 * configure.ac (--with-auto-load-dir): New configure option.
1755 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1756
1757 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1758
1759 Provide $ddir substitution for --with-auto-load-safe-path.
1760 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1761 entries.
1762 * auto-load.c: Include observer.h.
1763 (auto_load_safe_path_vec_update): Call substitute_path_component for
1764 each component. New variable ddir_subst.
1765 (auto_load_gdb_datadir_changed): New function.
1766 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1767 AUTO_LOAD_SAFE_PATH. New comment.
1768 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1769 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1770 * config.in: Regenerate.
1771 * configure: Regenerate.
1772 * configure.ac (--auto-load-safe-path): Rename
1773 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1774 GDB_DATADIR/auto-load.
1775 * defs.h (substitute_path_component): New declaration.
1776 * top.c: Include observer.h.
1777 (set_gdb_datadir): New function.
1778 (init_main): Install it for "set data-directory".
1779 * utils.c (substitute_path_component): New function.
1780
1781 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1782
1783 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1784 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1785 DEBUG_FILE_DIRECTORY. Handle multiple components of
1786 DEBUG_FILE_DIRECTORY.
1787
1788 2012-05-10 Tom Tromey <tromey@redhat.com>
1789
1790 * dwarf2read.c (recursively_write_psymbols): New function.
1791 (write_psymtabs_to_index): Use it.
1792
1793 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1794 field.
1795 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1796 (load_partial_comp_unit): Update.
1797 (queue_comp_unit): Add argument 'pretend_language'.
1798 (process_queue): Update.
1799 (psymtab_to_symtab_1): Skip dependencies that have a user.
1800 (load_partial_comp_unit_reader): Give meaning to the 'data'
1801 argument.
1802 (load_full_comp_unit): Add 'pretend_language' argument.
1803 (process_full_comp_unit): Add 'pretend_language' argument. Set
1804 language on CU.
1805 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1806 Update.
1807 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1808 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1809 Update.
1810 (prepare_one_comp_unit): Add 'pretend_language' argument.
1811
1812 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1813 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1814 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1815 (dw2_do_instantiate_symtab): Check whether symtab was read in
1816 before queueing.
1817 (dw2_instantiate_symtab): Add assertion. Call
1818 process_cu_includes.
1819 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1820 (partial_symtab_p): New typedef.
1821 (set_partial_user): New function.
1822 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1823 (scan_partial_symbols): Add imported CU to imported_symtabs.
1824 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1825 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1826 (get_symtab, recursively_compute_inclusions)
1827 (compute_symtab_includes, process_cu_includes)
1828 (process_imported_unit_die): New functions.
1829 (process_die) <DW_TAG_imported_unit>: New case.
1830 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1831
1832 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1833 comment.
1834 (struct partial_die_info) <locdesc>: Remove.
1835 <d>: New field.
1836 (process_psymtab_comp_unit): Add 'read_partial' argument.
1837 Update.
1838 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1839 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1840 (add_partial_symbol): Update.
1841 (process_die): Handle DW_TAG_partial_unit.
1842 (read_file_scope): Update comment.
1843 (load_partial_dies): Handle DW_TAG_imported_unit.
1844 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1845 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1846
1847 2012-05-10 Tom Tromey <tromey@redhat.com>
1848
1849 * cc-with-dwz.sh: New file.
1850
1851 2012-05-10 Tom Tromey <tromey@redhat.com>
1852
1853 * symtab.h (struct symtab) <includes, user>: New fields.
1854 * block.h (struct block_iterator) <d, idx, which>: New fields.
1855 * block.c (initialize_block_iterator, find_iterator_symtab)
1856 (block_iterator_step, block_iter_name_step)
1857 (block_iter_match_step): New functions.
1858 (block_iterator_first, block_iterator_next)
1859 (block_iter_name_first, block_iter_name_next)
1860 (block_iter_match_first, block_iter_match_next): Rewrite.
1861 (get_block_symtab): New function.
1862
1863 2012-05-10 Tom Tromey <tromey@redhat.com>
1864
1865 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1866 set_block_symtab.
1867 * jit.c (finalize_symtab): Use allocate_global_block,
1868 set_block_symtab.
1869 * buildsym.c (finish_block_internal): New function, from old
1870 finish_block.
1871 (finish_block): Rewrite.
1872 (end_symtab): Use finish_block_internal, set_block_symtab.
1873 * block.h (struct global_block): New.
1874 (allocate_global_block, set_block_symtab): Declare.
1875 * block.c (allocate_global_block, set_block_symtab): New
1876 functions.
1877
1878 2012-05-10 Tom Tromey <tromey@redhat.com>
1879
1880 * psymtab.c (partial_map_expand_apply): Add assertion.
1881 (partial_map_symtabs_matching_filename): Skip included psymtabs.
1882 (psymtab_to_symtab): Find unshared psymtab.
1883 (dump_psymtab): Print including psymtabs.
1884 (recursively_search_psymtabs): New function.
1885 (expand_symtabs_matching_via_partial): Use it.
1886 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
1887 fields.
1888 (enum psymtab_search_status): New.
1889
1890 2012-05-10 Tom Tromey <tromey@redhat.com>
1891
1892 * tracepoint.c (scope_info): Update.
1893 * symtab.c (lookup_block_symbol, iterate_over_symbols)
1894 (find_pc_sect_symtab, search_symbols)
1895 (default_make_symbol_completion_list_break_on)
1896 (make_file_symbol_completion_list): Update.
1897 * symmisc.c (dump_symtab_1): Update.
1898 * stack.c (print_frame_args, iterate_over_block_locals)
1899 (print_frame_labels, iterate_over_block_arg_vars): Update.
1900 * python/py-block.c (block_object) <dict>: Remove.
1901 <block>: New field.
1902 <iter>: Change type.
1903 (blpy_iter): Update.
1904 (blpy_block_syms_iternext): Update.
1905 * psymtab.c (map_block): Use block iterators.
1906 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
1907 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1908 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
1909 * infrun.c (check_exception_resume): Update.
1910 * cp-support.c (make_symbol_overload_list_block): Update.
1911 * coffread.c (patch_opaque_types): Update.
1912 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
1913 * block.h (struct block_iterator): New.
1914 (block_iterator_first, block_iterator_next, block_iter_name_first)
1915 (block_iter_name_next, block_iter_match_first)
1916 (block_iter_match_next): Declare.
1917 (ALL_BLOCK_SYMBOLS): Redefine.
1918 * block.c (block_iterator_first, block_iterator_next)
1919 (block_iter_name_first, block_iter_name_next)
1920 (block_iter_match_first, block_iter_match_next): New functions.
1921 * ada-lang.c (ada_add_block_symbols)
1922 (ada_make_symbol_completion_list): Use block iterator.
1923
1924 2012-05-10 Tom Tromey <tromey@redhat.com>
1925
1926 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
1927 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
1928 (lookup_partial_symbol, find_last_source_symtab_from_partial)
1929 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
1930 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
1931 Update.
1932
1933 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1934
1935 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
1936 print-file-var-lib2.c, print-file-var-main.c and
1937 print-file-var.exp (located in gdb/testsuite/gdb.base).
1938
1939 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1940
1941 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1942 try locating the symbol in the symbol's own objfile first, before
1943 extending the search to all objfiles.
1944 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1945 out of lookup_symbol_aux_symtabs.
1946 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1947 Replace extracted-out code by call to lookup_symbol_aux_objfile.
1948 Do not search EXCLUDE_OBJFILE.
1949 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1950 (lookup_symbol_global): Search for matches in the block's objfile
1951 first, before searching all other objfiles.
1952
1953 2012-05-10 Tristan Gingold <gingold@adacore.com>
1954
1955 * printcmd.c (set_command): Add pre/post inc/dec.
1956
1957 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
1958
1959 * gdb.1: Document -ex option.
1960
1961 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1962
1963 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
1964 * inferior.h (AT_SYMBOL): Delete.
1965
1966 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1967
1968 * mips-tdep.c (mips_push_dummy_code): New function.
1969 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
1970 ON_STACK and install mips_push_dummy_code as our gdbarch
1971 push_dummy_code routine.
1972
1973 2012-05-09 Pedro Alves <palves@redhat.com>
1974
1975 * target.c (set_maintenance_target_async_permitted): Rename to ...
1976 (set_target_async_command): ... this.
1977 (show_maintenance_target_async_permitted): Rename to ...
1978 (show_target_async_command): ... this.
1979 (initialize_targets): Adjust.
1980
1981 2012-05-08 Doug Evans <dje@google.com>
1982
1983 * go-exp.y (classify_name): Add missing assignment of fields of
1984 yylval.ssym.
1985
1986 2012-05-08 Eli Zaretskii <eliz@gnu.org>
1987
1988 Display the ">" prompt in interactive mode while reading canned
1989 commands, even when the current interpreter is MI.
1990
1991 * interps.c (interp_set_temp): New function.
1992
1993 * interps.h (interp_set_temp): Add prototype.
1994
1995 * cli/cli-script.c (restore_interp): New cleanup function.
1996 (read_command_lines): Temporarily override the current interpreter
1997 with CLI and arrange for restoring the original one.
1998
1999 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2000
2001 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
2002
2003 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2004
2005 * probe.c (parse_probes): Move conditional to check for
2006 debuginfo files from here...
2007 * stap-probe.c (stap_get_probes): ... to here.
2008
2009 2012-05-07 Mark Kettenis <kettenis@gnu.org>
2010 H.J. Lu <hongjiu.lu@intel.com>
2011
2012 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
2013 `movl %esp, %ebp' for the X32 ABI.
2014
2015 2012-05-07 Tom Tromey <tromey@redhat.com>
2016
2017 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
2018 get_DW_TAG_name.
2019 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
2020 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
2021 (dwarf_stack_op_name): Remove.
2022 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
2023 (decode_locdesc): Use get_DW_OP_name.
2024 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
2025 (dwarf2_compile_expr_to_ax): Likewise.
2026 (disassemble_dwarf_expression): Likewise.
2027 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
2028
2029 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
2030
2031 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
2032 (sh_linux_sigtramp_cache): New function.
2033 (sh_linux_sigreturn_init): New function.
2034 (sh_linux_rt_sigreturn_init): New function.
2035 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
2036 patterns.
2037 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
2038 syscall codes.
2039 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
2040 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
2041 (sh_linux_init_abi): Add init calls to register new tramp_frame
2042 definitions under 32-bit SH, update comments.
2043
2044 2012-05-07 Pedro Alves <palves@redhat.com>
2045
2046 PR gdb/10952
2047
2048 * amd64-linux-tdep.c: Include glibc-tdep.h.
2049 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
2050 gdbarch_skip_solib_resolver callback.
2051
2052 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2053
2054 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
2055 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
2056 (show_auto_load_safe_path): Check any-directory by comparison with "/".
2057 (add_auto_load_safe_path): Change the error message.
2058 (_initialize_auto_load): Change the "safe-path" help text.
2059 * configure: Regenerate
2060 * configure.ac (--without-auto-load-safe-path): Set
2061 WITH_AUTO_LOAD_SAFE_PATH to /.
2062
2063 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
2064
2065 * stap-probe.h: Do not include unecessary `probe.h'.
2066
2067 2012-05-05 Alan Modra <amodra@gmail.com>
2068
2069 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
2070 bfd_und_section_ptr.
2071 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
2072 and bfd_com_section_ptr.
2073
2074 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2075
2076 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
2077
2078 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2079
2080 * windows-nat.h (segment_register_p_ftype): New typedef.
2081 (windows_set_segment_register_p): Add declaration.
2082 * windows-nat.c (segment_register_p): New static global.
2083 (windows_set_segment_register_p): New function.
2084 (do_windows_fetch_inferior_registers): Add special handling
2085 for segment registers.
2086 * amd64-windows-nat.c: #include "amd64-tdep.h".
2087 (amd64_windows_segment_register_p): New function.
2088 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
2089 * i386-windows-nat.c: #include "i386-tdep.h".
2090 (i386_windows_segment_register_p): New function.
2091 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
2092
2093 2012-05-04 Tristan Gingold <gingold@adacore.com>
2094
2095 * printcmd.c (set_command): Emit a warning if the expression is not
2096 an assignment.
2097
2098 2012-05-03 Joel Brobecker <brobecker@adacore.com>
2099
2100 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
2101 Make static.
2102
2103 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2104
2105 * stap-probe.c (stap_is_operator): Change declaration.
2106 (stap_get_opcode): Change return value.
2107 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
2108 `stap_parse_argument_1'.
2109
2110 2012-05-03 Pedro Alves <pedro@codesourcery.com>
2111
2112 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
2113 debug log.
2114
2115 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
2116
2117 Add two new methods global_block and static_block to gdb.Symtab
2118 objects.
2119 * NEWS (Python scripting): Add entry about the new methods.
2120 * python/py-symtab.c (stpy_global_block): New function which
2121 implements the gdb.Symtab.global_block() method.
2122 (stpy_static_block): New function which implements the
2123 gdb.Symtab.static_block() method.
2124 (symtab_object_methods): Add entries for the two new methods.
2125
2126 2012-05-03 Doug Evans <dje@google.com>
2127
2128 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
2129 files.
2130
2131 2012-05-03 Yao Qi <yao@codesourcery.com>
2132
2133 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
2134 space.
2135 (i386_process_record): Ditto.
2136
2137 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2138
2139 * infcall.c (unwind_on_signal_p): Make static.
2140
2141 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2142
2143 * sol-thread.c (solaris_pid_to_str): Make static.
2144 (_initialize_sol_thread): Add prototype.
2145
2146 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2147
2148 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
2149
2150 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
2151
2152 * MAINTAINERS: Remove myself.
2153
2154 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2155
2156 Fix --without-auto-load-safe-path for MS-Windows host platform.
2157 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2158
2159 2012-05-02 Eli Zaretskii <eliz@gnu.org>
2160
2161 * gdb_curses.h: Undefine KEY_EVENT before including curses
2162 headers. Move "#undef MOUSE_MOVED" before any curses header
2163 inclusion.
2164
2165 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2166
2167 * features/i386/i386-mmx-linux.c: Regenerate.
2168 * features/rs6000/powerpc-32.c: Likewise.
2169 * features/rs6000/powerpc-32l.c: Likewise.
2170 * features/rs6000/powerpc-403.c: Likewise.
2171 * features/rs6000/powerpc-403gc.c: Likewise.
2172 * features/rs6000/powerpc-405.c: Likewise.
2173 * features/rs6000/powerpc-505.c: Likewise.
2174 * features/rs6000/powerpc-601.c: Likewise.
2175 * features/rs6000/powerpc-602.c: Likewise.
2176 * features/rs6000/powerpc-603.c: Likewise.
2177 * features/rs6000/powerpc-604.c: Likewise.
2178 * features/rs6000/powerpc-64.c: Likewise.
2179 * features/rs6000/powerpc-64l.c: Likewise.
2180 * features/rs6000/powerpc-750.c: Likewise.
2181 * features/rs6000/powerpc-860.c: Likewise.
2182 * features/rs6000/powerpc-e500.c: Likewise.
2183 * features/rs6000/powerpc-e500l.c: Likewise.
2184 * features/rs6000/powerpc-isa205-32l.c: Likewise.
2185 * features/rs6000/powerpc-isa205-64l.c: Likewise.
2186 * features/rs6000/rs6000.c: Likewise.
2187
2188 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2189
2190 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2191 variable.
2192 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2193 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2194 (stap_parse_argument) <e>: Likewise.
2195 (handle_stap_probe) <byte_order>: Likewise.
2196
2197 2012-04-30 Doug Evans <dje@google.com>
2198
2199 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2200 init_and_read_dies_worker. All callers updated.
2201 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
2202 replaced with init_cutu_and_read_dies.
2203 (load_partial_comp_unit): Pass 1 for use_existing_cu.
2204 (find_partial_die): Remove FIXME. Don't free current CU.
2205
2206 2012-04-30 Sterling Augustine <saugustine@google.com>
2207
2208 * contrib: New directory.
2209 * contrib/test_pubnames_and_indexes.py: New file.
2210
2211 2012-04-30 Doug Evans <dje@google.com>
2212
2213 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2214 All callers updated.
2215 (init_cu_die_reader): Verify the section is non-empty.
2216 (dwarf_decode_line_header): Don't dereference section->asection
2217 until we know the section is present.
2218
2219 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
2220
2221 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2222 probes.
2223
2224 2012-04-29 Yao Qi <yao@codesourcery.com>
2225
2226 * gdb-code-style.el: New hook gdb-markup-hook
2227 and gdb-comment-hook.
2228
2229 2012-04-28 Doug Evans <dje@google.com>
2230
2231 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
2232 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2233 objfile->obfd.
2234 * symfile.h (dwarf2_debug_sections): New member addr.
2235 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2236 (ctx_no_get_addr_index): New function.
2237 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2238 (ctx_no_get_addr_index): Declare.
2239 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2240 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2241 (dwarf_expr_ctx_funcs): Update.
2242 (needs_get_addr_index): New function.
2243 (needs_frame_ctx_funcs): Update.
2244 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2245 * dwarf2read.c: #include "gdbcore.h".
2246 (dwarf2_per_objfile): New members addr, dwo_files.
2247 (dwarf2_elf_names): Add entry for addr.
2248 (struct dwo_section_names): New type.
2249 (dwo_section_names): New static global.
2250 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2251 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2252 old debug_types_section member updated to use this.
2253 Rename member debug_types_section to info_or_types_section,
2254 all uses updated.
2255 (signatured_type): Rename member type_offset to type_offset_in_tu,
2256 all uses updated. New member type_offset_in_section.
2257 (struct dwo_sections): New type.
2258 (struct dwo_unit): New type.
2259 (struct dwo_file): New type.
2260 (die_reader_specs): New member dwo_file.
2261 (dwarf2_locate_sections): Watch for .debug_addr.
2262 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2263 (dwarf2_read_section): Get bfd of section from bfd's asection,
2264 instead of objfile.
2265 (create_cus_from_index): Initialize the_cu->info_or_types_section.
2266 (create_signatured_type_table_from_index): Initialize
2267 sig_type->info_or_types_section.
2268 (dw2_get_file_names): Statement lists for type units with DWO files
2269 live in the DWO file.
2270 (create_debug_types_hash_table): New function.
2271 (create_all_type_units): Rewrite.
2272 (init_cu_die_reader): New arg dwo_file, all callers updated.
2273 (init_and_read_dies_worker): Get section from
2274 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2275 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2276 continue reading the CU/TU from there.
2277 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2278 updated. Get section from this_cu->info_or_types_section.
2279 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2280 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2281 DW_FORM_GNU_str_index.
2282 (hash_dwo_file, eq_dwo_file): New functions.
2283 (allocate_dwo_file_hash_table): New function.
2284 (hash_dwo_unit, eq_dwo_unit): New functions.
2285 (allocate_dwo_unit_table): New function.
2286 (dwarf2_locate_dwo_sections): New function.
2287 (struct create_dwo_info_table_data): New type.
2288 (create_debug_info_hash_table_reader): New function.
2289 (create_debug_info_hash_table): New function.
2290 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2291 (lookup_dwo_file): New function.
2292 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2293 (free_dwo_file, free_dwo_file_cleanup): New functions.
2294 (free_dwo_file_from_slot, free_dwo_files): New functions.
2295 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2296 (dwarf2_record_block_ranges): Ditto.
2297 (read_partial_die): Ditto.
2298 (process_enumeration_scope): Update to use type_offset_in_section.
2299 (read_full_die_1): New function.
2300 (read_full_die): Rewrite.
2301 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2302 DW_FORM_GNU_str_index.
2303 (read_addr_index_1, read_addr_index): New functions.
2304 (read_addr_index_from_leb128): New function.
2305 (struct dwarf2_read_addr_index_data): New type.
2306 (dwarf2_read_addr_index_reader): New function.
2307 (dwarf2_read_addr_index): New function.
2308 (read_str_index): New function.
2309 (leb128_size): New function.
2310 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2311 If processing a type unit from a DWO file, get the line section
2312 from the DWO file.
2313 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2314 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2315 DW_FORM_GNU_str_index.
2316 (lookup_die_type): Check whether section offset of type's die is
2317 known before looking it up. Remove assert. Condition can
2318 legimately happen for inter-cu type references.
2319 (dwarf_attr_name): Handle Fission attributes.
2320 (dwarf_form_name): Handle Fission forms.
2321 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2322 DW_FORM_GNU_str_index.
2323 (follow_die_sig): Update to use type_offset_in_section.
2324 (decode_locdesc): New case DW_OP_GNU_addr_index.
2325 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2326 DW_FORM_GNU_str_index.
2327 (cu_debug_loc_section): New function.
2328 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2329 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2330 Free DWO files if present.
2331 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2332
2333 Refactor DIE reading.
2334 * dwarf2read.c (dwarf2_per_objfile): Replace members
2335 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2336 (die_reader_specs): New member "die_section". Temporarily make
2337 member "buffer" non-const, pending constifying all info_ptr uses.
2338 (die_reader_func_ftype): New typedef.
2339 (dw2_get_file_names_reader): New function.
2340 (dw2_get_file_names): Rewrite.
2341 (read_and_check_type_unit_head): Rename arg type_offset to
2342 type_offset_in_tu.
2343 (create_all_type_units): Improve debugging message.
2344 Improve dummy type unit check.
2345 (init_cu_die_reader): New arg "section". All callers updated.
2346 (init_and_read_dies_worker): New function.
2347 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2348 (init_cutu_and_read_dies_no_follow): New function.
2349 (init_cutu_and_read_dies_simple): New function.
2350 (process_psymtab_comp_unit_reader): New function.
2351 (process_psymtab_comp_unit): Delete args section,
2352 is_debug_types_section. Rewrite. All callers updated.
2353 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2354 All callers updated. Rewrite.
2355 (load_partial_comp_unit_reader): New function.
2356 (load_partial_comp_unit): Rewrite.
2357 (skip_children): New arg reader. Delete args buffer, cu.
2358 All callers updated.
2359 (skip_one_die): New arg reader. Delete args buffer, cu.
2360 All callers updated.
2361 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2362 All callers updated.
2363 (load_full_comp_unit_reader): New function.
2364 (load_full_comp_unit): Rewrite.
2365 (read_comp_unit): Delete.
2366 (read_die_and_children_1): Delete, contents moved ...
2367 (read_die_and_children): ... here.
2368 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2369 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2370 All callers updated.
2371 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2372 All callers updated.
2373 (find_partial_die): Rewrite load_all_dies support.
2374 (read_attribute_value): New arg reader. Delete args abfd, cu.
2375 All callers updated.
2376 (read_attribute): New arg reader. Delete args abfd, cu.
2377 All callers updated.
2378 (load_full_type_unit): Add assert.
2379 (read_signatured_type_reader): New function.
2380 (read_signatured_type): Rewrite.
2381 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2382 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2383 All callers updated. Set per_cu->cu = NULL after freeing it.
2384 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2385 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2386 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2387 (set_die_type): Update.
2388 (get_die_type_at_offset): Update.
2389 (read_file_scope): Call prepare_one_comp_unit.
2390 (read_type_unit_scope): Ditto.
2391 (prepare_one_comp_unit): Set producer if present.
2392
2393 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2394
2395 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2396 gettext function on `error'.
2397
2398 2012-04-27 Doug Evans <dje@google.com>
2399
2400 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2401 is empty.
2402
2403 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2404 Tom Tromey <tromey@redhat.com>
2405
2406 * breakpoint.c (struct breakpoint_objfile_data)
2407 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2408 <exception_probes>: New fields.
2409 (free_breakpoint_probes): New function.
2410 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2411 `_Unwind_DebugHook'.
2412 (create_exception_master_breakpoint): Likewise.
2413 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2414 * infrun.c: Including necessary header files for handling SystemTap
2415 probes.
2416 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2417 via SystemTap probes.
2418 (check_exception_resume): Remove `func' argument. Handle exception
2419 unwinding breakpoint set via a SystemTap probe.
2420 (insert_exception_resume_from_probe): New function.
2421
2422 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2423 Tom Tromey <tromey@redhat.com>
2424 Jan Kratochvil <jan.kratochvil@redhat.com>
2425
2426 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2427 (COMMON_OBS): Likewise.
2428 (HFILES_NO_SRCDIR): Add `probe'.
2429 * NEWS: Mention support for static and SystemTap probes.
2430 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2431 SystemTap probes' arguments parser.
2432 * arm-linux-tdep.c: Including headers needed to perform the parsing
2433 of SystemTap probes' arguments.
2434 (arm_stap_is_single_operand): New function.
2435 (arm_stap_parse_special_token): Likewise.
2436 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2437 probes' arguments parser.
2438 * ax-gdb.c (require_rvalue): Removing static declaration.
2439 (gen_expr): Likewise.
2440 * ax-gdb.h (gen_expr): Declaring function.
2441 (require_rvalue): Likewise.
2442 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2443 (bkpt_probe_breakpoint_ops): New variable.
2444 (momentary_breakpoint_from_master): Set the `probe' value.
2445 (add_location_to_breakpoint): Likewise.
2446 (break_command_1): Using proper breakpoint_ops according to the
2447 argument passed by the user in the command line.
2448 (bkpt_probe_insert_location): New function.
2449 (bkpt_probe_remove_location): Likewise.
2450 (bkpt_probe_create_sals_from_address): Likewise.
2451 (bkpt_probe_decode_linespec): Likewise.
2452 (tracepoint_probe_create_sals_from_address): Likewise.
2453 (tracepoint_probe_decode_linespec): Likewise.
2454 (tracepoint_probe_breakpoint_ops): New variable.
2455 (trace_command): Using proper breakpoint_ops according to the
2456 argument passed by the user in the command line.
2457 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2458 static probes on breakpoints and tracepoints.
2459 * breakpoint.h (struct bp_location) <probe>: New field.
2460 * cli-utils.c (skip_spaces_const): New function.
2461 (extract_arg): Likewise.
2462 * cli-utils.h (skip_spaces_const): Likewise.
2463 (extract_arg): Likewise.
2464 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2465 * configure.ac: Append `stap-probe.o' to be generated when ELF
2466 support is present.
2467 * configure: Regenerate.
2468 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2469 * elfread.c: Include `probe.h' and `arch-utils.h'.
2470 (probe_key): New variable.
2471 (elf_get_probes): New function.
2472 (elf_get_probe_argument_count): Likewise.
2473 (elf_evaluate_probe_argument): Likewise.
2474 (elf_compile_to_ax): Likewise.
2475 (elf_symfile_relocate_probe): Likewise.
2476 (stap_probe_key_free): Likewise.
2477 (elf_probe_fns): New variable.
2478 (elf_sym_fns): Add `sym_probe_fns' value.
2479 (elf_sym_fns_lazy_psyms): Likewise.
2480 (elf_sym_fns_gdb_index): Likewise.
2481 (_initialize_elfread): Initialize objfile cache for static
2482 probes.
2483 * gdb_vecs.h (struct probe): New forward declaration.
2484 (probe_p): New VEC declaration.
2485 * gdbarch.c: Regenerate.
2486 * gdbarch.h: Regenerate.
2487 * gdbarch.sh (stap_integer_prefix): New variable.
2488 (stap_integer_suffix): Likewise.
2489 (stap_register_prefix): Likewise.
2490 (stap_register_suffix): Likewise.
2491 (stap_register_indirection_prefix): Likewise.
2492 (stap_register_indirection_suffix): Likewise.
2493 (stap_gdb_register_prefix): Likewise.
2494 (stap_gdb_register_suffix): Likewise.
2495 (stap_is_single_operand): New function.
2496 (stap_parse_special_token): Likewise.
2497 (struct stap_parse_info): Forward declaration.
2498 * i386-tdep.c: Including headers needed to perform the parsing
2499 of SystemTap probes' arguments.
2500 (i386_stap_is_single_operand): New function.
2501 (i386_stap_parse_special_token): Likewise.
2502 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2503 probes' arguments parser.
2504 * i386-tdep.h (i386_stap_is_single_operand): New function.
2505 (i386_stap_parse_special_token): Likewise.
2506 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2507 * mipsread.c (ecoff_sym_fns): Likewise.
2508 * objfiles.c (objfile_relocate1): Support relocation for static
2509 probes.
2510 * parse.c (prefixify_expression): Remove static declaration.
2511 (initialize_expout): Likewise.
2512 (reallocate_expout): Likewise.
2513 * parser-defs.h (initialize_expout): Declare function.
2514 (reallocate_expout): Likewise.
2515 (prefixify_expression): Likewise.
2516 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2517 of SystemTap probes' arguments.
2518 (ppc_stap_is_single_operand): New function.
2519 (ppc_stap_parse_special_token): Likewise.
2520 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2521 probes' arguments parser.
2522 * probe.c: New file, for generic statically defined probe support.
2523 * probe.h: Likewise.
2524 * s390-tdep.c: Including headers needed to perform the parsing of
2525 SystemTap probes' arguments.
2526 (s390_stap_is_single_operand): New function.
2527 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2528 probes' arguments parser.
2529 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2530 * stap-probe.c: New file, for SystemTap probe support.
2531 * stap-probe.h: Likewise.
2532 * symfile.h: Include `gdb_vecs.h'.
2533 (struct sym_probe_fns): New struct.
2534 (struct sym_fns) <sym_probe_fns>: New field.
2535 * symtab.c (init_sal): Initialize `probe' field.
2536 * symtab.h (struct probe): Forward declaration.
2537 (struct symtab_and_line) <probe>: New field.
2538 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2539 locations.
2540 (stop_tracing): Likewise.
2541 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2542
2543 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2544 Tom Tromey <tromey@redhat.com>
2545
2546 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2547 and to compile agent expressions.
2548 * infrun.c (siginfo_make_value): New argument `ignore'.
2549 (siginfo_funcs): New struct.
2550 (_initialize_infrun): New argument when calling
2551 `create_internalvar_type_lazy'.
2552 * thread.c (thread_id_make_value): New argument `ignore'.
2553 (thread_funcs): New struct.
2554 (_initialize_thread): New argument when calling
2555 `create_internalvar_type_lazy'.
2556 * tracepoint.c (sdata_make_value): New argument `ignore'.
2557 (sdata_funcs): New struct.
2558 (_initialize_tracepoint): New argument when calling
2559 `create_internalvar_type_lazy'.
2560 * value.c (make_value): New struct.
2561 (create_internalvar_type_lazy): New argument `data'.
2562 (compile_internalvar_to_ax): New function.
2563 (value_of_internalvar): Properly handling `make_value' case.
2564 (clear_internalvar): Likewise.
2565 (show_convenience): Adding `TRY_CATCH' block.
2566 * value.h (internalvar_make_value): Delete, replace by...
2567 (struct internalvar_funcs): ... this.
2568 (create_internalvar_type_lazy) <fun>: Delete argument.
2569 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2570 (compile_internalvar_to_ax): New function.
2571 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2572 (tlb_funcs): New struct.
2573 (_initialize_windows_tdep): New argument when calling
2574 `create_internalvar_type_lazy'.
2575
2576 2012-04-27 Mark Wielaard <mjw@redhat.com>
2577
2578 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2579 see whether it is an address or a constant offset from DW_AT_low_pc.
2580 (dwarf2_record_block_ranges): Likewise.
2581 (read_partial_die): Likewise.
2582
2583 2012-04-26 Mark Wielaard <mjw@redhat.com>
2584
2585 * MAINTAINERS (Write After Approval): Add myself to the list.
2586
2587 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2588
2589 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2590 (proc_prettyprint_signal): Likewise.
2591 (proc_prettyprint_faultset): Likewise.
2592 (proc_prettyprint_fault): Likewise.
2593 (proc_prettyprint_actionset): Likewise.
2594 (proc_prettyprint_flags): Move to new proc-flags.c section.
2595 (proc_prettyfprint_flags): New prototype.
2596 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2597 (proc_syscall, proc_cursig): Likewise.
2598 (proc_set_kill_on_last_close): Likewise.
2599 (proc_unset_kill_on_last_close): Likewise.
2600 (proc_set_watchpoint): Make static.
2601 (proc_delete_dead_threads): Likewise.
2602 (procfs_set_watchpoint): Likewise.
2603 (_initialize_procfs): Add prototype.
2604 * proc-events.c: Include proc-utils.h.
2605 (init_syscall_table): Make static.
2606 * proc-api.c (_initialize_proc_api): Add prototype.
2607 * proc-flags.c: Include proc-utils.h.
2608
2609 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2610
2611 * configure.ac: Add AC_ARG_PROGRAM.
2612 * configure: Regenerate.
2613
2614 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2615
2616 Fix DW_AT_lower_bound defaults for DWARF-4+.
2617 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2618 high. New variable low_default_is_valid. Implement DWARF-4+
2619 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2620 no default by the DWARF standard.
2621
2622 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2623 Maciej W. Rozycki <macro@codesourcery.com>
2624
2625 * infrun.c (handle_inferior_event): Move the check for return
2626 trampolines ahead of the check for function trampolines.
2627 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2628 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2629 (mips_str_mips16_ret_stub): Likewise.
2630 (mips_str_call_fp_stub): Likewise.
2631 (mips_str_call_stub): Likewise.
2632 (mips_str_fn_stub): Likewise.
2633 (mips_str_pic): Likewise.
2634 (mips_in_frame_stub): New function.
2635 (mips_unwind_pc): Return the return address rather than the PC
2636 if the PC of an intermediate frame is inside a call thunk.
2637 (mips_is_stub_suffix): New function.
2638 (mips_is_stub_mode): Likewise.
2639 (mips_get_mips16_fn_stub_pc): Likewise.
2640 (mips_skip_mips16_trampoline_code): Update to handle all the
2641 currently generated stub types. Don't recurse into __fn_stub
2642 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2643 Use cooked register accesses.
2644 (mips_in_return_stub): Reintroduce function.
2645 (mips_skip_trampoline_code): Traverse trampolines recursively.
2646 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2647
2648 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2649
2650 GDB 7.4.1 released.
2651
2652 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2653
2654 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2655 * features/arm-with-m-vfp-d16.xml: New file. Describes
2656 Cortex-M with VFPv4-sp-d16 FPU register layout.
2657 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2658 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2659 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2660 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2661 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2662
2663 2012-04-25 Doug Evans <dje@google.com>
2664
2665 * cli/cli-decode.c (print_doc_line): Use stream instead of
2666 current_uiout.
2667
2668 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2669
2670 * features/arm-with-iwmmxt.c: Regenerate.
2671 * features/arm-with-m-fpa-layout.c: Likewise.
2672 * features/arm-with-m.c: Likewise.
2673 * features/arm-with-neon.c: Likewise.
2674 * features/arm-with-vfpv2.c: Likewise.
2675 * features/arm-with-vfpv3.c: Likewise.
2676 * features/mips-dsp-linux.c: Likewise.
2677 * features/mips-linux.c: Likewise.
2678 * features/mips64-dsp-linux.c: Likewise.
2679 * features/mips64-linux.c: Likewise.
2680 * features/s390-linux32.c: Likewise.
2681 * features/s390-linux32v1.c: Likewise.
2682 * features/s390-linux32v2.c: Likewise.
2683 * features/s390-linux64.c: Likewise.
2684 * features/s390-linux64v1.c: Likewise.
2685 * features/s390-linux64v2.c: Likewise.
2686 * features/s390x-linux64.c: Likewise.
2687 * features/s390x-linux64v1.c: Likewise.
2688 * features/s390x-linux64v2.c: Likewise.
2689 * features/tic6x-c62x-linux.c: Likewise.
2690 * features/tic6x-c62x.c: Likewise.
2691 * features/tic6x-c64x-linux.c: Likewise.
2692 * features/tic6x-c64x.c: Likewise.
2693 * features/tic6x-c64xp-linux.c: Likewise.
2694 * features/tic6x-c64xp.c: Likewise.
2695 * target-descriptions.c: Only generate `field_type' and `type'
2696 variables when needed.
2697
2698 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2699
2700 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2701
2702 2012-04-25 Doug Evans <dje@google.com>
2703
2704 Initial pass at Go language support.
2705 * NEWS: Mention Go.
2706 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2707 go-valprint.c.
2708 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2709 (YYFILES): Add go-exp.c.
2710 (YYOBJ): Add go-exp.o.
2711 (local-maintainer-clean): Delete go-exp.c.
2712 * defs.h (enum language): Add language_go.
2713 * dwarf2read.c: #include "go-lang.h".
2714 (fixup_go_packaging): New function.
2715 (process_full_comp_unit): Call it when processing Go CUs.
2716 (dwarf2_physname): Add Go support.
2717 (read_file_scope): Handle missing language spec for GNU Go.
2718 (set_cu_language): Handle DW_LANG_Go.
2719 * go-exp.y: New file.
2720 * go-lang.h: New file.
2721 * go-lang.c: New file.
2722 * go-typeprint.c: New file.
2723 * go-valprint.c: New file.
2724 * symtab.c: #include "go-lang.h".
2725 (symbol_set_language): Handle language_go.
2726 (symbol_find_demangled_name, symbol_set_names): Ditto.
2727 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2728
2729 2012-04-24 Jim Meyering <meyering@redhat.com>
2730
2731 avoid a few strncpy-induced buffer overruns
2732 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2733 fname and psargs before trying to concatenate.
2734 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2735 "name" before applying strchr.
2736
2737 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2738
2739 * CONTRIBUTE: Use unified diff instead of context diff when
2740 generating patches.
2741
2742 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2743
2744 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2745 code. Handle JR.HB correctly.
2746
2747 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2748
2749 * mips-tdep.c
2750 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2751 with the other MIPS16 helpers.
2752
2753 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2754
2755 * observer.sh: Conditionally declare `args', thus cleaning up
2756 unused instances of this variable.
2757
2758 2012-04-24 Yao Qi <yao@codesourcery.com>
2759
2760 Revert this patch to allow breakpoint always-inserted
2761 in record target.
2762 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2763 * breakpoint.c: Include record.h.
2764 (breakpoints_always_inserted_mode): Return false when the record
2765 target is in use.
2766
2767 * breakpoint.c (iterate_over_bp_locations): New.
2768 * breakpoint.h: Declare.
2769 New typedef walk_bp_location_callback.
2770 * record.c (record_open): Call record_init_record_breakpoints.
2771 (record_sync_record_breakpoints): New.
2772 (record_init_record_breakpoints): New.
2773 * NEWS: Mention supporting breakpoint always-inserted mode in
2774 record target.
2775
2776 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2777
2778 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2779 any thread.
2780
2781 2012-04-24 Yao Qi <yao@codesourcery.com>
2782
2783 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2784 (is_catchpoint): ... it.
2785 (print_one_breakpoint_location): Caller update.
2786 * breakpoint.h: Update declaration.
2787
2788 2012-04-23 David S. Miller <davem@davemloft.net>
2789
2790 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2791
2792 2012-04-23 Tom Tromey <tromey@redhat.com>
2793
2794 * buildsym.c (add_free_pendings): Remove.
2795 * buildsym.h (add_free_pendings): Remove.
2796
2797 2012-04-23 Doug Evans <dje@google.com>
2798
2799 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2800 attr.u.unsnd instead of attr.u.addr.
2801 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2802 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2803 DW_FORM_ref_udata.
2804 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2805 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2806 DW_FORM_ref_udata.
2807 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2808
2809 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2810
2811 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2812 (mips_o32_return_value): Likewise.
2813 (mips_o64_return_value): Likewise.
2814
2815 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2816
2817 * ada-lang.c (ada_evaluate_subexp): Add cases for
2818 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2819 their treatment in eval.c.
2820
2821 2012-04-21 David S. Miller <davem@davemloft.net>
2822
2823 * sparc-tdep.c (X_DISP10): Define.
2824 (sparc_analyze_control_transfer): Handle compare-and-branch.
2825
2826 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2827
2828 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2829 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2830
2831 2012-04-20 Nigel Stephens <nigel@mips.com>
2832 Maciej W. Rozycki <macro@codesourcery.com>
2833
2834 * mips-tdep.c (mips_float_register_p): New function.
2835 (mips_convert_register_float_case_p): Use mips_float_register_p.
2836 (mips_register_type): Likewise.
2837 (mips_print_register): Likewise.
2838 (print_gp_register_row): Likewise.
2839 (mips_print_registers_info): Likewise.
2840
2841 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2842
2843 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2844 of mips16 symbols.
2845
2846 2012-04-20 Andrew Pinski <apinski@cavium.com>
2847
2848 * MAINTAINERS (Write After Approval): Add myself to the list.
2849
2850 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2851
2852 * MAINTAINERS: Update my e-mail address.
2853
2854 2012-04-20 Pedro Alves <palves@redhat.com>
2855
2856 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2857 $srcdir.
2858 * configure: Regenerate.
2859
2860 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2861
2862 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
2863 declaration.
2864 * gdb_vecs.h: Declare `const_char_ptr' VEC.
2865
2866 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2867
2868 Fix compilation compatibility with python-2.4
2869 * python/py-type.c (convert_field): Cast ADDRSTRING for
2870 PyObject_SetAttrString as non-const. New comment.
2871
2872 2012-04-19 Tom Tromey <tromey@redhat.com>
2873
2874 * top.c (quit_target): Use all_cleanups.
2875 * main.c (captured_command_loop): Use all_cleanups.
2876 * exceptions.c (throw_exception): Use all_cleanups.
2877
2878 2012-04-19 Pedro Alves <palves@redhat.com>
2879
2880 * Makefile.in (GNULIB_BUILDDIR): New.
2881 (LIBGNU, INCGNU, GNULIB_H): Adjust.
2882 (SUBDIRS): Add $(GNULIB_BUILDDIR).
2883 (CLEANDIRS). Remove gnulib/import.
2884 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
2885 (all-lib): Ditto.
2886 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
2887 (gnulib/import/Makefile): Replace gnulib/import with
2888 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
2889 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
2890 (aclocal_m4_deps): Remove the gnulib dependencies. Add
2891 acx_configure_dir.m4.
2892 * acinclude.m4: Include acx_configure_dir.m4.
2893 * acx_configure_dir.m4: New file.
2894 * aclocal.m4: Regenerate.
2895 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
2896 calls. Configure gnulib using ACX_CONFIGURE_DIR.
2897 (GNULIB): New variable.
2898 (GNULIB_STDINT_H): Adjust.
2899 (AC_OUTPUT): Don't output gnulib/Makefile.
2900 * gdb/defs.h: Include build-gnulib/config.h.
2901 * aclocal.m4: Regenerate.
2902 * config.in: Regenerate.
2903 * configure: Regenerate.
2904
2905 * gnulib/Makefile.in: New file.
2906 * gnulib/configure.ac: New file.
2907 * gnulib/aclocal.m4: New file.
2908 * gnulib/config.in: New file.
2909 * gnulib/configure: New file.
2910 * gnulib/: Re-run gnulib-tool to adjust.
2911
2912 2012-04-19 Doug Evans <dje@google.com>
2913
2914 * cleanups.h (struct cleanup): Move to cleanups.c.
2915 (make_cleanup_dtor_ftype): New typedef.
2916 (make_cleanup_dtor): Use it.
2917 (ALL_CLEANUPS): Replace with ...
2918 (all_cleanups): ... this. Declare. All uses updated.
2919 * cleanups.c: #include "gdb_assert.h".
2920 (sentinel_cleanup): New static global.
2921 (SENTINEL_CLEANUP): Define.
2922 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
2923 (make_my_cleanup2): Assert result is non-NULL.
2924 (all_cleanups): New function.
2925 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
2926 of NULL.
2927
2928 2012-04-19 Pedro Alves <palves@redhat.com>
2929
2930 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
2931 Adjust paths to gnulib imported files.
2932
2933 2012-04-19 Pedro Alves <palves@redhat.com>
2934
2935 * gnulib/: Move whole directory ...
2936 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
2937 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
2938 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
2939 (aclocal_m4_deps): Adjust.
2940 * aclocal.m4: Regenerate.
2941 * configure: Regenerate.
2942 * configure.ac: Adjust AC_OUTPUT output.
2943
2944 2012-04-19 Yao Qi <yao@codesourcery.com>
2945
2946 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
2947 (vec.o): New rule.
2948 * vec.c: Move it ...
2949 * common/vec.c: ... here.
2950 * vec.h: Move it ...
2951 * common/vec.h: ... here.
2952
2953 2012-04-19 Yao Qi <yao@codesourcery.com>
2954
2955 * gdb-code-style.el: New.
2956
2957 2012-04-18 Pedro Alves <palves@redhat.com>
2958
2959 Update gnulib from latest git.
2960 (639ea5ae15e39fe48d43e04864b2997301e4b969)
2961
2962 * gnulib/Makefile.am: Update.
2963 * gnulib/dummy.c: Update.
2964 * gnulib/extra/arg-nonnull.h: Update.
2965 * gnulib/extra/c++defs.h: Update.
2966 * gnulib/extra/update-copyright: Update.
2967 * gnulib/extra/warn-on-use.h: Update.
2968 * gnulib/inttypes.in.h: Update.
2969 * gnulib/m4/00gnulib.m4: Update.
2970 * gnulib/m4/extensions.m4: Update.
2971 * gnulib/m4/gnulib-cache.m4: Update.
2972 * gnulib/m4/gnulib-common.m4: Update.
2973 * gnulib/m4/gnulib-comp.m4: Update.
2974 * gnulib/m4/gnulib-tool.m4: Update.
2975 * gnulib/m4/include_next.m4: Update.
2976 * gnulib/m4/inttypes-pri.m4: Update.
2977 * gnulib/m4/inttypes.m4: Update.
2978 * gnulib/m4/longlong.m4: Update.
2979 * gnulib/m4/memchr.m4: Update.
2980 * gnulib/m4/memmem.m4: Update.
2981 * gnulib/m4/mmap-anon.m4: Update.
2982 * gnulib/m4/multiarch.m4: Update.
2983 * gnulib/m4/onceonly.m4: Update.
2984 * gnulib/m4/stddef_h.m4: Update.
2985 * gnulib/m4/stdint.m4: Update.
2986 * gnulib/m4/string_h.m4: Update.
2987 * gnulib/m4/warn-on-use.m4: Update.
2988 * gnulib/m4/wchar_h.m4: Update.
2989 * gnulib/m4/wchar_t.m4: Update.
2990 * gnulib/m4/wint_t.m4: Update.
2991 * gnulib/memchr.c: Update.
2992 * gnulib/memmem.c: Update.
2993 * gnulib/stddef.in.h: Update.
2994 * gnulib/stdint.in.h: Update.
2995 * gnulib/str-two-way.h: Update.
2996 * gnulib/string.in.h: Update.
2997 * gnulib/wchar.in.h: Update.
2998
2999 * gnulib/extra/arg-nonnull.h: Delete.
3000 * gnulib/extra/c++defs.h: Delete.
3001 * gnulib/extra/warn-on-use.h: Delete.
3002 * gnulib/m4/wchar_h.m4: Delete.
3003 * gnulib/m4/wint_t.m4: Delete.
3004 * gnulib/wchar.in.h: Delete.
3005
3006 * gnulib/extra/snippets/arg-nonnull.h: New.
3007 * gnulib/extra/snippets/c++defs.h: New.
3008 * gnulib/extra/snippets/warn-on-use.h: New.
3009
3010 * aclocal.m4: Regenerate.
3011 * config.in: Regenerate.
3012 * configure: Regenerate.
3013 * gnulib/Makefile.in: Regenerate.
3014
3015 2012-04-18 Pedro Alves <palves@redhat.com>
3016
3017 Reimport the update-copyright module from gnulib
3018 (250b80067c1e1d8faa0c42fb572f721975b929c5).
3019
3020 * configure: Regenerate.
3021 * gnulib/Makefile.am: Update.
3022 * gnulib/Makefile.in: Regenerate.
3023 * gnulib/extra/update-copyright: Update.
3024 * gnulib/m4/gnulib-cache.m4: Update.
3025 * gnulib/m4/gnulib-comp.m4: Update.
3026
3027 2012-04-18 Tristan Gingold <gingold@adacore.com>
3028
3029 * configure.ac (aix): Put -lpthread into libs.
3030 * configure: Regenerate.
3031
3032 2012-04-18 Tom Tromey <tromey@redhat.com>
3033
3034 * linespec.c (convert_linespec_to_sals): Don't use
3035 SYMBOL_OBJ_SECTION.
3036 (compare_msymbols): Arguments are minsym_and_objfile, not
3037 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
3038
3039 2012-04-18 Pedro Alves <palves@redhat.com>
3040
3041 Revert gnulib/ part of:
3042 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3043 Copyright year update in most files (performed by copyright.sh).
3044
3045 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3046
3047 Fix 64-bit constants on 32-bit hosts.
3048 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
3049 from unsigned long to ULONGEST.
3050 (read_signed_leb128): Change declaration return type from long to
3051 LONGEST.
3052 (dwarf2_const_value_attr): Change declaration parameter value from long
3053 to LONGEST.
3054 (dwarf2_compute_name): Change variable value from long to LONGEST.
3055 (read_unsigned_leb128): Change return type, variable result and some
3056 casts from unsigned long to ULONGEST.
3057 (read_signed_leb128): Change return type, variable result and some
3058 casts from long to LONGEST.
3059 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
3060 value from long to LONGEST.
3061 (dwarf2_const_value): Change variable value from long to LONGEST.
3062 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
3063 plongest and hex_string.
3064 * symtab.h (struct general_symbol_info): Change ivalue from long to
3065 LONGEST, remove the comment.
3066 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
3067 Change SYMBOL_VALUE format strings to use plongest and hex_string.
3068
3069 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
3070
3071 PR symtab/7259:
3072 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
3073 * ada-lang.c (ada_discrete_type_high_bound)
3074 (ada_discrete_type_low_bound): Fix function comment. Use
3075 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3076 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
3077 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3078 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
3079 Use TYPE_FIELD_ENUMVAL.
3080 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
3081 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3082 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
3083 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
3084 TYPE_CODE_ENUM.
3085 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
3086 * dwarf2read.c (process_enumeration_scope): Likewise.
3087 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
3088 field.bitpos.
3089 (class StructMainTypePrettyPrinter): Support also
3090 FIELD_LOC_KIND_ENUMVAL.
3091 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
3092 TYPE_CODE_ENUM.
3093 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3094 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
3095 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
3096 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
3097 field enumval.
3098 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
3099 accommodate enumval.
3100 (struct call_site): Adjust loc_kind to accommodate enumval.
3101 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
3102 (TYPE_FIELD_ENUMVAL): New macros.
3103 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
3104 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
3105 TYPE_CODE_ENUM.
3106 * p-typeprint.c (pascal_type_print_base): Likewise.
3107 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
3108 enumval.
3109 * python/lib/gdb/types.py (make_enum_dict): Likewise.
3110 * python/py-type.c (convert_field): New variable addrstring. Use
3111 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3112 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
3113 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
3114 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
3115 TYPE_CODE_ENUM.
3116 * valprint.c (generic_val_print): Likewise.
3117
3118 2012-04-17 Doug Evans <dje@google.com>
3119
3120 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
3121
3122 * dwarf2read.c: Whitespace fixes.
3123 (lookup_signatured_type): Tweak comment.
3124 (get_die_type_at_offset): Fix comment.
3125
3126 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3127
3128 * xcoffread.c (xcoff_secnum_to_sections): New function.
3129 (secnum_to_section, secnum_to_bfd_section): Reimplement
3130 using xcoff_secnum_to_sections. Rename "secnum" parameter
3131 into "n_scnum".
3132 (RECORD_MINIMAL_SYMBOL): Delete.
3133 (record_minimal_symbol): New function.
3134 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
3135 by call to record_minimal_symbol and set misc_func_recorded
3136 to 1. Set last_csect_sec to the XCOFF section index instead
3137 of GDB's section_offset index. Update calls to
3138 prim_record_minimal_symbol_and_info to pass the BFD section
3139 as well.
3140
3141 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3142
3143 * xcoffread.c (read_xcoff_symtab): Delete variables
3144 last_csect_val and last_csect_sec and associated code.
3145
3146 2012-04-17 Doug Evans <dje@google.com>
3147
3148 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
3149 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3150 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
3151 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
3152
3153 * cleanups.h: New file.
3154 * cleanups.c: New file.
3155 * Makefile.in (SFILES): Add cleanups.c.
3156 (HFILES_NO_SRCDIR): Add cleanups.h.
3157 (COMMON_OBS): Add cleanups.o.
3158 * defs.h (struct cleanup): Moved to cleanups.h.
3159 (do_cleanups,do_final_cleanups): Ditto.
3160 (discard_cleanups,discard_final_cleanups): Ditto
3161 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3162 (save_cleanups,save_final_cleanups): Ditto.
3163 (restore_cleanups,restore_final_cleanups): Ditto.
3164 (null_cleanup): Ditto.
3165 (make_my_cleanup,make_my_cleanup2): Ditto.
3166 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3167 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3168 (do_cleanups,do_final_cleanups): Ditto.
3169 (discard_cleanups,discard_final_cleanups): Ditto
3170 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3171 (save_cleanups,save_final_cleanups): Ditto.
3172 (restore_cleanups,restore_final_cleanups): Ditto.
3173 (null_cleanup): Ditto.
3174 (make_my_cleanup,make_my_cleanup2): Ditto.
3175 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3176
3177 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3178 make_my_cleanup.
3179 (make_cleanup_dyn_string_delete): Ditto.
3180 (make_cleanup_ui_file_delete): Ditto.
3181 (make_cleanup_ui_out_redirect_pop): Ditto.
3182 (make_cleanup_free_section_addr_info): Ditto.
3183 (make_cleanup_restore_integer): Ditto.
3184 (make_cleanup_unpush_target): Ditto.
3185 (make_cleanup_value_free_to_mark): Ditto.
3186 (make_cleanup_value_free): Ditto.
3187 (make_cleanup_free_so): Ditto.
3188
3189 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3190
3191 New option "set debug auto-load".
3192 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3193 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3194 (auto_load_safe_path_vec_update)
3195 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3196 if DEBUG_AUTO_LOAD.
3197 (file_is_auto_load_safe): New parameters debug_fmt and ....
3198 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3199 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3200 caller by explanatory string.
3201 (_initialize_auto_load): Register "set debug auto-load".
3202 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3203 and ....
3204 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3205 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3206 by explanatory string.
3207 * main.c (captured_main): Likewise.
3208 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3209 (source_section_scripts): Likewise.
3210
3211 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3212
3213 New option "set auto-load safe-path".
3214 * NEWS: New commands "set auto-load safe-path"
3215 and "show auto-load safe-path".
3216 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3217 (auto_load_safe_path, auto_load_safe_path_vec)
3218 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3219 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3220 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3221 (source_gdb_script_for_objfile): New variable is_safe. Call
3222 file_is_auto_load_safe. Return if it is not.
3223 (struct loaded_script): New field loaded.
3224 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
3225 (print_script): Use LOADED indicator instead of FULL_PATH. Change
3226 output "Missing" to "No".
3227 (_initialize_auto_load): New variable cmd. Initialize
3228 auto_load_safe_path. Register "set auto-load safe-path",
3229 "show auto-load safe-path" and "add-auto-load-safe-path".
3230 * auto-load.h (maybe_add_script): Add parameter loaded.
3231 (file_is_auto_load_safe): New declaration.
3232 * config.in: Regenerate.
3233 * configure: Regenerate.
3234 * configure.ac: New parameters --with-auto-load-safe-path
3235 and --without-auto-load-safe-path.
3236 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3237 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3238 * main.c (captured_main): Check file_is_auto_load_safe for
3239 LOCAL_GDBINIT.
3240 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3241 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
3242 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
3243 not.
3244
3245 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3246
3247 auto-load: Implementation.
3248 * NEWS: New descriptions for "info auto-load",
3249 "info auto-load gdb-scripts", "info auto-load python-scripts",
3250 "info auto-load local-gdbinit" and "info auto-load libthread-db".
3251 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3252 and "show auto-load-scripts". New description for "set auto-load",
3253 "show auto-load", "set auto-load gdb-scripts",
3254 "show auto-load gdb-scripts", "set auto-load python-scripts",
3255 "show auto-load python-scripts", "set auto-load local-gdbinit",
3256 "show auto-load local-gdbinit", "set auto-load libthread-db" and
3257 "show auto-load libthread-db".
3258 * auto-load.c: Remove include python/python-internal.h. Add includes
3259 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3260 cli/cli-setshow.h.
3261 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3262 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3263 (gdbpy_global_auto_load): Rename to ...
3264 (global_auto_load): ... here.
3265 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3266 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3267 (script_language_gdb, source_gdb_script_for_objfile): New.
3268 (struct loaded_script): New field language.
3269 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3270 LANGUAGE.
3271 (maybe_add_script): Add parameter language. Drop redundant
3272 entry.full_path initialization. Initialize entry.language and
3273 (*slot)->language.
3274 (auto_load_objfile_script): Change parameter suffix to language.
3275 Remove the call of maybe_add_script.
3276 Call language->source_script_for_objfile.
3277 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3278 New.
3279 (collect_matching_scripts): Adjust it for
3280 struct collect_matching_scripts_data.
3281 (auto_load_info_scripts_pattern_nl): New variable.
3282 (info_auto_load_scripts): Rename to ...
3283 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3284 for struct collect_matching_scripts_data.
3285 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3286 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3287 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3288 (auto_load_info_cmdlist_get): New.
3289 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3290 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3291 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3292 "info auto-load local-gdbinit".
3293 * auto-load.h (struct script_language): New.
3294 (gdbpy_global_auto_load): Rename to ...
3295 (global_auto_load): ... here.
3296 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3297 (auto_load_local_gdbinit_loaded): New declarations.
3298 (maybe_add_script): New parameter language.
3299 (auto_load_objfile_script): Change parameter suffix to language.
3300 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3301 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3302 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3303 declarations.
3304 * linux-thread-db.c: Include auto-load.h and ctype.h.
3305 (auto_load_thread_db, show_auto_load_thread_db): New.
3306 (struct thread_db_info): New field filename.
3307 (delete_thread_db_info): Call xfree for FILENAME.
3308 (try_thread_db_load): Initialize FILENAME.
3309 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3310 if !AUTO_LOAD_THREAD_DB.
3311 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3312 (_initialize_thread_db): Install auto_load_thread_db
3313 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3314 as "info auto-load libthread-db".
3315 * main.c (captured_main): Rename gdbpy_global_auto_load to
3316 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3317 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3318 (print_gdb_help): Extend the help for 'local init file'.
3319 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3320 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3321 (auto_load_scripts): Rename to ...
3322 (auto_load_python_scripts): ... here, update the comment.
3323 (gdbpy_load_auto_script_for_objfile): New declaration.
3324 (show_auto_load_python_scripts, script_language_python)
3325 (gdbpy_load_auto_script_for_objfile): New.
3326 (source_section_scripts): Refactor the code.
3327 (load_auto_scripts_for_objfile): Rename to ...
3328 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3329 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3330 (info_auto_load_python_scripts): New.
3331 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3332 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3333 Register "set auto-load-scripts" as its deprecated alias. Register
3334 "info auto-load python-scripts". Register "info auto-load-scripts" as
3335 its deprecated alias.
3336 (load_auto_scripts_for_objfile): Rename to ...
3337 (gdbpy_load_auto_scripts_for_objfile): ... here.
3338 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3339 (gdbpy_load_auto_scripts_for_objfile): ... here.
3340
3341 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3342
3343 auto-load: Move files.
3344 * Makefile.in (SFILES): Add auto-load.c.
3345 (HFILES_NO_SRCDIR): Add auto-load.h.
3346 (COMMON_OBS): Add auto-load.o.
3347 (distclean): Change .gdbinit for gdb-gdb.gdb.
3348 * auto-load.c: New file, with parts from python/py-auto-load.c.
3349 * auto-load.h: New file, with parts from python/python.h.
3350 * configure: Regenerate.
3351 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3352 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3353 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3354 * main.c: Include auto-load.h.
3355 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3356 command.h, observer.h and progspace.h to auto-load.c. Add include
3357 auto-load.h.
3358 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3359 (struct loaded_script, auto_load_pspace_data)
3360 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3361 (hash_loaded_script_entry, eq_loaded_script_entry)
3362 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3363 (maybe_add_script): Move to auto-load.c.
3364 (source_section_scripts): Change maybe_add_script parameters passing,
3365 use script_not_found_warning_print.
3366 (clear_section_scripts, auto_load_objfile_script)
3367 (auto_load_new_objfile, loaded_script_ptr)
3368 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3369 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3370 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3371 auto_load_new_objfile and info_auto_load_scripts initizations to
3372 auto-load.c.
3373 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3374
3375 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3376
3377 Code cleanup.
3378 * charset.c (find_charset_names): Remove variables ix and elt.
3379 Use free_char_ptr_vec.
3380 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3381 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3382 debugdir_end. New variable debugdir_len.
3383 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3384 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3385 declarations.
3386 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3387 and elt. Use free_char_ptr_vec.
3388 * source.c (add_path): Remove variables argv, arg and argv_index.
3389 New variables dir_vec, back_to, ix and name.
3390 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3391 make_cleanup_freeargv. Remove variable separator. Simplify the code
3392 no longer expecting DIRNAME_SEPARATOR.
3393 (openp): Remove variable p, p1 and len. New variables dir_vec,
3394 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3395 no longer expecting DIRNAME_SEPARATOR.
3396 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3397 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3398 debugdir_end.
3399 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3400 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3401 (dirnames_to_char_ptr_vec): New functions.
3402
3403 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3404
3405 Code cleanup.
3406 * source.c (add_path): Remove always true conditional 'p == 0' and
3407 unindent its code block.
3408
3409 2012-04-17 Pedro Alves <palves@redhat.com>
3410
3411 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3412 (FIELD_BITPOS_LVAL): ... this.
3413 (FIELD_BITPOS): New.
3414 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3415 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3416 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3417 SET_FIELD_BITPOS.
3418 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3419 SET_FIELD_BITPOS.
3420 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3421 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3422 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3423 SET_FIELD_BITPOS.
3424
3425 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3426
3427 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3428 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3429 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3430 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3431 * jv-lang.c (java_link_class_type): Likewise, once.
3432 * stabsread.c (read_enum_type): Likewise.
3433
3434 2012-04-16 Yao Qi <yao@codesourcery.com>
3435
3436 * common/agent.c (agent_run_command): Add one more parameter `len'.
3437 Update callers.
3438 * common/agent.h: Update declaration.
3439 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3440 Update.
3441 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3442
3443 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3444
3445 PR mi/13393
3446 * value.c (value_actual_type): New function.
3447 * value.h (value_actual_type): New declaration.
3448 * varobj.c (update_type_if_necessary): New function.
3449 (varobj_create): Call value_actual_type instead of
3450 value_type.
3451 (install_dynamic_child): distinct changed and type changed MI variable
3452 objects.
3453 (update_dynamic_varobj_children): Updated for install_dynamic_child
3454 change. All callers updated.
3455 (varobj_update): Support for MI variable object type change if
3456 the value changed and RTTI is used to determine the type.
3457 (create_child_with_value): Call value_actual_type instead of
3458 value_type.
3459 (adjust_value_for_child_access): Extended with a new parameter which
3460 specify whether the given value should be casted to enclosing type.
3461 All callers updated.
3462
3463 2012-04-14 Yao Qi <yao@codesourcery.com>
3464
3465 Import gnulib module inttypes from git
3466 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3467 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3468 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3469 gnulib/m4/inttypes-pri.m4
3470 * aclocal.m4, config.in, configure: Regenerated.
3471 * gnulib/Makefile.am: Update.
3472 * gnulib/Makefile.in: Update.
3473 * gnulib/m4/gnulib-cache.m4: Update.
3474 * gnulib/m4/gnulib-comp.m4: Update.
3475 * gnulib/inttypes.in.h: New.
3476 * gnulib/m4/inttypes-pri.m4: New.
3477 * gnulib/m4/inttypes.m4: New.
3478
3479 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
3480
3481 * infrun.c (resume): Update PC address to the real PC after
3482 preparing to do displaced stepping.
3483
3484 2012-04-12 Doug Evans <dje@google.com>
3485
3486 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3487 All callers updated.
3488
3489 2012-04-12 Mark Kettenis <kettenis@gnu.org>
3490
3491 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3492
3493 2012-04-12 Doug Evans <dje@google.com>
3494
3495 * dwarf2read.c (create_all_type_units): Renamed from
3496 create_debug_types_hash_table. All callers updated.
3497
3498 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3499 local type_sig to sig_type, type_offset to type_offset_in_tu.
3500 (hash_signatured_type): Renamed from hash_type_signature,
3501 all callers updated.
3502 (eq_signatured_type): Renamed from eq_type_signature,
3503 all callers updated.
3504 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3505 (process_enumeration_scope): Ditto.
3506 (lookup_signatured_type_at_offset): Ditto.
3507 (load_full_type_unit, read_signatured_type): Ditto.
3508
3509 2012-04-12 Yao Qi <yao@codesourcery.com>
3510
3511 * remote.c (async_remote_interrupt): Correct function name in
3512 debug message.
3513 (async_remote_interrupt_twice): Ditto.
3514
3515 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3516
3517 * source.c (find_and_open_source): Consistently pass resulting
3518 full path through xfullpath.
3519
3520 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3521
3522 Provide more specific displaced-stepping memory error message.
3523 * infrun.c (displaced_step_prepare): New variable status. Call
3524 target_read_memory instead of read_memory, provide more specific
3525 error message.
3526
3527 2012-04-11 Tristan Gingold <gingold@adacore.com>
3528
3529 PR gdb/13901
3530 * darwin-nat.c (darwin_execvp): Revert previous patch.
3531
3532 2012-04-11 Tristan Gingold <gingold@adacore.com>
3533
3534 PR gdb/13901
3535 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3536 in case of change.
3537
3538 2012-04-11 Tristan Gingold <gingold@adacore.com>
3539
3540 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3541 warning.
3542
3543 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3544
3545 New command 'explore' which helps explore values and types in
3546 scope.
3547 * NEWS: Add an entry about the new 'explore' command.
3548 * data-directory/Makefile.in: Add gdb/command/explore.py
3549 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3550 command using the GDB Python API.
3551
3552 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3553
3554 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3555 extension in jump target calculation.
3556
3557 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3558
3559 * mips-tdep.c (mips32_next_pc): Handle JALX.
3560
3561 2012-04-10 Yao Qi <yao@codesourcery.com>
3562
3563 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3564
3565 2012-04-10 Yao Qi <yao@codesourcery.com>
3566
3567 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3568 and gnulib/m4/gnulib-tool.m4.
3569
3570 2012-04-10 Doug Evans <dje@google.com>
3571
3572 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3573 (load_partial_dies): Clarify comment.
3574 (find_partial_die): Support rereading type units.
3575 Clarify CU handling, if we know offset is in CU, don't search for the
3576 containing CU. Add comment regarding memory waste.
3577
3578 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3579
3580 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3581 i386/x32-avx and i386/x32-avx-linux.
3582 (i386/x32-expedite): New.
3583 (i386/x32-linux-expedite): Likewise.
3584 (i386/x32-avx-expedite): Likewise.
3585 (i386/x32-avx-linux-expedite): Likewise.
3586 ($(outdir)/i386/x32.dat): Likewise.
3587 ($(outdir)/i386/x32-linux.dat): Likewise.
3588 ($(outdir)/i386/x32-avx.dat): Likewise.
3589 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3590
3591 * features/i386/x32-avx-linux.xml: New file.
3592 * features/i386/x32-avx.xml: Likewise.
3593 * features/i386/x32-core.xml: Likewise.
3594 * features/i386/x32-linux.xml: Likewise.
3595 * features/i386/x32.xml: Likewise.
3596
3597 * features/i386/x32-avx-linux.c: New. Generated.
3598 * features/i386/x32-avx.c: Likewise.
3599 * features/i386/x32-linux.c: Likewise.
3600 * features/i386/x32.c: Likewise.
3601 * regformats/i386/x32-avx-linux.dat: Likewise.
3602 * regformats/i386/x32-avx.dat: Likewise.
3603 * regformats/i386/x32-linux.dat: Likewise.
3604 * regformats/i386/x32.dat: Likewise.
3605
3606 2012-04-10 Tristan Gingold <gingold@adacore.com>
3607
3608 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3609 code to kill the inferior.
3610
3611 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3612
3613 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3614 defines.
3615 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3616 defines.
3617 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3618 (yyvsp): New defines.
3619 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3620 defines.
3621 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3622 defines.
3623 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3624 defines.
3625 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3626 defines.
3627 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3628 defines.
3629
3630 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3631
3632 * sparc64-tdep.c (sparc64_store_arguments)
3633 (sparc64_store_arguments): Fix coding style.
3634
3635 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3636
3637 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3638 complex floats, adjust some related comments and tighten a related
3639 assertion.
3640 (sparc64_extract_return_value): Handle complex floats.
3641
3642 2012-04-07 Doug Evans <dje@google.com>
3643
3644 * dwarf2read.c (load_partial_dies): Change condition to assert.
3645
3646 2012-04-06 Doug Evans <dje@google.com>
3647
3648 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3649 "mov %rsp,%rbp".
3650
3651 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3652
3653 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3654 fencepost error.
3655 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3656 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3657 architecture.
3658
3659 2012-04-05 Keith Seitz <keiths@redhat.com>
3660
3661 * linespec.c (decode_compound): Remove.
3662 (enum offset_relative_sign): New enum.
3663 (struct line_offset): New struct.
3664 (struct linespec): New struct.
3665 (struct linespec_state): Move file_symtabs,
3666 user_filename, and user_function into struct linespec.
3667 Make result an anonymous struct holding vectors of
3668 symbolp and minsym_and_objfile_d.
3669 Add language member.
3670 (enum ls_token_type): New enum.
3671 (linespec_keywords): New array.
3672 (struct ls_token): New struct.
3673 (struct ls_parser): New struct.
3674 (linespec_lexer_lex_number): New function.
3675 (linespec_lexer_lex_keyword): New function.
3676 (is_ada_operator): New function.
3677 (skip_quote_char): New function.
3678 (copy_token_string): New function.
3679 (is_closing_quote_enclosed): New function.
3680 (find_parameter_list_end): New function.
3681 (linespec_lexer_lex_string): New function.
3682 (linespec_lexer_lex_one): New function.
3683 (linespec_lexer_consume_token): New function.
3684 (linespec_lexer_peek_token): New function.
3685 (cplusplus_error): Remove unused function.
3686 (find_methods): Update comment.
3687 (find_toplevel_char): Return const.
3688 (is_objc_method_format): Remove unused function.
3689 (find_toplevel_string): New function.
3690 (is_linespec_boundary): Remove.
3691 (symbol_not_found_error): New function.
3692 (find_method_overload_end): Remove function.
3693 (unexpected_linespec_error): New function.
3694 (keep_name_info): Remove.
3695 (linespec_parse_line_offset): New function.
3696 (linespec_parse_basic): New function.
3697 (canonicalize_linespec): New function.
3698 (decode_line_internal): Remove.
3699 (create_sals_line_offset): New function adapted from
3700 decode_all_digits.
3701 (convert_linespec_to_sals): New function.
3702 (parse_linespec): New function.
3703 (linespec_parser_new): New function.
3704 (linespec_state_destructor): Change parameter type to
3705 struct linespec_state *.
3706 Add language parameter.
3707 Remove freeing of moved members.
3708 (linespec_parser_delete): New function.
3709 (decode_line_full): Use parse_linespec and linespec_parser_new.
3710 (decode_line_1): Likewise.
3711 (decode_indirect): Rename to ...
3712 (linespec_expression_to_pc): ... this and rewrite
3713 to simply find CORE_ADDR, storing this result for later
3714 conversion to SALs.
3715 (locate_first_half): Remove.
3716 (deocde_objc): Add parameter LS.
3717 Initialize new struct collect_info members.
3718 Handle minimal symbols, too.
3719 (decode_compound): Delete.
3720 (lookup_prefix_sym): Rewrite.
3721 (compare_msymbols): New function.
3722 (find_method): Rewrite.
3723 Do not call cplusplus_error.
3724 (symtabs_from_filename): Rewrite.
3725 (collect_function_symbols): Delete.
3726 (find_function_symbols): Rewrite without ARGPTR-style
3727 processing.
3728 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3729 (decode_dollar): Adapted and renamed to ...
3730 (linespec_parse_variable): ... this.
3731 (find_linespec_symbols): New function.
3732 (decode_label): Adapted and renamed to ...
3733 (find_label_symbols): ... this.
3734 (decode_digits_list_mode): Add and use LS argument.
3735 (decode_digits_ordinary): Likewise.
3736 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3737 If in list mode, allow any symbol class. Otherwise, only
3738 permit LOC_BLOCK symbols.
3739 (minsym_found): Update comments.
3740 (search_minsyms_for_name): Do not convert the matching symbol
3741 into a SAL. Simply push the symbol and objfile into the
3742 result vector.
3743 (decode_variable): Delete. Contents adapted into
3744 find_linespec_symbols.
3745
3746 * cp-support.c (SKIP_SPACE): Remove.
3747 (operator_tokens): Remove unused global.
3748 (cp_validate_operator): Remove.
3749 * cp-support.h (cp_validate_operator): Remove declaration.
3750
3751 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3752
3753 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3754 for TYPE_VPTR_FIELDNO.
3755 * valprint.c (valprint_check_validity): Make it global, move the
3756 function comment ...
3757 * value.h (valprint_check_validity): ... to this new declaration.
3758
3759 2012-04-02 Tristan Gingold <gingold@adacore.com>
3760
3761 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3762 the STATE32 api for i386 state.
3763 (i386_darwin_store_inferior_registers): Likewise.
3764
3765 2012-04-02 Tristan Gingold <gingold@adacore.com>
3766
3767 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3768 SS offset.
3769 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3770 format_string.
3771
3772 2012-04-02 Tristan Gingold <gingold@adacore.com>
3773
3774 PR gdb/13901
3775 * darwin-nat.c (darwin_execvp): Set binary preference.
3776
3777 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3778
3779 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3780
3781 2012-03-30 Tom Tromey <tromey@redhat.com>
3782
3783 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3784 of TRY_CATCH. Fix error handling.
3785 * python/py-value.c (convert_value_from_python): Move 'old'
3786 declaration to innermost scope.
3787
3788 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3789 Andrey Smirnov <andrew.smirnov@gmail.com>
3790
3791 -Wshadow warning fix.
3792 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3793 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3794 Adjust code accordingly.
3795
3796 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3797
3798 * ada-lang.c (symbol_completion_add): Rename parameter
3799 "encoded" into "encoded_p". Ajust code and documentation
3800 accordingly.
3801
3802 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3803 Andrey Smirnov <andrew.smirnov@gmail.com>
3804
3805 -Wshadow warning fix.
3806 * ada-lang.c (symbol_completion_add): Rename parameter
3807 "wild_match" into wild_match_p. Update code and documentation
3808 accordingly.
3809
3810 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3811
3812 * ada-lang.c (symbol_completion_match): Rename parameter
3813 "encoded" into "encoded_p". Ajust code and documentation
3814 accordingly.
3815
3816 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3817 Andrey Smirnov <andrew.smirnov@gmail.com>
3818
3819 -Wshadow warning fix.
3820 * ada-lang.c (symbol_completion_match): Rename parameter
3821 "wild_match" into "wild_match_p". Adjust code and function
3822 documentation accordingly.
3823
3824 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3825 Andrey Smirnov <andrew.smirnov@gmail.com>
3826
3827 -Wshadow warning fix.
3828 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3829 "symbol_info" into "info". Adjust code accordingly.
3830 (ada_lookup_symbol): Likewise.
3831
3832 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3833
3834 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3835 of this function's documentation.
3836
3837 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3838 Andrey Smirnov <andrew.smirnov@gmail.com>
3839
3840 -Wshadow warning fix.
3841 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3842 variable into "wild_match_p". Adjust code accordingly.
3843
3844 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3845 Andrey Smirnov <andrew.smirnov@gmail.com>
3846
3847 -Wshadow warning fix.
3848 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3849 parameter into "wild_match_p". Adjust code accordingly.
3850 Document this parameter in the function description.
3851
3852 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3853 Andrey Smirnov <andrew.smirnov@gmail.com>
3854
3855 -Wshadow warning fix.
3856 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3857 "wild_match" parameter to "wild_match_p" (-Wshadow).
3858
3859 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3860
3861 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3862 in function documentation.
3863
3864 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3865 Andrey Smirnov <andrew.smirnov@gmail.com>
3866
3867 -Wshadow warning fix.
3868 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3869 variable into wild_match_p. Adjust code accordingly.
3870
3871 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3872 Andrey Smirnov <andrew.smirnov@gmail.com>
3873
3874 * ada-valprint.c (ada_val_print_1): Move the code handling
3875 TYPE_CODE_ENUM inside its own lexical block. Declare
3876 variables len and val there, instead of in the function's
3877 top level block. Avoid declaring deref_val again in a way
3878 that shadows another variable of the same name declared
3879 in one of the up-level blocks. Just re-use the up-level
3880 variable instead.
3881
3882 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3883
3884 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
3885 Replace block_found argument by symbol_info. Adjust
3886 implementation accordingly. Add function documentation.
3887 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
3888 Fix documentation.
3889 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
3890 * ada-exp.y (write_object_renaming): Adjust to new
3891 ada_lookup_encoded_symbol API.
3892
3893 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3894
3895 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
3896 documentation.
3897
3898 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
3899
3900 * v850-tdep.c: Add the enum values for mpu and fpu registers.
3901 (v850_register_name): Add the mpu and fpu register names.
3902 (v850e_register_name): Add the mpu and fpu register names.
3903 (v850e2_register_name): New function.
3904 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
3905 bfd_mach_v850e2v3.
3906
3907 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3908
3909 * NEWS: Add entry for Ada varobj support.
3910
3911 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3912
3913 * varobj.c (default_value_is_changeable_p): New function,
3914 extracted from varobj_value_is_changeable_p. Add declaration.
3915 (ada_value_is_changeable_p): New function, extracted from
3916 varobj_value_is_changeable_p. Add declaration.
3917 (struct language_specific): New field "value_is_changeable_p".
3918 (languages): Add entries for new field.
3919 (varobj_create): Set language before calling install_new_value.
3920 (varobj_value_is_changeable_p): Reimplement to call the varobj's
3921 "value_is_changeable_p" language callback.
3922
3923 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3924
3925 * ada-varobj.h, ada-varobj.c: New files.
3926 * Makefile.in (SFILES): Add ada-varobj.c.
3927 (HFILES_NO_SRCDIR): Add ada-varobj.h.
3928 (COMMON_OBS): Add ada-varobj.o.
3929
3930 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3931
3932 * varobj.c (ada_value_has_mutated): Add declaration. New function.
3933 (struct language_specific): New field "value_has_mutated".
3934 (languages): Set field "value_has_mutated" in each entry of array.
3935 (varobj_value_has_mutated): New function.
3936 (varobj_udpdate): Add handling of type mutation.
3937 (value_of_root): Add handling of type mutation.
3938 (ada_value_has_mutated): New function.
3939
3940 2012-03-28 Pedro Alves <palves@redhat.com>
3941
3942 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
3943 Always supply $fr0 as 0.0 and $fr1 as 1.0.
3944
3945 2012-03-28 Tom Tromey <tromey@redhat.com>
3946
3947 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
3948 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
3949 before returning.
3950
3951 2012-03-28 Tom Tromey <tromey@redhat.com>
3952
3953 * .dir-locals.el: New file.
3954
3955 2012-03-28 Pedro Alves <palves@redhat.com>
3956
3957 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
3958
3959 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3960
3961 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
3962 handling for r0.
3963
3964 2012-03-27 Pedro Alves <palves@redhat.com>
3965
3966 Eliminate struct ui_stream.
3967
3968 * ui-out.h (struct ui_stream): Delete.
3969 (ui_out_field_stream): Adjust prototype.
3970 (ui_out_stream_new, ui_out_stream_delete)
3971 (make_cleanup_ui_out_stream_delete): Delete declarations.
3972 * ui-out.c (ui_out_field_stream): Change prototype to take a
3973 ui_file instead of a ui_stream. Adjust.
3974 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
3975 (make_cleanup_ui_out_stream_delete): Delete.
3976 * breakpoint.c (print_breakpoint_location)
3977 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
3978 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3979 * disasm.c (dump_insns): Ditto.
3980 (do_mixed_source_and_assembly, do_assembly_only): Adjust
3981 prototype.
3982 (gdb_disassembly): Use ui_file/mem_fileopen instead of
3983 ui_stream/ui_out_stream_new.
3984 * infcmd.c (print_return_value): Ditto.
3985 * osdata.c (info_osdata_command): Don't allocate a local
3986 ui_stream.
3987 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
3988 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3989 * tracepoint.c (print_one_static_tracepoint_marker): Don't
3990 allocate a local ui_stream.
3991 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
3992 instead of ui_stream/ui_out_stream_new.
3993 (list_args_or_locals): Don't allocate a local ui_stream.
3994 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
3995 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
3996 ui_stream/ui_out_stream_new.
3997 * cli/cli-setshow.c (do_setshow_command): Ditto.
3998
3999 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
4000
4001 * arm-linux-tdep.c (arm_linux_init_abi): Call
4002 set_gdbarch_process_record. Initialize `arm_swi_record' field.
4003 * arm-tdep.c (arm_process_record): New function.
4004 (deallocate_reg_mem): New function.
4005 (decode_insn): New function.
4006 (thumb_record_branch): New function.
4007 (thumb_record_ldm_stm_swi(): New function.
4008 (thumb_record_misc): New function.
4009 (thumb_record_ld_st_stack): New function.
4010 (thumb_record_ld_st_imm_offset): New function.
4011 (thumb_record_ld_st_reg_offset(): New function.
4012 (thumb_record_add_sub_cmp_mov): New function.
4013 (thumb_record_shift_add_sub): New function.
4014 (arm_record_coproc_data_proc): New function.
4015 (arm_record_coproc): New function.
4016 (arm_record_b_bl): New function.
4017 (arm_record_ld_st_multiple): New function.
4018 (arm_record_ld_st_reg_offset): New function.
4019 (arm_record_ld_st_imm_offset): New function.
4020 (arm_record_data_proc_imm): New function.
4021 (arm_record_data_proc_misc_ld_str): New function.
4022 (arm_record_extension_space): New function.
4023 (arm_record_strx): New function.
4024 (sbo_sbz): New function.
4025 (struct insn_decode_record): New structure for arm insn record.
4026 (REG_ALLOC): New macro for reg allocations.
4027 (MEM_ALLOC): New macro for memory allocations.
4028 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
4029
4030 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
4031
4032 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
4033 (store_register): Likewise.
4034
4035 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
4036
4037 * MAINTAINERS (Write After Approval): Add myself to the list.
4038
4039 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4040
4041 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
4042 Describe also the option "auto".
4043
4044 2012-03-22 Richard Henderson <rth@redhat.com>
4045
4046 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
4047 * sparc-nat.c (sparc_xfer_wcookie): Make static.
4048
4049 2012-03-22 Richard Henderson <rth@redhat.com>
4050
4051 * jit.c (jit_read_code_entry): Compute alignment and offset of
4052 int64_t member before computing entry_size.
4053
4054 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4055
4056 Python scripting: Add new method Value.referenced_value to
4057 gdb.Value which can dereference pointer as well as reference
4058 values.
4059 * NEWS: Add entry under 'Python scripting' about the new method
4060 Value.referenced_value on gdb.Value objects.
4061 * python/py-value.c (valpy_referenced_value): New function
4062 defining a new method on gdb.Value objects which can dereference
4063 pointer and reference values.
4064
4065 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4066
4067 * MAINTAINERS (Write After Approval): Add myself to the list.
4068
4069 2012-03-21 Kevin Buettner <kevinb@redhat.com>
4070
4071 * symtab.c (skip_prologue_sal): Change test to check for "main()"
4072 in addition to "main".
4073
4074 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4075
4076 * expression.h (op_name): Add declaration.
4077 * expprint.c (op_name): Remove declaration. Make non-static.
4078 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
4079
4080 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
4081
4082 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
4083 of struct siginfo.
4084 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
4085 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4086 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
4087 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
4088 (linux_nat_get_siginfo): Likewise.
4089 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
4090 (linux_nat_get_siginfo): Likewise.
4091 * linux-tdep.c (linux_get_siginfo_type): Likewise.
4092 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
4093 * procfs.c (gdb_siginfo_t): Likewise.
4094
4095 2012-03-21 Mike Frysinger <vapier@gentoo.org>
4096
4097 * .gitignore: Ignore more files.
4098
4099 2012-03-20 Pedro Alves <palves@redhat.com>
4100
4101 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
4102 returns.
4103
4104 2012-03-20 Yao Qi <yao@codesourcery.com>
4105
4106 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
4107 comment.
4108
4109 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4110
4111 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
4112 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
4113 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
4114 sect_offset.
4115 * dwarf2expr.h (cu_offset, sect_offset): New types.
4116 (struct dwarf_expr_context_funcs) <dwarf_call>
4117 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
4118 sect_offset.
4119 (struct dwarf_expr_context) <len>: Improve the comment.
4120 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
4121 cu_offset and sect_offset.
4122 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
4123 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
4124 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
4125 * dwarf2loc.h: Include dwarf2expr.h.
4126 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
4127 and sect_offset.
4128 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
4129 Improve the comment.
4130 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
4131 (struct signatured_type, struct line_header, struct partial_die_info)
4132 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
4133 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
4134 (get_die_type_at_offset, create_cus_from_index)
4135 (create_signatured_type_table_from_index, dw2_get_file_names)
4136 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
4137 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
4138 (create_debug_types_hash_table, process_psymtab_comp_unit)
4139 (load_partial_comp_unit, create_all_comp_units)
4140 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
4141 (load_full_comp_unit, dwarf2_physname, read_import_statement)
4142 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4143 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
4144 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
4145 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
4146 (find_partial_die, read_attribute_value, lookup_die_type)
4147 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
4148 (is_ref_attr): New function comment.
4149 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
4150 Use cu_offset and sect_offset.
4151 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
4152 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
4153 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
4154 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
4155 (offset_and_type_hash, offset_and_type_eq, set_die_type)
4156 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
4157 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4158 sect_offset.
4159
4160 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4161
4162 Code cleanup.
4163 * python/py-auto-load.c (source_section_scripts): New variable back_to.
4164 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4165 with xfree.
4166 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4167
4168 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4169
4170 * NEWS: Describe new options --init-command=FILE, -ix and
4171 --init-eval-command=COMMAND, -iex.
4172 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4173 CMDARG_INIT_COMMAND.
4174 (captured_main): New enum items OPT_IX and OPT_IEX. Add
4175 "init-command", "init-eval-command", "ix" and "iex" to the variable
4176 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
4177 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4178 (print_gdb_help): Describe --init-command=FILE, -ix and
4179 --init-eval-command=COMMAND, -iex.
4180
4181 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4182
4183 Code cleanup.
4184 * main.c (struct cmdarg): Move it here from main. Add more comments.
4185 (cmdarg_s, VEC (cmdarg_s)): New.
4186 (main): Move struct cmdarg from here. New variables cmdarg_vec and
4187 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
4188 Install cleanup for cmdarg_vec. Update filling for options 'x' and
4189 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
4190 of CMDARG.
4191
4192 2012-03-19 Tom Tromey <tromey@redhat.com>
4193
4194 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4195
4196 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4197
4198 PR symtab/13777
4199 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4200 GCC >=4.5.
4201
4202 2012-03-16 Chris January <chris.january@allinea.com>
4203
4204 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4205 of clear.
4206
4207 2012-03-16 Chris January <chris.january@allinea.com>
4208
4209 * source.c (add_path): Use memmove instead of strcpy because the
4210 strings overlap.
4211
4212 2012-03-16 Joel Brobecker <brobecker@adacore.com>
4213
4214 * value.h (set_value_parent): Add declaration.
4215 * value.c (set_value_parent): New function.
4216 (value_address): If VALUE->PARENT is not NULL, then use it as
4217 the base address instead of VALUE->LOCATION.address.
4218 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4219 the same as OBJ's address. Adjust V's offset accordingly.
4220 Set V's parent.
4221
4222 2012-03-16 Gary Benson <gbenson@redhat.com>
4223
4224 PR breakpoints/10738
4225 * dwarf2read.c (use_deprecated_index_sections): New global.
4226 (struct partial_die_info): New member may_be_inlined.
4227 (read_partial_die): Set may_be_inlined where appropriate.
4228 (add_partial_subprogram): Add partial symbols for partial
4229 DIEs that may be inlined.
4230 (new_symbol_full): Add inlined subroutines to the current
4231 scope.
4232 (write_psymtabs_to_index): Bump version number.
4233 (dwarf2_read_index): Read only version 6 indices unless
4234 use_deprecated_index_sections is set.
4235 * linespec.c (symbol_and_data_callback): New structure.
4236 (iterate_inline_only): New function.
4237 (iterate_over_all_matching_symtabs): New argument
4238 "include_inline". If nonzero, also call the callback for
4239 symbols representing inlined subroutines.
4240 (lookup_prefix_sym): Pass extra argument to the above.
4241 (find_function_symbols): Likewise.
4242 (add_matching_symbols_to_info): Likewise.
4243 * NEWS: Mention that GDB can now set breakpoints on inlined
4244 functions.
4245
4246 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4247
4248 * p-typeprint.c (pascal_type_print_method_args):
4249 Fix display of parameter of methods.
4250
4251 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4252
4253 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4254 Add missing prototype.
4255
4256 2012-03-16 Yao Qi <yao@codesourcery.com>
4257 Jan Kratochvil <jan.kratochvil@redhat.com>
4258
4259 Fix false compilation warning.
4260 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4261
4262 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
4263 Pedro Alves <pedro@codesourcery.com>
4264
4265 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4266 (arm_register_g_packet_guesses): New function.
4267 (arm_gdbarch_init): Don't force a target description with
4268 registers when the executable is detected as M-profile. Instead
4269 set gdbarch->tdep->is_m. Register `g' packet guesses.
4270 (_initialize_arm_tdep): Initialize the new target description.
4271 * features/arm-with-m-fpa-layout.xml: New description.
4272 * features/arm-with-m-fpa-layout.c: New, generated.
4273
4274 2012-03-15 Joel Brobecker <brobecker@adacore.com>
4275
4276 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4277 Update function description.
4278 (insert_bp_location): Do not wipe bl->target_info out.
4279 * mem-break.c: #include "gdb_string.h".
4280 (default_memory_insert_breakpoint): Do not call target_read_memory
4281 with a pointer to the breakpoint's shadow_contents buffer. Use
4282 a local buffer instead.
4283 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4284
4285 2012-03-15 Tom Tromey <tromey@redhat.com>
4286
4287 * NEWS: Mention "info vtbl", not "info vtable".
4288 * cp-support.c (info_vtbl_command): Fix comment.
4289 (_initialize_cp_support): Fix text.
4290
4291 2012-03-15 Tom Tromey <tromey@redhat.com>
4292
4293 * cp-valprint.c (cp_print_value_fields): Use
4294 print_function_pointer_address for vtable slot.
4295
4296 2012-03-15 Tom Tromey <tromey@redhat.com>
4297
4298 * gnu-v3-abi.c (struct value_and_voffset): New.
4299 (hash_value_and_voffset, eq_value_and_voffset)
4300 (compare_value_and_voffset, compute_vtable_size)
4301 (print_one_vtable, gnuv3_print_vtable): New functions.
4302 (init_gnuv3_ops): Initialize 'print_vtable' field.
4303 * cp-support.c (info_vtbl_command): New function.
4304 (_initialize_cp_support): Add "info vtbl".
4305 * cp-abi.h (cplus_print_vtable): Declare.
4306 (struct cp_abi_ops) <print_vtable>: New field.
4307 * cp-abi.c (cplus_print_vtable): New function.
4308 * NEWS: Update.
4309
4310 2012-03-15 Tom Tromey <tromey@redhat.com>
4311
4312 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4313 iterate_over_symbols.
4314
4315 2012-03-14 Doug Evans <dje@google.com>
4316
4317 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4318 DW_OP_GNU_parameter_ref.
4319
4320 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4321
4322 Fix double prompt of 'interpreter-exec mi'.
4323 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4324 (mi_interpreter_resume): use it.
4325 (mi_execute_command_input_handler): New function.
4326 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4327 mi_execute_command_input_handler.
4328
4329 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
4330
4331 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4332 prototype.
4333 (darwin_debug_port_info): Make static.
4334 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4335 * machoread.c (_initialize_machoread): Add prototype.
4336 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4337 (i386_darwin_set_control, i386_darwin_get_control)
4338 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4339 i386_darwin_get_status, i386_darwin_get_control):
4340 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4341
4342 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4343
4344 * ax-gdb.c (gen_usual_unary): Remove special handling of
4345 enum and bool types.
4346
4347 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4348
4349 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4350
4351 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4352
4353 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4354
4355 2012-03-13 Chris January <chris.january@allinea.com>
4356
4357 * aix-thread.c (fill_sprs): Store the floating point registers
4358 at the correct offsets into vals.
4359
4360 2012-03-13 Doug Evans <dje@google.com>
4361
4362 * NEWS: Mention symbol-reloading has been deleted.
4363 * symfile.c (symbol_reloading): Delete.
4364 (show_symbol_reloading): Delete.
4365 (_initialize_symfile): Delete set/show symbol-reloading.
4366
4367 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4368 read_in_chain until we have successfully read it in.
4369 (load_full_comp_unit): Ditto.
4370 (read_signatured_type): Add comment.
4371
4372 2012-03-13 Chris January <chris.january@allinea.com>
4373
4374 * stabsread.c (fix_common_block): Change type of valu argument
4375 to CORE_ADDR.
4376
4377 2012-03-13 Chris January <chris.january@allinea.com>
4378
4379 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4380 instruction.
4381
4382 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4383
4384 * common/linux-procfs.c (linux_proc_get_int): New, from
4385 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4386 field.
4387 (linux_proc_get_tgid): Only call linux_proc_get_int.
4388 (linux_proc_get_tracerpid): New.
4389 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4390 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4391 linux_proc_pid_has_state.
4392 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4393 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4394 (linux_ptrace_attach_warnings): New.
4395 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4396 New declaration.
4397 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4398 (linux_nat_attach): New variables ex, buffer, message and message_s.
4399 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4400
4401 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4402
4403 * Makefile.in (linux-ptrace.o): New.
4404 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4405 from linux-nat.c.
4406 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4407 * common/linux-ptrace.c: New file.
4408 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4409 * config/arm/linux.mh: Likewise.
4410 * config/i386/linux.mh: Likewise.
4411 * config/i386/linux64.mh: Likewise.
4412 * config/ia64/linux.mh: Likewise.
4413 * config/m32r/linux.mh: Likewise.
4414 * config/m68k/linux.mh: Likewise.
4415 * config/mips/linux.mh: Likewise.
4416 * config/pa/linux.mh: Likewise.
4417 * config/powerpc/linux.mh: Likewise.
4418 * config/powerpc/ppc64-linux.mh: Likewise.
4419 * config/powerpc/spu-linux.mh: Likewise.
4420 * config/s390/s390.mh: Likewise.
4421 * config/sparc/linux.mh: Likewise.
4422 * config/sparc/linux64.mh: Likewise.
4423 * config/xtensa/linux.mh: Likewise.
4424 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4425 common/linux-procfs.c.
4426 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4427
4428 2012-03-13 Hui Zhu <teawater@gmail.com>
4429 Pedro Alves <palves@redhat.com>
4430
4431 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4432 CREATE_BREAKPOINT_FLAGS_INSERTED.
4433 (create_breakpoint_sal, create_breakpoints_sal)
4434 (base_breakpoint_create_breakpoints_sal)
4435 (tracepoint_create_breakpoints_sal)
4436 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4437 down.
4438 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4439 (ftrace_command, strace_command): Adjust.
4440 (create_tracepoint_from_upload): Pass
4441 CREATE_BREAKPOINT_FLAGS_INSERTED.
4442 * breakpoint.h (enum breakpoint_create_flags): New.
4443 (create_breakpoint): New flags parameter.
4444 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4445 * python/py-breakpoint.c (bppy_init): Adjust.
4446 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4447 * spu-tdep.c (spu_catch_start): Adjust.
4448
4449 2012-03-13 Pedro Alves <palves@redhat.com>
4450 Hui Zhu <teawater@gmail.com>
4451 Yao Qi <yao@codesourcery.com>
4452
4453 * remote.c (struct remote_state): New field `starting_up'.
4454 (remote_start_remote): Set and clear it.
4455 (remote_can_download_tracepoint): If starting up, return false.
4456
4457 2012-03-13 Yao Qi <yao@codesourcery.com>
4458
4459 * inferior.h (struct inferior): Remove fields any_syscall_count,
4460 syscalls_counts and total_syscalls_count. Move them to new
4461 struct catch_syscall_inferior_data in breakpoint.c.
4462 * breakpoint.c: Call DEF_VEC_I(int).
4463 (struct catch_syscall_inferior_data): New.
4464 (get_catch_syscall_inferior_data): New.
4465 (catch_syscall_inferior_data_cleanup): New.
4466 (insert_catch_syscall): Update to access data in
4467 struct catch_syscall_inferior_data.
4468 (insert_catch_syscall): Likewise.
4469 (remove_catch_syscall): Likewise.
4470 (remove_catch_syscall): Likewise.
4471 (is_syscall_catchpoint_enabled): Likewise.
4472 (add_catch_command): Likewise.
4473 (_initialize_breakpoint): Register cleanup.
4474 * breakpoint.h: Removed DEF_VEC_I(int).
4475 * dwarf2loc.c: Call DEF_VEC_I(int).
4476 * mi/mi-main.c: Likewise.
4477
4478 2012-03-12 Mark Kettenis <kettenis@gnu.org>
4479
4480 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4481
4482 2012-03-12 Chris January <chris.january@allinea.com>
4483
4484 * aix-thread.c (_initialize_aix_thread): Add prototype.
4485 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4486 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4487
4488 2012-03-12 Joel Brobecker <brobecker@adacore.com>
4489
4490 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4491 include of "amd64-nat.h".
4492
4493 2012-03-12 Tom Tromey <tromey@redhat.com>
4494
4495 * buildsym.c (record_pending_block): Now static.
4496 * buildsym.h: (record_pending_block): Remove.
4497
4498 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
4499
4500 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4501
4502 2012-03-09 Tom Tromey <tromey@redhat.com>
4503
4504 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4505 producer_is_gxx_lt_4_6>: New fields.
4506 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4507
4508 2012-03-09 Tom Tromey <tromey@redhat.com>
4509
4510 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4511
4512 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4513
4514 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4515 prototype.
4516
4517 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4518
4519 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4520
4521 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4522
4523 Fix -Wmissing-prototypes build.
4524 * arm-linux-nat.c (get_thread_id): Make it static.
4525 * xtensa-linux-nat.c (get_thread_id): Likewise.
4526
4527 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4528
4529 * server.c (process_point_options): If a conditional expression
4530 is found, only print a message if remote_debug is nonzero.
4531
4532 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
4533
4534 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4535 of internal error for unknown/unsupported types.
4536
4537 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4538
4539 Fix CU relative vs. absolute DIE offsets.
4540 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4541 offset to offset_in_cu.
4542 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4543 TYPE_OFFSET.
4544 (dwarf2_fetch_die_location_block): Rename parameter offset to
4545 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4546
4547 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4548
4549 * libunwind-frame.c: Rename to ...
4550 * ia64-libunwind-tdep.c: ... here.
4551 * libunwind-frame.h: Rename to ...
4552 * ia64-libunwind-tdep.h: ... here.
4553 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4554 ia64-libunwind-tdep.h.
4555 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4556 * README (--with-libunwind): Rename to ...
4557 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4558 * config.in: Regenerate.
4559 * configure: Regenerate.
4560 * configure.ac: New option --with-libunwind-ia64, make the
4561 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4562 Remove AC_DEFINE for HAVE_LIBUNWIND.
4563 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4564 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4565 Rename libunwind-frame in the general comment.
4566 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4567 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4568 Move forward declarations inside #ifndef. Rename libunwind-frame in
4569 the general comment.
4570 * ia64-tdep.c: Rename libunwind-frame.h #include to
4571 ia64-libunwind-tdep.h.
4572 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4573 (ia64_libunwind_descr): Rename libunwind-frame to
4574 ia64-libunwind-tdep in these function comments.
4575 * ia64-tdep.h: Rename libunwind-frame.h #include to
4576 ia64-libunwind-tdep.h.
4577 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4578 ia64-libunwind-tdep in that data comment.
4579
4580 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4581
4582 * libunwind-frame.h (struct frame_unwind): New declaration.
4583
4584 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4585
4586 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4587 "set breakpoint condition-evaluation" command.
4588
4589 2012-03-08 Tristan Gingold <gingold@adacore.com>
4590
4591 * sparc-stub.c: Move to stubs/
4592 * sh-stub.c: Likewise.
4593 * m68k-stub.c: Likewise.
4594 * m32r-stub.c: Likewise.
4595 * i386-stub.c: Likewise.
4596
4597 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4598
4599 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4600 linux_get_siginfo_type.
4601
4602 * m68klinux-nat.c: Include "gdb_proc_service.h".
4603 (PTRACE_GET_THREAD_AREA): Define.
4604 (ps_get_thread_area): New function.
4605
4606 2012-03-08 Yao Qi <yao@codesourcery.com>
4607
4608 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4609 `xsnprintf'.
4610 (remote_query_attached): Likewise.
4611 (remote_static_tracepoint_marker_at): Likewise.
4612 (remote_set_permissions): Likewise.
4613 (remote_detach_1, extended_remote_attach_1): Likewise.
4614 (send_g_packet, remote_vkill): Likewise.
4615 (extended_remote_disable_randomization): Likewise.
4616 (remote_add_target_side_condition): Likewise.
4617 (remote_insert_breakpoint): Likewise.
4618 (remote_remove_breakpoint): Likewise.
4619 (remote_insert_watchpoint): Likewise.
4620 (remote_remove_watchpoint): Likewise.
4621 (remote_insert_hw_breakpoint): Likewise.
4622 (remote_insert_hw_breakpoint): Likewise.
4623 (remote_remove_hw_breakpoint): Likewise.
4624 (remote_download_command_source): Likewise.
4625 (remote_download_tracepoint): Likewise.
4626 (remote_download_trace_state_variable): Likewise.
4627 (remote_disable_tracepoint): Likewise.
4628 (remote_trace_set_readonly_regions): Likewise.
4629 (remote_get_tracepoint_status): Likewise.
4630 (remote_trace_find): Likewise.
4631 (remote_get_trace_state_variable_value): Likewise.
4632 (remote_set_disconnected_tracing): Likewise.
4633 (remote_set_circular_trace_buffer): Likewise.
4634 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4635 (remote_use_agent): Likewise.
4636 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4637 Update callers.
4638
4639 2012-03-07 Pedro Alves <palves@redhat.com>
4640
4641 * NEWS: Mention QProgramSignals.
4642 * inferior.h (update_signals_program_target): Declare.
4643 * infrun.c: (update_signals_program_target): New.
4644 (handle_command): Update the target of the new program signals
4645 array changes.
4646 * remote.c (PACKET_QProgramSignals): New enum.
4647 (last_program_signals_packet): New global.
4648 (remote_program_signals): New.
4649 (remote_start_remote): Update the target with the program signals
4650 list.
4651 (remote_protocol_features): Add entry for QPassSignals.
4652 (remote_open_1): Free anc clear last_program_signals_packet.
4653 (init_remote_ops): Install remote_program_signals.
4654 * target.c (update_current_target): Adjust.
4655 (target_program_signals): New.
4656 * target.h (struct target_ops) <to_program_signals>: New field.
4657 (target_program_signals): Declare.
4658
4659 2012-03-07 Pedro Alves <palves@redhat.com>
4660
4661 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4662 extensions.
4663
4664 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4665
4666 * m68klinux-nat.c (getregs_supplies): Make static.
4667 (getfpregs_supplies): Likewise.
4668 (have_ptrace_getregs): Likewise.
4669
4670 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4671
4672 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4673 in call to get_die_type_at_offset.
4674
4675 2012-03-06 Stan Shebs <stan@codesourcery.com>
4676
4677 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4678 * mi/mi-cmd-disas.c: Ditto.
4679 * mi/mi-cmd-env.c: Ditto.
4680 * mi/mi-cmd-file.c: Ditto.
4681 * mi/mi-cmd-stack.c: Ditto.
4682 * mi/mi-cmd-target.c: Ditto.
4683 * mi/mi-cmd-var.c: Ditto.
4684 * mi/mi-cmds.c: Ditto.
4685 * mi/mi-cmds.h: Ditto.
4686 * mi/mi-console.c: Ditto.
4687 * mi/mi-getopt.c: Ditto.
4688 * mi/mi-getopt.h: Ditto.
4689 * mi/mi-interp.c: Ditto.
4690 * mi/mi-main.c: Ditto.
4691 * mi/mi-out.c: Ditto.
4692 * mi/mi-parse.c: Ditto.
4693 * mi/mi-parse.h: Ditto.
4694 * mi/mi-symbol-cmds.c: Ditto.
4695
4696 * mi/mi-getopt.h: Move mi_opt struct up.
4697 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4698 return.
4699 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4700
4701 2012-03-06 Tom Tromey <tromey@redhat.com>
4702
4703 * proc-service.c (ps_pglobal_lookup): Set the current program
4704 space.
4705
4706 2012-03-06 Pedro Alves <palves@redhat.com>
4707
4708 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4709
4710 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4711
4712 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4713
4714 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4715
4716 Code cleanup.
4717 * common/linux-osdata.c (linux_common_core_of_thread): New function
4718 comment.
4719 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4720 call by linux_common_core_of_thread.
4721 (linux_nat_core_of_thread_1): Remove.
4722 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4723 * linux-thread-db.c: Include linux-osdata.h.
4724 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4725 linux_common_core_of_thread.
4726
4727 2012-03-05 Tom Tromey <tromey@redhat.com>
4728
4729 * value.c (value_primitive_field): Don't fetch contents for
4730 non-virtual bases.
4731
4732 2012-03-05 Tom Tromey <tromey@redhat.com>
4733
4734 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4735
4736 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4737
4738 * s390-nat.c: Include "gregset.h".
4739
4740 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4741
4742 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4743 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4744 (libunwind_load): New variable so_error, use it for dlerror. Try to
4745 load also LIBUNWIND_SO_7.
4746
4747 2012-03-05 Pedro Alves <palves@redhat.com>
4748
4749 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4750 is not NULL, and remove resulting dead code.
4751
4752 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4753
4754 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4755 prologue to sh_analyze_prologue.
4756 (sh_analyze_prologue): Make better use of such an upper limit, and
4757 generally be more cautious about accessing memory.
4758
4759 2012-03-05 Tom Tromey <tromey@redhat.com>
4760
4761 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4762 _initialize_ia64_hpux_tdep.
4763
4764 2012-03-05 Pedro Alves <palves@redhat.com>
4765
4766 PR gdb/13766
4767
4768 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4769 the register state is clear, supply explicit zero, instead of
4770 marking the register unavailable.
4771
4772 2012-03-05 Tristan Gingold <gingold@adacore.com>
4773
4774 * NEWS: Mention OpenVMS ia64 new target.
4775
4776 2012-03-05 Tristan Gingold <gingold@adacore.com>
4777
4778 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4779 (ia64_unw_accessors, ia64_unw_rse_accessors)
4780 (ia64_libunwind_descr): Declare.
4781 * ia64-vms-tdep.c: New file.
4782 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4783 (ia64_libunwind_descr): Make them public.
4784 * configure.tgt: Add ia64-*-*vms*.
4785 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4786 (ALLDEPFILES): Add ia64-vms-tdep.c
4787
4788 2012-03-05 Tristan Gingold <gingold@adacore.com>
4789
4790 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4791 * remote.c (PACKET_qXfer_uib): New enum value.
4792 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4793 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4794 (_initialize_remote): Call add_packet_config_cmd for
4795 xfer:uib packet.
4796
4797 2012-03-05 Tristan Gingold <gingold@adacore.com>
4798
4799 * osabi.c (gdb_osabi_names): Add OpenVMS.
4800 (generic_elf_osabi_sniffer): Likewise.
4801 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4802
4803 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4804
4805 Removed unused code.
4806 * libunwind-frame.c (libunwind_frame_unwind)
4807 (libunwind_frame_base_address): Remove.
4808 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4809
4810 2012-03-04 Yao Qi <yao@codesourcery.com>
4811
4812 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4813 remove trailing new line.
4814 (agent_run_command, agent_run_command): Add _ markup.
4815 (agent_capability_check): Likewise.
4816
4817 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4818
4819 * breakpoint.c (set_condition_evaluation_mode): Set
4820 CONDITION_EVALUATION_MODE unconditionally.
4821
4822 2012-03-03 Yao Qi <yao@codesourcery.com>
4823
4824 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4825 * common/agent.h: Update declaration.
4826 * inf-child.c (inf_child_use_agent): New.
4827 (inf_child_can_use_agent): New.
4828 (inf_child_target): Initialize fields `to_use_agent'
4829 and `to_can_use_agent'.
4830 * agent.c (agent_new_objfile): New.
4831 (_initialize_agent): Add agent_new_objfile to new_objfile
4832 observer.
4833
4834 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4835 New.
4836 (linux_target_install_ops): Initialize field
4837 `to_static_tracepoint_markers_by_strid'.
4838 * remote.c (free_current_marker): Move it to ...
4839 * tracepoint.c (free_current_marker): ... here. New.
4840 (cleanup_target_stop): New.
4841 * tracepoint.h: Declare free_current_marker.
4842 * NEWS: Add one entry about `info static-tracepoint-marker'.
4843
4844 2012-03-03 Yao Qi <yao@codesourcery.com>
4845
4846 * common/agent.c (agent_loaded_p): New.
4847 (agent_look_up_symbols): New global.
4848 * common/agent.h: Declare agent_loaded_p.
4849
4850 2012-03-03 Yao Qi <yao@codesourcery.com>
4851
4852 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4853 (agent_capability_check, agent_capability_invalidate): New.
4854 (symbol_list): New array element.
4855 * common/agent.h (enum agent_capa): New.
4856 * target.c (target_pre_inferior): Call agent_capability_invalidate.
4857
4858 2012-03-03 Yao Qi <yao@codesourcery.com>
4859
4860 * target.h (struct target_ops) <to_use_agent>: New field.
4861 (struct target_ops) <to_can_use_agent>: New field.
4862 (target_use_agent, target_can_use_agent): New macro.
4863 * target.c (update_current_target): Update.
4864 * remote.c: New enum `PACKET_QAgent'.
4865 (remote_protocol_features): Add a new element.
4866 (remote_use_agent, remote_can_use_agent): New.
4867 (init_remote_ops): Initialize field `can_use_agent' with
4868 remote_can_use_agent. Intiailize field `use_agent' with
4869 remote_use_agent.
4870 * common/agent.c (use_agent): New global.
4871 * common/agent.h: Declare it.
4872 * tracepoint.c (info_static_tracepoint_markers_command): Add
4873 comment.
4874 * Makefile.in (SFILES): Add common/agent.c and agent.c.
4875 (COMMON_OBS): Add common/agent.o and agent.o
4876 (common-agent.o): New rule.
4877 * agent.c: New.
4878
4879 2012-03-03 Yao Qi <yao@codesourcery.com>
4880
4881 * common/agent.c: New.
4882 * common/agent.h: New.
4883 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
4884 AC_CHECK_HEADERS.
4885 * configure, configh.in: Regenerated.
4886
4887 2012-03-02 Kevin Buettner <kevinb@redhat.com>
4888
4889 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
4890 unless it exists for this architecture.
4891
4892 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4893
4894 * language.h (struct language_defn): New "method" la_read_var_value.
4895 * findvar.c: #include "language.h".
4896 (default_read_var_value): Renames read_var_value. Rewrite
4897 function description.
4898 (read_var_value): New function.
4899 * value.h (default_read_var_value): Add prototype.
4900 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
4901 New functions.
4902 (ada_language_defn): Add entry for la_read_var_value.
4903 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
4904 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
4905 language_defn structures to add entry for new la_read_var_value
4906 field.
4907
4908 2012-03-02 Tom Tromey <tromey@redhat.com>
4909 Pedro Alves <palves@redhat.com>
4910
4911 PR breakpoints/13776:
4912 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
4913 breakpoints.
4914 (delete_longjmp_breakpoint_at_next_stop): New.
4915 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
4916 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
4917 before deleting the inferior. Add comments.
4918 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
4919 breakpoints immediately, but only on next stop. Move that code
4920 next to where we mark other breakpoints for deletion.
4921
4922 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4923
4924 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
4925 marker.
4926 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
4927 violation.
4928
4929 2012-03-02 Pedro Alves <palves@redhat.com>
4930
4931 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
4932
4933 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4934
4935 Fix -Wmissing-prototypes build.
4936 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
4937 * remote-sim.c (gdbsim_has_all_memory): Likewise.
4938 (gdbsim_has_memory): Likewise.
4939
4940 2012-03-02 Yao Qi <yao@codesourcery.com>
4941
4942 Fix -Wmissing-prototypes build.
4943 * charset.c (phony_iconv_open): Make static.
4944 (phony_iconv_close, phony_iconv): Likewise.
4945 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
4946 * i386-windows-nat.c (_initialize_i386_windows_nat): New
4947 prototype.
4948 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
4949 * ser-mingw.c (create_select_thread): Make static.
4950 * windows-termcap.c (tgetent): New prototype.
4951 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
4952
4953 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
4954
4955 Fix -Wmissing-prototypes build.
4956 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
4957 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
4958 (_initialize_loadable): New prototypes.
4959
4960 2012-03-02 Doug Evans <dje@google.com>
4961
4962 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
4963 abbrev table, read_comp_unit will do it.
4964
4965 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4966
4967 Fix -Wmissing-prototypes build.
4968 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
4969 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
4970 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
4971 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
4972 (_initialize_arm_symbian_tdep): New prototype.
4973 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
4974 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
4975 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
4976 static.
4977 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
4978 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
4979 prototype.
4980 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
4981 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
4982 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
4983 static.
4984 * moxie-tdep.c (moxie_process_record): Likewise.
4985 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
4986 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
4987 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
4988 (_initialize_rl78_tdep): New prototype.
4989 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
4990 (_initialize_rx_tdep): New prototype.
4991 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
4992 (_initialize_darwin_solib): New prototype.
4993 * solib-spu.c: Include solib-spu.h.
4994 (_initialize_spu_solib): New prototype.
4995 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
4996 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
4997 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
4998 (tic6x_software_single_step): Make it static.
4999 (_initialize_tic6x_tdep): New prototype.
5000
5001 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5002
5003 Fix -Wmissing-prototypes build.
5004 * cris-tdep.c (cris_can_use_hardware_watchpoint)
5005 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
5006
5007 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5008
5009 Fix -Wmissing-prototypes build.
5010 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
5011 (frv_have_stopped_data_address): Remove.
5012
5013 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5014
5015 Fix -Wmissing-prototypes build.
5016 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
5017 * sh-tdep.c: Include sh64-tdep.h.
5018 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
5019 * sh64-tdep.c: Include sh64-tdep.h.
5020 * sh64-tdep.h: New file.
5021
5022 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5023
5024 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
5025
5026 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5027
5028 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
5029 sp_regnum once the gdbarch_init_osabi hook has been called.
5030
5031 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5032
5033 * mips-tdep.c (mips32_bc1_pc): New function.
5034 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5035 BPOSGE32 and BPOSGE64 instructions.
5036 (deal_with_atomic_sequence): Likewise.
5037 (mips32_instruction_has_delay_slot): Likewise.
5038
5039 2012-03-01 Maciej W. Rozycki <macro@mips.com>
5040 Chris Dearman <chris@mips.com>
5041 Maciej W. Rozycki <macro@codesourcery.com>
5042 Joseph Myers <joseph@codesourcery.com>
5043
5044 * features/mips-dsp.xml: New file.
5045 * features/mips64-dsp.xml: New file.
5046 * features/mips-dsp-linux.xml: New file.
5047 * features/mips64-dsp-linux.xml: New file.
5048 * features/Makefile (WHICH): Add mips-dsp-linux and
5049 mips64-dsp-linux.
5050 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
5051 * features/mips-dsp-linux.c: New file.
5052 * features/mips64-dsp-linux.c: New file.
5053 * regformats/mips-dsp-linux.dat: New file.
5054 * regformats/mips64-dsp-linux.dat: New file.
5055 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
5056 registers.
5057 (mips64_linux_register_addr): Likewise.
5058 (mips64_linux_regsets_fetch_registers): Likewise.
5059 (mips64_linux_regsets_store_registers): Likewise.
5060 (mips64_linux_fetch_registers): Update call to
5061 mips64_linux_regsets_fetch_registers.
5062 (mips64_linux_store_registers): Update call to
5063 mips64_linux_regsets_store_registers.
5064 (mips_linux_read_description): Probe for DSP registers.
5065 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
5066 and initialize_tdesc_mips64_dsp_linux.
5067 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
5068 Remove padding of no longer used embedded register slots.
5069 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
5070 (MIPS_RESTART_REGNUM): Redefine enum value.
5071 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
5072 strings.
5073 (mips_tx39_reg_names): Likewise.
5074 (mips_linux_reg_names): New array of register names for Linux
5075 targets.
5076 (mips_register_name): Check for a null pointer in
5077 mips_processor_reg_names and return an empty string.
5078 (mips_register_type): Exclude embedded registers for the IRIX
5079 and Linux ABIs.
5080 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
5081 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
5082 DSP registers.
5083 (mips_stab_reg_to_regnum): Handle DSP accumulators.
5084 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
5085 (mips_gdbarch_init): Likewise. Initialize internal register
5086 indices for the Linux ABI. Use dynamic numbers to refer to
5087 registers, as applicable, while parsing the target description.
5088 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
5089
5090 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5091
5092 * frame.h (read_frame_register_unsigned): Fix typo in function
5093 description.
5094
5095 2012-03-01 Pedro Alves <palves@redhat.com>
5096
5097 * jit-reader.in [!__cplusplus]
5098 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
5099
5100 2012-03-01 Pedro Alves <palves@redhat.com>
5101
5102 * configure.ac (build_warnings): Add -Wmissing-prototypes.
5103 * configure: Regenerate.
5104
5105 2012-03-01 Pedro Alves <palves@redhat.com>
5106
5107 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
5108 * breakpoint.c (create_exception_master_breakpoint, trace_command)
5109 (ftrace_command, strace_command): Make static.
5110 * d-lang.c (_initialize_d_language): Declare.
5111 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
5112 * dwarf2loc.c (_initialize_dwarf2loc):
5113 * dwarf2read.c (process_psymtab_comp_unit): Make static.
5114 * exec.c (exec_get_section_table): Make static.
5115 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
5116 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
5117 * inferior.c (remove_inferior_command, add_inferior_command)
5118 (clone_inferior_command): Make static.
5119 * linux-nat.c (linux_nat_thread_address_space)
5120 (linux_nat_core_of_thread): Make static.
5121 * linux-tdep.c (_initialize_linux_tdep): Declare.
5122 * objc-lang.c (_initialize_objc_lang): Declare.
5123 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
5124 Make static.
5125 (_initialize_opencl_language): Declare.
5126 * record.c (_initialize_record): Declare.
5127 * remote.c (demand_private_info, remote_get_tib_address)
5128 (remote_supports_cond_tracepoints)
5129 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
5130 Make static.
5131 * skip.c (_initialize_step_skip): Declare.
5132 * symtab.c (skip_prologue_using_lineinfo): Make static.
5133 * tracepoint.c (delete_trace_state_variable)
5134 (trace_variable_command, delete_trace_variable_command)
5135 (get_uploaded_tsv, find_matching_tracepoint_location)
5136 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
5137 Make static.
5138 * value.c (pack_unsigned_long): Make static.
5139 * varobj.c (varobj_ensure_python_env): Make static.
5140 * windows-tdep.c (_initialize_windows_tdep): Declare.
5141 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
5142
5143 2012-03-01 Pedro Alves <palves@redhat.com>
5144
5145 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
5146 gdbarch parameter.
5147 (linux_init_abi): Install it as has_shared_address_space gdbarch
5148 callback.
5149
5150 2012-03-01 Pedro Alves <palves@redhat.com>
5151
5152 * observer.c (observer_test_first_notification_function)
5153 (observer_test_second_notification_function)
5154 (observer_test_third_notification_function): Add declarations.
5155
5156 2012-03-01 Pedro Alves <palves@redhat.com>
5157
5158 * common/signals.c (default_target_signal_to_host)
5159 (default_target_signal_from_host): Move ...
5160 * arch-utils.c: ... here.
5161 * arch-utils.h (default_target_signal_to_host)
5162 (default_target_signal_from_host): Declare.
5163
5164 * common/signals.c (target_signal_from_command): Move ...
5165 * infrun.c: ... here.
5166 * inferior.h (target_signal_from_command): Declare.
5167 * target.h (target_signal_from_command)
5168 (default_target_signal_from_host, default_target_signal_to_host):
5169 Delete declarations.
5170
5171 * common/signals.c (_initialize_signals): Delete.
5172
5173 2012-03-01 Pedro Alves <palves@redhat.com>
5174
5175 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5176 both __cplusplus and !__cplusplus.
5177
5178 2012-03-01 Pedro Alves <palves@redhat.com>
5179
5180 * psymtab.c (find_and_open_source): Delete declaration.
5181 * source.c (find_and_open_source): Move comment ...
5182 * source.h (find_and_open_source): ... to this new declaration.
5183
5184 2012-03-01 Pedro Alves <palves@redhat.com>
5185
5186 * inline-frame.c: Include inline-frame.h.
5187
5188 2012-03-01 Pedro Alves <palves@redhat.com>
5189
5190 * tui/tui-data.c (set_gen_win_origin): Delete.
5191 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5192 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5193
5194 2012-03-01 Pedro Alves <palves@redhat.com>
5195
5196 * remote.c (encode_actions): Delete declaration.
5197 * tracepoint.c (encode_actions): Make extern.
5198 * tracepoint.h (encode_actions): Declare.
5199
5200 2012-03-01 Pedro Alves <palves@redhat.com>
5201
5202 * python/py-breakpoint.c: Include python.h.
5203 * python/py-continueevent.c (create_continue_event_object): Make
5204 static.
5205 * python/py-lazy-string.c (stpy_get_type): Make static.
5206 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5207 Make static.
5208 * python/py-utils.c (unicode_to_target_python_string): Make
5209 static.
5210 * python/py-value.c: Include python.h.
5211
5212 2012-03-01 Pedro Alves <palves@redhat.com>
5213
5214 * inferior.c (delete_threads_of_inferior): Delete.
5215
5216 2012-03-01 Pedro Alves <palves@redhat.com>
5217
5218 Import fallback definitions from glibc.
5219
5220 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5221 ps_prochandle): Forward declare.
5222 (ps_err_e): Use glibc's comments.
5223 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5224 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5225 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5226 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5227 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5228 (struct ps_prochandle): Adjust comment.
5229
5230 2012-03-01 Pedro Alves <palves@redhat.com>
5231
5232 * ada-lang.c (ada_modulus_from_name): Delete.
5233 * ada-lex.l (lexer_init): Make static.
5234
5235 2012-03-01 Pedro Alves <palves@redhat.com>
5236
5237 PR gdb/13767
5238
5239 * frame.c (read_frame_register_unsigned): New.
5240 * frame.h (read_frame_register_unsigned): Declare.
5241 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5242 Handle it.
5243 (print_i387_control_word): New parameter `control_p'. Handle it.
5244 (i387_print_float_info): Handle unavailable float registers.
5245
5246 2012-03-01 Keith Seitz <keiths@redhat.com>
5247
5248 * linespec.c (decode_line_2): Sort the list of methods
5249 alphabetically before presenting the user with a selection
5250 menu.
5251
5252 2012-03-01 Doug Evans <dje@google.com>
5253
5254 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5255 has_namespace_info.
5256 (dwarf2_read_abbrevs): Remove corresponding initialization.
5257
5258 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
5259
5260 * NEWS: Mention new python command class gdb.COMMAND_USER.
5261 * cli/cli-cmds.c (show_user): Print error when used on a python
5262 command.
5263 (init_cli_cmds): Update documentation strings for "show user" and
5264 "set/show max-user-call-depth" to clarify that it does not apply to
5265 python commands.
5266 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5267 error check.
5268 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5269 gdb python api.
5270 * top.c (execute_command): Only execute a user-defined command as a
5271 legacy macro if c->user_commands is set.
5272
5273 2012-03-01 Tom Tromey <tromey@redhat.com>
5274
5275 * valprint.h (struct generic_val_print_decorations): New.
5276 (generic_val_print): Declare.
5277 * valprint.c (generic_val_print): New function.
5278 * p-valprint.c (p_decorations): New global.
5279 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5280 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5281 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5282 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5283 * m2-valprint.c (m2_decorations): New global.
5284 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5285 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5286 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5287 TYPE_CODE_ERROR>: Call generic_val_print.
5288 * f-valprint.c (f_decorations): New global.
5289 (f_val_print): Use print_function_pointer_address.
5290 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5291 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5292 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5293 generic_val_print.
5294 * c-valprint.c (c_decorations): New global.
5295 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5296 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5297 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5298 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5299 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5300 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5301 case.
5302
5303 2012-03-01 Tom Tromey <tromey@redhat.com>
5304
5305 * valprint.c (val_print): Update.
5306 * p-valprint (pascal_val_print): Return void.
5307 * p-lang.h (pascal_val_print): Return void.
5308 * m2-valprint.c (m2_val_print): Return void.
5309 * m2-lang.h (m2_val_print): Return void.
5310 * language.h (struct language_defn) <la_val_print>: Return void.
5311 * language.c (unk_lang_val_print): Return void.
5312 * jv-valprint.c (java_val_print): Return void.
5313 * jv-lang.h (java_val_print): Return void.
5314 * f-valprint.c (f_val_print): Return void.
5315 * f-lang.h (f_val_print): Return void.
5316 * d-valprint.c (d_val_print): Return void.
5317 (dynamic_array_type): Update.
5318 * d-lang.h (d_val_print): Return void.
5319 * c-valprint.c (c_val_print): Return void.
5320 * c-lang.h (c_val_print): Return void.
5321 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5322 void.
5323 * ada-lang.h (ada_val_print): Return void.
5324
5325 2012-03-01 Tom Tromey <tromey@redhat.com>
5326
5327 * value.h (val_print): Return void.
5328 * valprint.c (val_print): Return void.
5329
5330 2012-03-01 Tom Tromey <tromey@redhat.com>
5331
5332 * value.h (common_val_print): Return void.
5333 * valprint.c (common_val_print): Return void.
5334
5335 2012-03-01 Tom Tromey <tromey@redhat.com>
5336
5337 * value.h (value_print): Return void.
5338 * valprint.c (value_print): Return void.
5339 * p-valprint.c (pascal_value_print): Return void.
5340 * p-lang.h (pascal_value_print): Return void.
5341 * language.h (struct language_defn) <la_value_print>: Return
5342 void.
5343 * language.c (unk_lang_value_print): Return void.
5344 * jv-valprint.c (java_value_print): Return void.
5345 * jv-lang.h (java_value_print): Return void.
5346 * f-valprint.c (c_value_print): Don't declare.
5347 Include c-lang.h.
5348 * c-valprint.c (c_value_print): Return void.
5349 * c-lang.h (c_value_print): Return void.
5350 * ada-valprint.c (ada_value_print): Return void.
5351 * ada-lang.h (ada_value_print): Return void.
5352
5353 2012-03-01 Tom Tromey <tromey@redhat.com>
5354
5355 * value.c (value_primitive_field): Handle virtual base classes.
5356
5357 2012-03-01 Tom Tromey <tromey@redhat.com>
5358
5359 * gdbtypes.h (struct vbase): Remove.
5360
5361 2012-03-01 Tom Tromey <tromey@redhat.com>
5362
5363 * c-valprint.c (print_function_pointer_address): Move...
5364 * valprint.c: ... here. Make non-static.
5365 * m2-valprint.c (print_function_pointer_address): Remove.
5366 * valprint.h (print_function_pointer_address): Declare.
5367
5368 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5369
5370 * NEWS: Document the fact that one can provide a condition when
5371 creating an Ada exception catchpoint.
5372
5373 2012-03-01 Tom Tromey <tromey@redhat.com>
5374
5375 * valprint.c (val_print_type_code_flags): Fix placement of
5376 trailing brace.
5377
5378 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5379
5380 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5381 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5382 environment variable before calling update-copyright.
5383
5384 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5385
5386 * gnulib/extra/update-copyright: Update to the latest from
5387 gnulib's git repository.
5388 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5389 variable to 2 instead of 1.
5390
5391 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5392
5393 * varobj.c (c_value_of_variable): Remove dead code.
5394
5395 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5396
5397 * ada-lex.p (processId): Do not modify already encoded IDs.
5398 Update function documentation.
5399
5400 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5401
5402 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5403 "name" with "struct symbol *name_sym".
5404 * ada-exp.y (write_var_or_type): Update call to
5405 ada_find_renaming_symbol.
5406 "name" with "struct symbol *name_sym". Adjust Implementation
5407 accordingly. Adjust the function documentation.
5408
5409 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5410
5411 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5412 * ada-lang.c (ada_find_any_type): Add advance declaration.
5413 Make static. Replace ada_find_any_symbol by
5414 ada_find_any_type_symbol.
5415 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5416 Improve function description. Make static.
5417 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5418 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5419
5420 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5421
5422 * ada-lang.c (struct tag_args): Delete.
5423 (ada_get_tsd_type): Function body moved up in source file.
5424 (ada_tag_name_1, ada_tag_name_2): Delete.
5425 (ada_get_tsd_from_tag): New function.
5426 (ada_tag_name_from_tsd): New function.
5427 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5428 to determine the tag name.
5429
5430 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5431
5432 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5433 declaration.
5434 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5435 function.
5436
5437 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5438
5439 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5440
5441 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5442
5443 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5444 full searches.
5445
5446 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5447
5448 * ada-lang.c (constrained_packed_array_type): If there is a
5449 parallel XA type, use it to determine the array index type.
5450
5451 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5452
5453 * ada-valprint.c (ada_val_print_1): If our value is a reference
5454 to an array descriptor, dereference it before converting it
5455 to a simple array.
5456
5457 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5458
5459 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5460 creating fixed value.
5461 (ada_value_ind, ada_coerce_ref, assign_component)
5462 (ada_evaluate_subexp): Remove call to unwrap_value before
5463 call to ada_to_fixed_value.
5464
5465 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5466
5467 * ada-lang.c (to_fixed_array_type): Set result's type name.
5468
5469 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5470
5471 * ada-lang.c (catch_ada_exception_command_split): Add new
5472 argument cond_string. Add support for condition at end of
5473 "catch exception" commands.
5474 (ada_decode_exception_location): Add new argument cond_string.
5475 Update call to catch_ada_exception_command_split.
5476 (create_ada_exception_catchpoint): Add new argument cond_string.
5477 Set the breakpoint condition if needed.
5478 (catch_ada_exception_command): Update call to
5479 ada_decode_exception_location.
5480 (ada_decode_assert_location): Add function documentation.
5481 Add support for condition at end of "catch assert" command.
5482 (catch_assert_command): Update calls to ada_decode_assert_location
5483 and create_ada_exception_catchpoint.
5484
5485 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5486
5487 Fix disp-step-syscall.exp: fork: single step over fork.
5488 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5489 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5490 comment, change parameters gdbarch and ptid to regcache. Remove
5491 parameter regcache, initialize gdbarch from regcache here.
5492 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5493 New functions.
5494 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5495 instead.
5496 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5497 'syscall'. Make the 'int' check more strict.
5498
5499 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5500
5501 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5502 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5503 (i386_linux_intx80_sysenter_syscall_record): ... here.
5504 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5505 Use the renamed function name.
5506
5507 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5508
5509 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5510 * breakpoint.c (until_break_command): Likewise.
5511 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5512 * infcall.c (call_function_by_hand): Likewise.
5513 * infcmd.c (finish_forward): Likewise.
5514 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5515
5516 2012-02-28 Tristan Gingold <gingold@adacore.com>
5517
5518 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5519 avoid variable assignments inside condition.
5520
5521 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5522
5523 Fix static analysis issue found by cppcheck.
5524 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5525 uninitialized BUF for size 2.
5526
5527 2012-02-27 Chris Dearman <chris@mips.com>
5528 Nathan Froyd <froydnj@codesourcery.com>
5529 Maciej W. Rozycki <macro@codesourcery.com>
5530
5531 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5532 (mips16_instruction_has_delay_slot): Likewise.
5533 (mips_segment_boundary): Likewise.
5534 (mips_adjust_breakpoint_address): Likewise.
5535 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5536
5537 2012-02-27 Maciej W. Rozycki <macro@mips.com>
5538 Maciej W. Rozycki <macro@codesourcery.com>
5539
5540 * infrun.c (handle_inferior_event): Don't proceed through
5541 shared library trampolines if stepping at the machine
5542 instruction level.
5543
5544 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5545
5546 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5547 too.
5548
5549 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5550
5551 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5552 (sh_stub_unwind_sniffer): New functions.
5553 (sh_stub_unwind): New variable.
5554 (sh_gdbarch_init): Wire everything.
5555
5556 2012-02-27 Pedro Alves <palves@redhat.com>
5557
5558 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5559 (linux_nat_post_attach_wait): Adjust to use
5560 linux_proc_pid_is_stopped.
5561 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5562 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5563 based on pid_is_stopped from both linux-nat.c and
5564 gdbserver/linux-low.c, and renamed.
5565
5566 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5567
5568 * remote.c (remote_watchpoint_addr_within_range): New function.
5569 (init_remote_ops): Use it.
5570
5571 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5572
5573 * target.h (target_watchpoint_addr_within_range): Document macro.
5574
5575 2012-02-24 Pedro Alves <palves@redhat.com>
5576
5577 * stack.c (set_last_displayed_sal): Issue internal_error instead
5578 of warning, and issue it after clearing the last displayed sal.
5579
5580 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5581 Pedro Alves <palves@redhat.com>
5582
5583 * breakpoint.c (until_break_command): Install breakpoints after
5584 all frame manipulations.
5585
5586 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5587
5588 * remote.c (remote_supports_cond_breakpoints): New forward
5589 declaration.
5590 (remote_add_target_side_condition): New function.
5591 (remote_insert_breakpoint): Add target-side breakpoint
5592 conditional if supported.
5593 (remote_insert_hw_breakpoint): Likewise.
5594 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5595 hook.
5596
5597 * target.c (update_current_target): Inherit
5598 to_supports_evaluation_of_breakpoint_conditions.
5599 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5600
5601 * target.h (struct target_ops)
5602 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5603 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5604
5605 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5606 (condition_evaluation_both, condition_evaluation_auto,
5607 condition_evaluation_host, condition_evaluation_target,
5608 condition_evaluation_enums, condition_evaluation_mode_1,
5609 condition_evaluation_mode): New static globals.
5610 (translate_condition_evaluation_mode): New function.
5611 (breakpoint_condition_evaluation_mode): New function.
5612 (gdb_evaluates_breakpoint_condition_p): New function.
5613 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5614 (mark_breakpoint_modified): New function.
5615 (mark_breakpoint_location_modified): New function.
5616 (set_condition_evaluation_mode): New function.
5617 (show_condition_evaluation_mode): New function.
5618 (bp_location_compare_addrs): New function.
5619 (get_first_location_gte_addr): New helper function.
5620 (set_breakpoint_condition): Free condition bytecode if locations
5621 has become unconditional. Call mark_breakpoint_modified (...).
5622 (condition_command): Call update_global_location_list (1) for
5623 breakpoints.
5624 (breakpoint_xfer_memory): Use is_breakpoint (...).
5625 (is_breakpoint): New function.
5626 (parse_cond_to_aexpr): New function.
5627 (build_target_condition_list): New function.
5628 (insert_bp_location): Handle target-side conditional
5629 breakpoints and call build_target_condition_list (...).
5630 (update_inserted_breakpoint_locations): New function.
5631 (insert_breakpoint_locations): Handle target-side conditional
5632 breakpoints.
5633 (bpstat_check_breakpoint_conditions): Add comment.
5634 (bp_condition_evaluator): New function.
5635 (bp_location_condition_evaluator): New function.
5636 (print_breakpoint_location): Print information on where the condition
5637 will be evaluated.
5638 (print_one_breakpoint_location): Likewise.
5639 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5640 breakpoint location.
5641 (force_breakpoint_reinsertion): New functions.
5642 (update_global_location_list): Handle target-side breakpoint
5643 conditions.
5644 Reinsert locations that are already inserted if conditions have
5645 changed.
5646 (bp_location_dtor): Free agent expression bytecode.
5647 (disable_breakpoint): Call mark_breakpoint_modified (...).
5648 Call update_global_location_list (...) with parameter 1 for breakpoints.
5649 (disable_command): Call mark_breakpoint_location_modified (...).
5650 Call update_global_location_list (...) with parameter 1 for breakpoints.
5651 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5652 (enable_command): mark_breakpoint_location_modified (...).
5653 (_initialize_breakpoint): Update documentation and add
5654 condition-evaluation breakpoint subcommand.
5655
5656 * breakpoint.h: Include ax.h.
5657 (condition_list): New data structure.
5658 (condition_status): New enum.
5659 (bp_target_info) <cond_list>: New field.
5660 (bp_location) <condition_changed, cond_bytecode>: New fields.
5661 (is_breakpoint): New prototype.
5662
5663 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5664
5665 * remote.c (remote_state) <cond_breakpoints>: New field.
5666 (PACKET_ConditionalBreakpoints): New enum.
5667 (remote_cond_breakpoint_feature): New function.
5668 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5669 (remote_supports_cond_breakpoints): New function.
5670 (_initialize_remote): Add new packet configuration for
5671 target-side conditional breakpoints.
5672
5673 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5674
5675 * NEWS: Mention target-side conditional breakpoint support,
5676 new condition-evaluation breakpoint subcommand and remote
5677 packet extensions.
5678
5679 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5680
5681 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5682 number.
5683
5684 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5685
5686 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5687 (after_prologue): Remove.
5688
5689 2012-02-23 Tom Tromey <tromey@redhat.com>
5690
5691 * jv-valprint.c (java_val_print): Remove dead code.
5692
5693 2012-02-23 Tristan Gingold <gingold@adacore.com>
5694
5695 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5696 known_tasks_element and known_tasks_length fields.
5697 (read_known_tasks_array): Change argument type. Use pointer type
5698 and number of elements from DATA. Adjust.
5699 (read_known_tasks_list): Likewise.
5700 (get_known_tasks_addr): Remove.
5701 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5702 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5703 type and array length. Merge former get_known_tasks_addr code.
5704
5705 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5706
5707 PR backtrace/13716
5708 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5709 it after set_momentary_breakpoint.
5710
5711 2012-02-22 Sterling Augustine <saugustine@google.com>
5712
5713 PR 13689:
5714 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5715
5716 2012-02-22 Gary Benson <gbenson@redhat.com>
5717
5718 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5719 (find_slot_in_mapped_hash): Likewise.
5720
5721 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5722
5723 PR build/13638
5724 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5725 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5726 * configure: Regenerate.
5727
5728 2012-02-21 Tristan Gingold <gingold@adacore.com>
5729 Pedro Alves <palves@redhat.com>
5730
5731 * ia64-tdep.c: Do not include libunwind-ia64.h.
5732 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5733 Include libunwind-ia64.h instead of libunwind.h.
5734 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5735 for libunwind.h existence.
5736 * configure, config.in: Regenerate.
5737
5738 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5739
5740 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5741 instead of value_rtti_target_type.
5742 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5743 instead of value_rtti_target_type.
5744 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5745 value_rtti_target_type.
5746 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5747 (value_rtti_target_type): Rename to ...
5748 (value_rtti_indirect_type): ... here and make it indirect. Update
5749 function comment.
5750 * value.c (readjust_indirect_value_type): New function.
5751 (coerce_ref): Support for enclosing type setting for references
5752 with readjust_indirect_value_type.
5753 * value.h (readjust_value_type): New declaration.
5754 (value_rtti_target_type): Rename to ...
5755 (value_rtti_indirect_type): ... here.
5756
5757 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5758
5759 * MAINTAINERS (Write After Approval): Add myself to the list.
5760
5761 2012-02-20 Doug Evans <dje@google.com>
5762
5763 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5764 Rename objfile_p_char parameter to objfilep.
5765 (build_objfile_section_table): Result is now void. All callers
5766 updated.
5767 * objfiles.h (struct objfile): Tweak comments, whitespace.
5768 (build_objfile_section_table): Update.
5769
5770 * elfread.c (elf_symfile_segments): Fix warning text.
5771
5772 2012-02-20 Tom Tromey <tromey@redhat.com>
5773
5774 PR gdb/13498:
5775 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5776 particular set of file names once.
5777 (dw2_map_symbol_filenames): Likewise.
5778
5779 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5780
5781 Code cleanup.
5782 * main.c (write_files): Remove the declaration.
5783 (external_editor_command): Move the declaration ...
5784 [GDBTK] (external_editor_command): ... here. Fix the comment.
5785
5786 2012-02-20 Tom Tromey <tromey@redhat.com>
5787
5788 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5789 extraneous block.
5790
5791 2012-02-20 Tristan Gingold <gingold@adacore.com>
5792
5793 * darwin-nat.h (enum darwin_msg_state): Add comments.
5794
5795 2012-02-20 Tristan Gingold <gingold@adacore.com>
5796
5797 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5798 value.
5799
5800 2012-20-18 Joel Brobecker <brobecker@adacore.com>
5801
5802 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5803 between function description and implementation.
5804
5805 2012-02-17 Tom Tromey <tromey@redhat.com>
5806
5807 PR python/12070:
5808 * python/py-event.c (event_object_getset): New global.
5809 (event_object_type): Reference it.
5810 * python/py-type.c (field_object_getset): New global.
5811 (field_object_type): Reference it.
5812 * python/python-internal.h (gdb_py_generic_dict): Declare.
5813 * python/py-utils.c (gdb_py_generic_dict): New function.
5814
5815 2012-02-17 Tristan Gingold <gingold@adacore.com>
5816
5817 * solib-darwin.c (darwin_current_sos): Check magic and filetype
5818
5819 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5820
5821 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5822 TYPE_CALLING_CONVENTION annotation.
5823
5824 2012-02-16 Kevin Buettner <kevinb@redhat.com>
5825
5826 * MAINTAINERS: Add rx to target ISA section.
5827 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5828 (ALLDEPFILES): Add rx-tdep.c.
5829
5830 2012-02-16 Tom Tromey <tromey@redhat.com>
5831
5832 * symfile.c (symbol_file_add_main_1): Use inferior's
5833 symfile_flags.
5834 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5835 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5836 inferior.
5837 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5838 inferior.
5839 (follow_exec): Use inferior's symfile_flags.
5840 * inferior.h (struct inferior) <symfile_flags>: New field.
5841
5842 2012-02-16 Mike Frysinger <vapier@gentoo.org>
5843
5844 PR gdb/9734:
5845 * remote-sim.c (gdbsim_create_inferior): Call error() when
5846 sim_create_inferior() fails.
5847
5848 2012-02-16 Josh Matthews <josh@joshmatthews.net>
5849
5850 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5851
5852 2012-02-16 Tom Tromey <tromey@redhat.com>
5853
5854 PR c++/13653:
5855 * thread.c (struct current_thread_cleanup) <was_removable>: New
5856 field.
5857 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5858 (make_cleanup_restore_current_thread): Initialize new field.
5859
5860 2012-02-15 Kevin Buettner <kevinb@redhat.com>
5861
5862 * MAINTAINERS: Add rl78 to target ISA section.
5863 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5864 (ALLDEPFILES): Add rl78-tdep.c.
5865 * NEWS: Mention rl78 as a new target.
5866
5867 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
5868
5869 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
5870 data.
5871 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
5872
5873 2012-02-15 Tom Tromey <tromey@redhat.com>
5874
5875 PR gdb/12659:
5876 * infcmd.c (registers_info): Print just the current register's
5877 name.
5878
5879 2012-02-15 Tom Tromey <tromey@redhat.com>
5880
5881 * python/py-symbol.c (sympy_value): Use _().
5882
5883 2012-02-15 Pedro Alves <palves@redhat.com>
5884
5885 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
5886 output to be like native targets'.
5887 (remote_pid_to_str): Special case the null ptid.
5888
5889 2012-02-14 Stan Shebs <stan@codesourcery.com>
5890
5891 * NEWS: Mention enable count command.
5892 * breakpoint.h (struct breakpoint): New field enable_count.
5893 * breakpoint.c (enable_breakpoint_disp): Add count argument.
5894 (enable_breakpoint): Add arg to call.
5895 (struct disp_data): New struct.
5896 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
5897 (do_map_enable_once_breakpoint): Create a struct and pass it.
5898 (do_map_enable_delete_breakpoint): Ditto.
5899 (do_map_enable_count_breakpoint): New function.
5900 (enable_count_command): New function.
5901 (bpstat_stop_status): Decrement enable_count.
5902 (print_one_breakpoint_location): Report enable count.
5903 (_initialize_breakpoint): Add enable count command.
5904
5905 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5906
5907 * rl78-tdep.c (reggroups.h): Include.
5908 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
5909 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
5910 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
5911 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
5912 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
5913 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
5914 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
5915 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
5916 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
5917 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
5918 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
5919 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
5920 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
5921 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
5922 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
5923 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
5924 beginning of register list.
5925 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
5926 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
5927 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
5928 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
5929 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
5930 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
5931 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
5932 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
5933 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
5934 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
5935 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
5936 the pseudo registers. Rearrange other pseudo registers too so
5937 that the bank registers appear at the end.
5938 (rl78_register_type): Account for the fact that the byte sized
5939 bank registers are now pseudo-registers.
5940 (rl78_register_name): Rearrange the register name array. Make
5941 initial set of raw banked registers inaccessible.
5942 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
5943 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
5944 case for copying bytes back and forth between raw and pseudo
5945 versions of the banked registers. Update other cases to reflect
5946 the changed names.
5947 (rl78_return_value): Update to account for changed names of
5948 raw registers.
5949 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
5950 rl78_register_sim_regno().
5951
5952 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5953
5954 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
5955 the name parameter being passed to find_pc_partial_function().
5956
5957 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5958
5959 * MAINTAINERS: Step down from being ia64 target maintainer.
5960
5961 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5962
5963 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
5964 compilation warning.
5965
5966 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5967
5968 Fix crash on loaded shlibs without loaded exec_bfd.
5969 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
5970 (set_section_command): Replace exec_bfd by p->bfd.
5971
5972 2012-02-10 Tom Tromey <tromey@redhat.com>
5973
5974 * linespec.c (decode_line_internal): Skip symtabs_from_filename
5975 when we have a C++ qualified name.
5976
5977 2012-02-10 Pedro Alves <palves@redhat.com>
5978
5979 * inferior.c (inferior_pid_to_str): New.
5980 (print_inferior, inferior_command): Use it.
5981
5982 2012-02-10 Pedro Alves <palves@redhat.com>
5983
5984 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
5985 the test CFLAGS.
5986 * configure: Regenerate.
5987
5988 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5989
5990 * linespec.c (decode_line_internal): Fix comment correctness.
5991
5992 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
5993
5994 PR gdb/12953
5995 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
5996 * amd64bsd-nat.c: Add support for debug registers (adapted from
5997 i386bsd-nat.c).
5998 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
5999 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
6000 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
6001 (amd64bsd_dr_get_control): New functions.
6002 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
6003 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
6004 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
6005 watchpoints initialization.
6006 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
6007
6008 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6009
6010 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
6011 flds_bnds.fields.
6012 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
6013
6014 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6015
6016 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
6017
6018 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6019
6020 * language.h (symbol_name_cmp_ftype): Renames
6021 symbol_name_match_p_ftype.
6022 (struct language_defn)[la_get_symbol_name_cmp]: Renames
6023 la_get_symbol_name_match_p.
6024 * ada-lang.c (ada_get_symbol_name_cmp): Renames
6025 ada_get_symbol_name_match_p. Update comment.
6026 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
6027 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
6028 Renames symbol_name_match_p. Update field type.
6029 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
6030 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6031 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
6032 "la_get_symbol_name_cmp" in comments.
6033 * language.c: Likewise.
6034
6035 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6036
6037 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
6038 %eflags offset.
6039 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
6040 (amd64_sol2_gregset32_reg_offs): Likewise.
6041
6042 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6043
6044 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
6045 of the returned BFD is allocated by GDB.
6046
6047 2012-02-07 Tom Tromey <tromey@redhat.com>
6048
6049 PR python/12027:
6050 * python/python-internal.h (frame_object_type): Declare.
6051 * python/py-symbol.c (sympy_needs_frame): New function.
6052 (sympy_value): New function.
6053 (symbol_object_getset): Add "needs_frame".
6054 (symbol_object_methods): Add "value".
6055 * python/py-frame.c (frame_object_type): No longer static.
6056
6057 2012-02-07 Tom Tromey <tromey@redhat.com>
6058
6059 PR python/13599:
6060 * python/py-symbol.c (sympy_line): New function.
6061 (symbol_object_getset): Add "line".
6062
6063 2012-02-07 Tom Tromey <tromey@redhat.com>
6064
6065 * charset.c (find_charset_names): Check 'in' against NULL.
6066
6067 2012-02-06 Doug Evans <dje@google.com>
6068
6069 * gdbtypes.h (struct main_type): Change type of name,tag_name,
6070 and fields.name members from char * to const char *. All uses updated.
6071 (struct cplus_struct_type): Change type of fn_fieldlists.name member
6072 from char * to const char *. All uses updated.
6073 (type_name_no_tag): Update.
6074 (lookup_unsigned_typename, lookup_signed_typename): Update.
6075 * gdbtypes.c (type_name_no_tag): Change result type
6076 from char * to const char *. All callers updated.
6077 (lookup_unsigned_typename, lookup_signed_typename): Change type of
6078 name parameter from char * to const char *.
6079 * symtab.h (struct cplus_specific): Change type of demangled_name
6080 member from char * to const char *. All uses updated.
6081 (struct general_symbol_info): Change type of name and
6082 mangled_lang.demangled_name members from char * to const char *.
6083 All uses updated.
6084 (symbol_get_demangled_name, symbol_natural_name): Update.
6085 (symbol_demangled_name, symbol_search_name): Update.
6086 * symtab.c (symbol_get_demangled_name): Change result type
6087 from char * to const char *. All callers updated.
6088 (symbol_natural_name, symbol_demangled_name): Ditto.
6089 (symbol_search_name): Ditto.
6090 (completion_list_add_name): Change type of symname,sym_text,
6091 text,word parameters from char * to const char *.
6092 (completion_list_objc_symbol): Change type of sym_text,
6093 text,word parameters from char * to const char *.
6094 * ada-lang.c (find_struct_field): Change type of name parameter
6095 from char * to const char *.
6096 (encoded_ordered_before): Similarly for N0,N1 parameters.
6097 (old_renaming_is_invisible): Similarly for function_name parameter.
6098 (ada_type_name): Change result type from char * to const char *.
6099 All callers updated.
6100 * ada-lang.h (ada_type_name): Update.
6101 * buildsym.c (hashname): Change type of name parameter
6102 from char * to const char *.
6103 * buildsym.h (hashname): Update.
6104 * dbxread.c (end_psymtab): Change type of include_list parameter
6105 from char ** to const char **.
6106 * dwarf2read.c (determine_prefix): Change result type
6107 from char * to const char *. All callers updated.
6108 * f-lang.c (find_common_for_function): Change type of name, funcname
6109 parameters from char * to const char *.
6110 * f-lang.c (find_common_for_function): Update.
6111 * f-valprint.c (list_all_visible_commons): Change type of funcname
6112 parameters from char * to const char *.
6113 * gdbarch.sh (static_transform_name): Change type of name parameter
6114 and result from char * to const char *.
6115 * gdbarch.c: Regenerate.
6116 * gdbarch.h: Regenerate.
6117 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
6118 of name parameter from char * to const char *.
6119 * jv-lang.c (java_primitive_type_from_name): Ditto.
6120 (java_demangled_signature_length): Similarly for signature parameter.
6121 (java_demangled_signature_copy): Ditto.
6122 (java_demangle_type_signature): Ditto.
6123 * jv-lang.h (java_primitive_type_from_name): Update.
6124 (java_demangle_type_signature): Update.
6125 * objc-lang.c (specialcmp): Change type of a,b parameters
6126 from char * to const char *.
6127 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
6128 from char * to const char *. All callers updated.
6129 * p-lang.h (is_pascal_string_type): Update.
6130 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
6131 of name parameter from char * to const char *.
6132 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
6133 * utils.c (fprintf_symbol_filtered): Ditto.
6134 * defs.h (fprintf_symbol_filtered): Update.
6135 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
6136 * stabsread.h (end_psymtab): Update.
6137 * stack.c (find_frame_funname): Change type of funname parameter
6138 from char ** to const char **.
6139 * stack.h (find_frame_funname): Update.
6140 * typeprint.c (type_print): Change type of varstring parameter
6141 from char * to const char *.
6142 * value.h (type_print): Update.
6143 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
6144 from char * to const char *. All callers updated.
6145 (xcoff_end_psymtab): Change type of include_list parameter
6146 from char ** to const char **. All callers updated.
6147 (swap_sym): Similarly for name parameter. All callers updated.
6148 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
6149 Use xstrdup.
6150 (process_coff_symbol): Use xstrdup.
6151 * stabsread.c (stabs_method_name_from_physname): Renamed from
6152 update_method_name_from_physname. Change result type from void
6153 to char *. All callers updated.
6154 (read_member_functions): In has_destructor case, store name in objfile
6155 obstack instead of malloc space. In !has_stub case, fix mem leak.
6156
6157 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
6158
6159 * configure: Rebuild.
6160 * configure.ac: Put -L../bfd and -L../libiberty at the front of
6161 LDFLAGS.
6162
6163 2012-02-03 Kevin Buettner <kevinb@redhat.com>
6164
6165 * configure.tgt (rl78-*-elf): New target.
6166 * rl78-tdep.c: New file.
6167
6168 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6169
6170 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6171 and continue the loop. Add QUIT statement.
6172
6173 2012-02-03 Tom Tromey <tromey@redhat.com>
6174
6175 PR gdb/13596:
6176 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6177 bfd_lookup_symbol_from_symtab.
6178 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6179 gdb_bfd_lookup_symbol_from_symtab.
6180
6181 2012-02-03 Joel Brobecker <brobecker@adacore.com>
6182
6183 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6184 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6185 symbol. Add assertion that sym2 is never NULL.
6186
6187 2012-02-02 Doug Evans <dje@google.com>
6188
6189 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6190 "name" parameter to const char ** from char **. All callers updated.
6191 (find_pc_partial_function): Ditto.
6192 (cache_pc_function_name): Change type to const char * from char *.
6193 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6194 (find_pc_partial_function): Update.
6195 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6196 type of "name" parameter to const char * from char *.
6197 All uses updated.
6198 * arch-utils.c (generic_in_solib_return_trampoline): Change
6199 type of "name" parameter to const char * from char *.
6200 * arch-utils.h (generic_in_solib_return_trampoline): Update.
6201 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6202 type of "name" parameter to const char * from char *.
6203 * gdbarch.sh (in_solib_return_trampoline): Ditto.
6204 * gdbarch.c: Regenerate.
6205 * gdbarch.h: Regenerate.
6206 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6207 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6208 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6209 type of "name" parameter to const char * from char *.
6210 * skip.c (skip_function_pc): Ditto.
6211 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6212 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6213 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6214 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6215 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6216 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6217 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6218 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6219 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6220
6221 2012-02-02 Pedro Alves <palves@redhat.com>
6222
6223 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6224 the current inferior has no execution. Make sure the current
6225 remote process matches gdb's current inferior.
6226
6227 2012-02-02 Tom Tromey <tromey@redhat.com>
6228
6229 PR gdb/13405:
6230 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6231 read-only memory.
6232
6233 2012-02-02 Tom Tromey <tromey@redhat.com>
6234
6235 PR gdb/9307:
6236 * symtab.c (lookup_language_this): Set block_found.
6237
6238 2012-02-01 Tom Tromey <tromey@redhat.com>
6239
6240 PR gdb/13431:
6241 * jit.c (struct jit_inferior_data): Rewrite.
6242 (struct jit_objfile_data): New.
6243 (get_jit_objfile_data): New function.
6244 (add_objfile_entry): Update.
6245 (jit_read_descriptor): Return int. Replace descriptor_addr
6246 argument with inf_data. Update. Don't call error.
6247 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
6248 descriptor here.
6249 (jit_inferior_init): Don't look up descriptor. Don't call error.
6250 (jit_reset_inferior_data_and_breakpoints)
6251 (jit_inferior_created_observer): Remove.
6252 (jit_inferior_exit_hook): Update.
6253 (jit_executable_changed_observer): Remove.
6254 (jit_event_handler): Update.
6255 (free_objfile_data): Reset inferior data if needed.
6256 (_initialize_jit): Update.
6257
6258 2012-02-01 Tom Tromey <tromey@redhat.com>
6259
6260 * jit.c (bfd_open_from_target_memory): Move higher in file.
6261
6262 2012-02-01 Tristan Gingold <gingold@adacore.com>
6263
6264 * libunwind-frame.c (libunwind_load): Display message if dlopen
6265 failed.
6266
6267 2012-02-01 Gary Benson <gbenson@redhat.com>
6268
6269 * symtab.h (symbol_found_callback_ftype): New typedef.
6270 (iterate_over_symbols): Use the above.
6271 * symtab.c (iterate_over_symbols): Likewise.
6272 * language.h (language_defn->la_iterate_over_symbols): Likewise.
6273 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6274 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6275 (iterate_name_matcher): Document return values.
6276 (collect_one_symbol): Likewise.
6277 (collect_function_symbols): Likewise.
6278 (collect_symbols): Likewise.
6279
6280 2012-02-01 Tom Tromey <tromey@redhat.com>
6281
6282 * ada-lang.c (resolve_subexp): Update.
6283 (ada_lookup_symbol_list): Add 'full_search' argument.
6284 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6285 ada_lookup_symbol_list.
6286 (ada_lookup_encoded_symbol): Update.
6287 (get_var_value): Update.
6288 * ada-exp.y (block_lookup): Update.
6289 (write_var_or_type): Update.
6290 (write_name_assoc): Update.
6291 * ada-lang.h (ada_lookup_symbol_list): Update.
6292
6293 2012-01-31 Tom Tromey <tromey@redhat.com>
6294
6295 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6296 comment.
6297
6298 2012-01-31 Doug Evans <dje@google.com>
6299
6300 * symtab.h: Remove outdated comment.
6301 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6302
6303 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6304
6305 Fix build error in Darwin port.
6306 * i386-darwin-nat.c: Include i386-nat.h.
6307
6308 2012-01-30 Tom Tromey <tromey@redhat.com>
6309
6310 PR breakpoints/13568:
6311 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6312 argument. Check for recursive includes.
6313 (dwarf_decode_macros): Create an include hash.
6314
6315 2012-01-30 Michael Eager <eager@eagercon.com>
6316
6317 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6318 * ppc-linux-tdep.c: Include glibc-tdep.h.
6319 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6320 (powerpc_linux_in_plt_stub): New function.
6321 (powerpc_linux_in_dynsym_resolve_code): New function.
6322 (ppc_skip_trampoline_code): New function.
6323 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6324 Use glibc_skip_solib_resolver.
6325
6326 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6327
6328 Code cleanup: Make 1440 bytes of data segment read-only.
6329 * arch-utils.c (endian_enum): Make it const char *const [].
6330 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6331 Likewise.
6332 * breakpoint.c (always_inserted_enums): Likewise.
6333 * cli/cli-cmds.c (script_ext_enums): Likewise.
6334 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6335 enumlist parameter const char *const *.
6336 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6337 const char *const *.
6338 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6339 parameter const char *const *.
6340 * cris-tdep.c (cris_modes): Make it const char *const [].
6341 * filesystem.c (target_file_system_kinds): Likewise.
6342 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6343 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6344 (can_use_displaced_stepping_enum, scheduler_enums)
6345 (exec_direction_names): Likewise.
6346 * language.c (_initialize_language): Make the type_or_range_names and
6347 case_sensitive_names variables const char *const [].
6348 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6349 * python/python.c (python_excp_enums): Likewise.
6350 * remote.c (interrupt_sequence_modes): Likewise.
6351 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6352 * serial.c (logbase_enums): Likewise.
6353 * sh-tdep.c (sh_cc_enum): Likewise.
6354 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6355 Likewise.
6356 * symtab.c (multiple_symbols_modes): Likewise.
6357 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6358 Likewise.
6359 * utils.c (internal_problem_modes): Likewise.
6360
6361 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6362
6363 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6364 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6365 result.
6366
6367 2012-01-27 Doug Evans <dje@google.com>
6368
6369 * configure.ac (with_python): Fix absolute path handling for win32.
6370 * configure: Regenerate.
6371
6372 2012-01-26 Doug Evans <dje@google.com>
6373
6374 * symtab.c: Whitespace cleanup, no code changes.
6375
6376 * symtab.c (lookup_symbol_in_language): Improve comment.
6377 (lookup_symbol_aux): Fix comment.
6378
6379 * psymtab.c (add_psymbol_to_list): Result is now "void".
6380 * psympriv.h (add_psymbol_to_list): Update.
6381
6382 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6383
6384 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6385
6386 Do not open script filenames twice.
6387 * cli/cli-cmds.c (source_script_from_stream): Pass to
6388 source_python_script also STREAM.
6389 * python/py-auto-load.c (source_section_scripts): Pass to
6390 source_python_script_for_objfile also STREAM.
6391 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6392 also INPUT.
6393 * python/python-internal.h (source_python_script_for_objfile): New
6394 parameter file, rename parameter file to filename.
6395 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6396 instead if !_WIN32. Update the function comment.
6397 (source_python_script, source_python_script_for_objfile)
6398 (source_python_script): New parameter file, rename parameter file to
6399 filename. Pass FILENAME to python_run_simple_file.
6400 * python/python.h (source_python_script): New parameter file, rename
6401 parameter file to filename.
6402
6403 2012-01-26 Pedro Alves <palves@redhat.com>
6404
6405 * corelow.c (core_has_fake_pid): Delete.
6406 (core_close): Delete references to `core_has_fake_pid'.
6407 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6408 (core_open): Delete references to `core_has_fake_pid'.
6409 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6410 the removed global.
6411
6412 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6413
6414 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6415 Remove language parameter from name_matcher. Adjust the comment.
6416 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6417 Remove language parameter.
6418 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6419 * linespec.c (iterate_name_matcher): Likewise.
6420 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6421 name_matcher. Adjust call accordingly.
6422 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6423 (maintenance_check_symtabs): Adjust type of parameter "fun".
6424 * psymtab.h (maintenance_check_symtabs): Likewise.
6425
6426 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6427
6428 * language.h (symbol_name_match_p_ftype): New typedef.
6429 (struct language_defn): Replace field la_symbol_name_compare
6430 by la_get_symbol_name_match_p.
6431 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6432 (ada_language_defn): Use it.
6433 * linespec.c (struct symbol_matcher_data): New type.
6434 (iterate_name_matcher): Rewrite.
6435 (iterate_over_all_matching_symtabs): Pass a pointer to
6436 a symbol_matcher_data struct to expand_symtabs_matching
6437 instead of just the lookup name.
6438 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6439 opencl-lang.c, p-lang.c, language.c: Delete field
6440 la_symbol_name_compare, and replace by NULL for new field
6441 la_get_symbol_name_match_p.
6442 * symfile.h (struct quick_symbol_functions): Update comment.
6443
6444 2012-01-25 Tom Tromey <tromey@redhat.com>
6445
6446 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6447 dereferencing.
6448
6449 2012-01-24 Tom Tromey <tromey@redhat.com>
6450
6451 PR symtab/12406:
6452 * solib.c (update_solib_list): Update the program space's
6453 added_solibs and deleted_solibs fields.
6454 * progspace.h (struct program_space) <added_solibs,
6455 deleted_solibs>: New fields.
6456 (clear_program_space_solib_cache): Declare.
6457 * progspace.c (release_program_space): Call
6458 clear_program_space_solib_cache.
6459 (clear_program_space_solib_cache): New function.
6460 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6461 bpstat_stop_status. Use handle_solib_event.
6462 * breakpoint.c: Include gdb_regex.h.
6463 (print_solib_event): New function.
6464 (bpstat_print): Use print_solib_event.
6465 (bpstat_stop_status): Add special case for bp_shlib_event.
6466 (handle_solib_event): New function.
6467 (bpstat_what): Use handle_solib_event.
6468 (struct solib_catchpoint): New.
6469 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6470 (breakpoint_hit_catch_solib, check_status_catch_solib)
6471 (print_it_catch_solib, print_one_catch_solib)
6472 (print_mention_catch_solib, print_recreate_catch_solib): New
6473 functions.
6474 (catch_solib_breakpoint_ops): New global.
6475 (catch_load_or_unload, catch_load_command_1)
6476 (catch_unload_command_1): New functions.
6477 (internal_bkpt_check_status): Add special case for
6478 bp_shlib_event.
6479 (internal_bkpt_print_it): Use print_solib_event.
6480 (initialize_breakpoint_ops): Initialize
6481 catch_solib_breakpoint_ops.
6482 (_initialize_breakpoint): Register "catch load" and "catch
6483 unload".
6484 * breakpoint.h (handle_solib_event): Declare.
6485 * NEWS: Add entry for "catch load" and "catch unload".
6486
6487 2012-01-24 Tom Tromey <tromey@redhat.com>
6488
6489 * ada-lang.c: Include gdb_vecs.h.
6490 * charset.c: Include gdb_vecs.h.
6491 * tracepoint.h: Include gdb_vecs.h.
6492 * gdb_vecs.h: New file.
6493
6494 2012-01-24 Pedro Alves <pedro@codesourcery.com>
6495
6496 * breakpoint.c (breakpoint_hit_catch_fork)
6497 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6498 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6499 * infrun.c (inferior_has_forked, inferior_has_vforked)
6500 (inferior_has_execd, inferior_has_called_syscall): Delete.
6501 (handle_syscall_event): Get syscall_number from the execution
6502 control state's wait status.
6503 (wait_for_inferior): Don't clear syscall_number.
6504
6505 2012-01-24 Pedro Alves <palves@redhat.com>
6506
6507 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6508 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6509 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6510 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6511 `ws' parameter.
6512 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6513 false for events other than TARGET_SIGNAL_TRAP.
6514 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6515 Add `ws' parameter.
6516 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6517 events other than TARGET_SIGNAL_TRAP.
6518 (tracepoint_breakpoint_hit): Add `ws' parameter.
6519 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6520 parameter.
6521 (bpstat_stop_status): Same.
6522 (pc_at_non_inline_function): Same.
6523 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6524 to pass the current event's waitstatus to bpstat_stop_status
6525 and pc_at_non_inline_function.
6526
6527 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6528
6529 Code cleanup.
6530 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6531 Update the function comment for it.
6532 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6533 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6534 for STREAM.
6535
6536 2012-01-24 Pedro Alves <palves@redhat.com>
6537
6538 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6539 outside `bs->stop' block.
6540 (bpstat_what): Rework bp_shlib_event handling.
6541 (internal_bkpt_check_status): If the breakpoint is a
6542 bp_shlib_event, then set bs->stop and bs->print if
6543 stop_on_solib_events is set.
6544
6545 2012-01-24 Gary Benson <gbenson@redhat.com>
6546
6547 Delete #if 0'd out code.
6548 * stack.c (print_frame_label_vars): Remove.
6549 (catch_info): Likewise.
6550 (_initialize_stack): Remove "info catch" command.
6551 * NEWS: Mention the above.
6552
6553 2012-01-24 Pedro Alves <palves@redhat.com>
6554
6555 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6556 it.
6557 (remote_notice_new_inferior): If the remote end doesn't support
6558 the multiprocess extensions, then the PID is fake.
6559 (add_current_inferior_and_thread): New.
6560 (remote_start_remote): Use it.
6561 (extended_remote_attach_1): Adjust.
6562 (extended_remote_create_inferior_1): Use
6563 add_current_inferior_and_thread.
6564
6565 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6566
6567 Fix watchpoints to be specific for each inferior.
6568 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6569 current_program_space.
6570 * i386-nat.c (i386_inferior_data_cleanup): New.
6571 (i386_inferior_data_get): Replace variable inf_data_local by an
6572 inferior_data call.
6573 (i386_use_watchpoints): Initialize i386_inferior_data.
6574 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6575 specific iterate_over_lwps.
6576
6577 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6578
6579 Fix watchpoints across inferior fork.
6580 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6581 comment for linux_nat_iterate_watchpoint_lwps.
6582 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6583 linux_nat_iterate_watchpoint_lwps.
6584 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6585 * i386-linux-nat.c (update_debug_registers_callback): Update the
6586 comment for linux_nat_iterate_watchpoint_lwps.
6587 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6588 linux_nat_iterate_watchpoint_lwps.
6589 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6590 * i386-nat.c: Include inferior.h.
6591 (dr_mirror): Remove.
6592 (i386_inferior_data, struct i386_inferior_data)
6593 (i386_inferior_data_get): New.
6594 (i386_debug_reg_state): Use i386_inferior_data_get.
6595 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6596 (i386_insert_watchpoint, i386_remove_watchpoint)
6597 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6598 (i386_remove_hw_breakpoint): New variable state, use
6599 i386_debug_reg_state instead of DR_MIRROR.
6600 * linux-nat.c (delete_lwp): New declaration.
6601 (num_lwps): Move here from downwards.
6602 (delete_lwp_cleanup): New.
6603 (linux_child_follow_fork): Create new child_lp, call
6604 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6605 PTRACE_DETACH.
6606 (num_lwps): Move upwards.
6607 (linux_nat_iterate_watchpoint_lwps): New.
6608 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6609 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6610
6611 2012-01-24 Joel Brobecker <brobecker@adacore.com>
6612
6613 GDB 7.4 released.
6614
6615 2012-01-23 Pedro Alves <palves@redhat.com>
6616
6617 * top.c (caution): Rename to ...
6618 (confirm): ... this.
6619 (show_caution): Rename to ...
6620 (show_confirm): ... this.
6621 (quit_cover): Adjust.
6622 (init_main): Adjust.
6623 * top.h (caution): Rename to ...
6624 (confirm): ... this.
6625 * utils.c (internal_vproblem, defaulted_query): Adjust.
6626
6627 2012-01-23 Pedro Alves <palves@redhat.com>
6628
6629 * top.c (caution): Update comment.
6630 (execute_command): Don't consider the current value of `caution'.
6631
6632 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6633
6634 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6635
6636 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6637
6638 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6639 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6640 * target.c (target_fileio_pwrite): Remove buffer address from
6641 debug output.
6642 (target_fileio_pread): Likewise.
6643
6644 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6645
6646 * NEWS: Document remote "info proc" and "generate-core-file".
6647
6648 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6649
6650 * gdbarch.sh (find_memory_regions): New callback.
6651 * gdbarch.c, gdbarch.h: Regenerate.
6652
6653 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6654 callback before falling back to target method.
6655
6656 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6657 (linux_target_install_ops): No longer install it.
6658
6659 * linux-tdep.c (linux_find_memory_regions): New function.
6660 (linux_init_abi): Install it.
6661
6662 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6663
6664 * gdbarch.sh (make_corefile_notes): New architecture callback.
6665 * gdbarch.c: Regenerate.
6666 * gdbarch.h: Likewise.
6667
6668 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6669 before target_make_corefile_notes. If NULL is returned, the
6670 target does not support core file generation.
6671
6672 * linux-nat.c: Include "linux-tdep.h".
6673 (find_signalled_thread, find_stop_signal): Remove.
6674 (linux_nat_do_thread_registers): Likewise.
6675 (struct linux_nat_corefile_thread_data): Likewise.
6676 (linux_nat_corefile_thread_callback): Likewise.
6677 (iterate_over_spus): Likewise.
6678 (struct linux_spu_corefile_data): Likewise.
6679 (linux_spu_corefile_callback): Likewise.
6680 (linux_spu_make_corefile_notes): Likewise.
6681 (linux_nat_collect_thread_registers): New function.
6682 (linux_nat_make_corefile_notes): Replace contents by call to
6683 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6684 as native-only callback.
6685
6686 * linux-tdep.h: Include "bfd.h".
6687 (struct regcache): Add forward declaration.
6688 (linux_collect_thread_registers_ftype): New typedef.
6689 (linux_make_corefile_notes): Add prototype.
6690 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6691 "regset.h", and "elf-bfd.h".
6692 (find_signalled_thread, find_stop_signal): New functions.
6693 (linux_spu_make_corefile_notes): Likewise.
6694 (linux_collect_thread_registers): Likewise.
6695 (struct linux_corefile_thread_data): New data structure.
6696 (linux_corefile_thread_callback): New funcion.
6697 (linux_make_corefile_notes): Likewise.
6698 (linux_make_corefile_notes_1): Likewise.
6699 (linux_init_abi): Install it.
6700
6701 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6702
6703 * gdbarch.sh (info_proc): New callback.
6704 * gdbarch.c, gdbarch.h: Regenerate.
6705
6706 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6707 before falling back to the target info_proc callback.
6708
6709 * linux-nat.c: Do not include "cli/cli-utils.h".
6710 (linux_nat_info_proc): Remove.
6711 (linux_target_install_ops): No longer install it.
6712
6713 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6714 (read_mapping): New function.
6715 (linux_info_proc): Likewise.
6716 (linux_init_abi): Install it.
6717
6718 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6719
6720 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6721 * infcmd.c: (info_proc_cmd_1): New function.
6722 (info_proc_cmd): New function, moved here from equivalent routine
6723 orignally in linux-nat.c.
6724 (info_proc_cmd_mappings): Likewise.
6725 (info_proc_cmd_stat): Likewise.
6726 (info_proc_cmd_status): Likewise.
6727 (info_proc_cmd_cwd): Likewise.
6728 (info_proc_cmd_cmdline): Likewise.
6729 (info_proc_cmd_exe): Likewise.
6730 (info_proc_cmd_all): Likewise.
6731 (_initialize_infcmd): Install "info proc" command and subcommands.
6732
6733 * target.h (struct target_ops): Add to_info_proc.
6734 (target_info_proc): Add prototype.
6735 * target.c (target_info_proc): New function.
6736
6737 * procfs.c (procfs_info_proc): Add prototype.
6738 (info_proc_cmd): Rename into ...
6739 (procfs_info_proc): ... this. Update argument types as appropriate
6740 for a to_info_proc implementation. Handle "what" argument.
6741 (procfs_target): Install procfs_info_proc.
6742 (_initialize_procfs): No longer install "info proc" command.
6743
6744 * linux-nat.c: (enum info_proc_what): Remove.
6745 (linux_nat_info_proc_cmd_1): Rename into ...
6746 (linux_nat_info_proc): ... this. Update argument types as appropriate
6747 for a to_info_proc implementation.
6748 (linux_nat_info_proc_cmd): Remove.
6749 (linux_nat_info_proc_cmd_mappings): Likewise.
6750 (linux_nat_info_proc_cmd_stat): Likewise.
6751 (linux_nat_info_proc_cmd_status): Likewise.
6752 (linux_nat_info_proc_cmd_cwd): Likewise.
6753 (linux_nat_info_proc_cmd_cmdline): Likewise.
6754 (linux_nat_info_proc_cmd_exe): Likewise.
6755 (linux_nat_info_proc_cmd_all): Likewise.
6756 (linux_target_install_ops): Install linux_nat_info_proc.
6757 (_initialize_linux_nat): No longer install "info proc" command
6758 and subcommands.
6759
6760 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6761
6762 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6763 * config.in, configure: Regenerate.
6764
6765 * target.h (struct target_ops): Add to_fileio_readlink.
6766 (target_fileio_readlink): Add prototype.
6767 * target.c (target_fileio_readlink): New function.
6768
6769 * inf-child.c: Conditionally include <sys/param.h>.
6770 (inf_child_fileio_readlink): New function.
6771 (inf_child_target): Install it.
6772
6773 * remote.c (PACKET_vFile_readlink): New enum value.
6774 (remote_hostio_readlink): New function.
6775 (init_remote_ops): Install it.
6776 (_initialize_remote): Handle vFile:readlink packet type.
6777
6778 2012-01-20 Pedro Alves <palves@redhat.com>
6779 Ulrich Weigand <ulrich.weigand@linaro.org>
6780
6781 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6782 * config.in, configure: Regenerate.
6783
6784 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6785 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6786 (target_fileio_open): Add prototype.
6787 (target_fileio_pwrite): Likewise.
6788 (target_fileio_pread): Likewise.
6789 (target_fileio_close): Likewise.
6790 (target_fileio_unlink): Likewise.
6791 (target_fileio_read_alloc): Likewise.
6792 (target_fileio_read_stralloc): Likewise.
6793
6794 * target.c: Include "gdb/fileio.h".
6795 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6796 (default_fileio_target): New function.
6797 (target_fileio_open): Likewise.
6798 (target_fileio_pwrite): Likewise.
6799 (target_fileio_pread): Likewise.
6800 (target_fileio_close): Likewise.
6801 (target_fileio_unlink): Likewise.
6802 (target_fileio_close_cleanup): Likewise.
6803 (target_fileio_read_alloc_1): Likewise.
6804 (target_fileio_read_alloc): Likewise.
6805 (target_fileio_read_stralloc): Likewise.
6806
6807 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6808 <fcntl.h>, and <unistd.h>.
6809 (inf_child_fileio_open_flags_to_host): New function.
6810 (inf_child_errno_to_fileio_error): Likewise.
6811 (inf_child_fileio_open): Likewise.
6812 (inf_child_fileio_pwrite): Likewise.
6813 (inf_child_fileio_pread): Likewise.
6814 (inf_child_fileio_close): Likewise.
6815 (inf_child_fileio_unlink): Likewise.
6816 (inf_child_target): Install to_fileio routines.
6817
6818 * remote.c (init_remote_ops): Install to_fileio routines.
6819
6820 2012-01-20 Pedro Alves <palves@redhat.com>
6821 Ulrich Weigand <ulrich.weigand@linaro.org>
6822
6823 * remote.c (remote_multi_process_p): Only check for multi-process
6824 protocol feature, do not check for extended protocol.
6825 (remote_supports_multi_process): Check for extended protocol here.
6826 (set_general_process): Likewise.
6827 (extended_remote_kill): Likewise.
6828 (remote_pid_to_str): Likewise.
6829 (remote_query_supported): Always query multiprocess mode.
6830
6831 2012-01-20 Pedro Alves <palves@redhat.com>
6832 Ulrich Weigand <ulrich.weigand@linaro.org>
6833
6834 * inferior.h (struct inferior): Add fake_pid_p.
6835 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6836 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6837 magic_null_ptid since the remote side doesn't provide a real PID.
6838
6839 2012-01-19 Tom Tromey <tromey@redhat.com>
6840
6841 * NEWS: Combine the two Python sections.
6842
6843 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6844
6845 * target.h (target_close): Update comment on the target's unpush state.
6846
6847 2012-01-19 Pedro Alves <palves@redhat.com>
6848
6849 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6850 linux_nat_async directly instead of going through the target
6851 vector.
6852 * target.c (unpush_target): Close target after unpushing it, not
6853 before.
6854
6855 2012-01-19 Gary Benson <gbenson@redhat.com>
6856
6857 * mdebugread.c (sort_blocks): Replace integer constants with ones
6858 derived from FIRST_LOCAL_BLOCK.
6859
6860 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
6861 Jan Kratochvil <jan.kratochvil@redhat.com>
6862
6863 PR gdb/9538
6864 * symfile.c (find_separate_debug_file): New function.
6865 (terminate_after_last_dir_separator): Likewise.
6866 (find_separate_debug_file_by_debuglink): Also try realpath.
6867 * configure.ac (AC_CHECK_FUNCS): Add lstat.
6868 * configure: Regenerate.
6869 * config.in: Regenerate.
6870
6871 2012-01-18 Doug Evans <dje@google.com>
6872
6873 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
6874 (main.o): Remove rule.
6875 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
6876 (--with-sysroot): Rewrite.
6877 * configure: Regenerate.
6878 * config.in: Regenerate.
6879
6880 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
6881
6882 * parse.c (initialize_expout): New function.
6883 (reallocate_expout): Likewise.
6884 (parse_exp_in_context): Use `initialize_expout' and
6885 `reallocate_expout' when appropriate.
6886
6887 2012-01-18 Pedro Alves <palves@redhat.com>
6888
6889 * record.c (struct record_breakpoint, record_breakpoint_p)
6890 (record_breakpoints): New.
6891 (record_insert_breakpoint, record_remove_breakpoint): Manage
6892 record breakpoints list. Only remove breakpoints from the
6893 inferior if they had been inserted there in the first place.
6894
6895 2012-01-17 Doug Evans <dje@google.com>
6896
6897 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
6898 if we know we don't have a file name to look for.
6899
6900 2012-01-17 Pedro Alves <palves@redhat.com>
6901
6902 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
6903 the frame's stop reason is UNWIND_UNAVAILABLE.
6904
6905 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6906
6907 Fix compilation error.
6908 * m2-exp.y (yyerror): Use ANSI C prototype.
6909
6910 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6911
6912 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
6913 (growbuf_by_size): Likewise.
6914 (yyerror): Likewise.
6915 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
6916 (modblock): Remove variable (was #if 0'ed).
6917 (parse_number): Convert prototype from K&R to ANSI C.
6918 (yyerror): Likewise.
6919 * objc-exp.y (parse_number): Likewise.
6920 (yyerror): Likewise.
6921 (yylex): Remove #if 0'ed code.
6922 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
6923 (yyerror): Likewise.
6924
6925 2012-01-16 Tom Tromey <tromey@redhat.com>
6926
6927 * NEWS: Add item.
6928 * symtab.h (compare_filenames_for_search): Declare.
6929 * symtab.c (compare_filenames_for_search): New function.
6930 (iterate_over_some_symtabs): Use it.
6931 * symfile.h (struct quick_symbol_functions)
6932 <map_symtabs_matching_filename>: Change spec.
6933 * psymtab.c (partial_map_symtabs_matching_filename): Use
6934 compare_filenames_for_search. Update for new spec.
6935 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
6936 compare_filenames_for_search. Update for new spec.
6937 * breakpoint.c (clear_command): Use compare_filenames_for_search.
6938
6939 2012-01-16 Tom Tromey <tromey@redhat.com>
6940
6941 PR python/13281:
6942 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
6943 (struct main_type) <flag_flag_enum>: New field.
6944 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
6945 * NEWS: Add entries.
6946 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
6947 enums.
6948 * python/lib/gdb/printing.py (_EnumInstance): New class.
6949 (FlagEnumerationPrinter): Likewise.
6950
6951 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6952
6953 * breakpoint.c (create_sals_from_address_default): New function.
6954 (create_breakpoints_sal_default): Likewise.
6955 (decode_linespec_default): Likewise.
6956 (is_marker_spec): Removed.
6957 (strace_marker_p): New function.
6958 (init_breakpoint_sal): Using `strace_marker_p' instead of
6959 `is_marker_spec'.
6960 (create_breakpoint): Call method `create_sals_from_address' from
6961 breakpoint_ops, replacing code that created SALs conditionally
6962 on the type of the breakpoint. Call method `create_breakpoints_sal',
6963 replacing code that created breakpoints conditionally on the type
6964 wanted.
6965 (base_breakpoint_create_sals_from_address): New function.
6966 (base_breakpoint_create_breakpoints_sal): Likewise.
6967 (base_breakpoint_decode_linespec): Likewise.
6968 (base_breakpoint_ops): Add methods
6969 `base_breakpoint_create_sals_from_address',
6970 `base_breakpoint_create_breakpoints_sal' and
6971 `base_breakpoint_decode_linespec'.
6972 (bkpt_create_sals_from_address): New function.
6973 (bkpt_create_breakpoints_sal): Likewise.
6974 (bkpt_decode_linespec): Likewise.
6975 (tracepoint_create_sals_from_address): Likewise.
6976 (tracepoint_create_breakpoints_sal): Likewise.
6977 (tracepoint_decode_linespec): Likewise.
6978 (strace_marker_create_sals_from_address): Likewise.
6979 (strace_marker_create_breakpoints_sal): Likewise.
6980 (strace_marker_decode_linespec): Likewise.
6981 (strace_marker_breakpoint_ops): New variable.
6982 (addr_string_to_sals): Remove `marker_spec'. Call method
6983 `decode_linespec' from breakpoint_ops, replacing code that decoded
6984 an address string into a SAL. Use `strace_marker_p' instead of
6985 `marker_spec'.
6986 (strace_command): Decide whether we are dealing with a static
6987 tracepoint with marker or not. Use the appropriate breakpoint_ops.
6988 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
6989 * breakpoint.h (linespec_result, linespec_sals): New forward
6990 declarations.
6991 (breakpoint_ops) <create_sals_from_address>,
6992 <create_breakpoints_sal>, <decode_linespec>: New methods.
6993
6994 2012-01-14 Doug Evans <dje@google.com>
6995
6996 * NEWS: Update text for "maint set python print-stack".
6997 It is deprecated in gdb 7.4 and deleted in 7.5.
6998
6999 2012-01-13 Eli Zaretskii <eliz@gnu.org>
7000
7001 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
7002 including curses.h.
7003
7004 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7005
7006 * configure: Regenerate.
7007 * config.in: Regenerate.
7008
7009 2012-01-12 Keith Seitz <keiths@redhat.com>
7010
7011 PR mi/10586
7012 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
7013 (ANONYMOUS_UNION_NAME): Define.
7014 (is_path_expr_parent): New function.
7015 (get_path_expr_parent): New function.
7016 (is_anonymous_child): New function.
7017 (create_child_with_value): If the child is anonymous and without
7018 a name, assign an object name to it.
7019 (c_describe_child): Use get_path_expr_parent to determine
7020 the parent expression.
7021 If there field represents an anonymous struct or union and
7022 has no name, set an appropriate display name and expression.
7023 (cplus_describe_child): Likewise.
7024
7025 2012-01-12 Pedro Alves <palves@redhat.com>
7026
7027 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
7028 available when %ebp is found to be zero (outermost).
7029
7030 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
7031
7032 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
7033 an internal gdb_static_assert.
7034 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
7035
7036 2012-01-11 Tom Tromey <tromey@redhat.com>
7037
7038 PR gdb/9598:
7039 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
7040 catch" and "catch throw".
7041
7042 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
7043
7044 * blockframe.c (block_innermost_frame): Start search from selected
7045 frame, if present, or otherwise the current frame.
7046
7047 * c-exp.y (variable): Update innermost_block for
7048 'block COLONCOLON NAME' clause.
7049 * m2-exp.y (variable): Ditto.
7050 * objc-exp.y (variable): Ditto.
7051
7052 2012-01-10 Tom Tromey <tromey@redhat.com>
7053
7054 PR python/13199:
7055 * python/python.c (finish_python_initialization): Set sys.argv.
7056
7057 2012-01-10 Doug Evans <dje@google.com>
7058
7059 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
7060 "want_line_info". All callers updated.
7061 (dwarf_decode_lines_1): New function.
7062 (handle_DW_AT_stmt_list): Add function comment.
7063 New arg "want_line_info". All callers updated.
7064 (read_file_scope,read_type_unit_scope): Move comment from
7065 handle_DW_AT_stmt_list to here.
7066
7067 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7068
7069 Fix regression after libiberty/ update for GCC PR 6057 and others.
7070 * c-exp.y (operator) <OPERATOR DELETE>
7071 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7072 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
7073 (make_builtin_type, make_name): New variable i, add gdb_assert.
7074 (operator) <OPERATOR NEW>: Update ARGS to 3.
7075 (operator) <OPERATOR DELETE>: Add trailing space.
7076 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
7077 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7078 * cp-support.c (cp_canonicalize_string): Check NULL from
7079 cp_comp_to_string, call warning and return.
7080
7081 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7082
7083 Fix duplicate .o files after omitting libbfd.a.
7084 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
7085 (SFILES): Add corelow.c.
7086 (COMMON_OBS): Add corelow.o.
7087 (ALLDEPFILES): Remove corelow.c.
7088 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
7089 * config/alpha/alpha-osf3.mh: Likewise.
7090 * config/alpha/fbsd.mh: Likewise.
7091 * config/arm/nbsdaout.mh: Likewise.
7092 * config/arm/nbsdelf.mh: Likewise.
7093 * config/i386/i386gnu.mh: Likewise.
7094 * config/ia64/hpux.mh: Likewise.
7095 * config/ia64/linux.mh: Likewise.
7096 * config/m32r/linux.mh: Likewise.
7097 * config/m68k/linux.mh: Likewise.
7098 * config/mips/irix5.mh: Likewise.
7099 * config/mips/irix6.mh: Likewise.
7100 * config/pa/hpux.mh: Likewise.
7101 * config/pa/linux.mh: Likewise.
7102 * config/powerpc/aix.mh: Likewise.
7103 * config/sparc/linux.mh: Likewise.
7104 * config/sparc/linux64.mh: Likewise.
7105 * config/sparc/sol2.mh: Likewise.
7106 * config/vax/vax.mh: Likewise.
7107 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
7108 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
7109 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
7110 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
7111 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
7112 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
7113 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
7114 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
7115 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
7116 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
7117 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
7118 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
7119 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7120 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
7121 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
7122 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7123 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
7124 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
7125 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
7126 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
7127 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
7128 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
7129 corelow.o from gdb_target_obs.
7130 * corefile.c (core_target): Update the comment on NULL value.
7131 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
7132 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
7133 MATCHES. Drop YUMMY set on NULL.
7134 (core_close): Do not call exit_inferior_silent on zero PID. Do not
7135 reclaim CORE_DATA if it is already NULL.
7136
7137 2012-01-09 Doug Evans <dje@google.com>
7138
7139 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
7140 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
7141
7142 2012-01-09 Keith Seitz <keiths@redhat.com>
7143
7144 * breakpoint.c (wrapper.h): Don't include.
7145
7146 2012-01-09 Keith Seitz <keiths@redhat.com>
7147
7148 * Makefile.in (SFILES): Remove wrapper.c.
7149 (HFILES_NO_SRCDIR): Remove wrapper.h.
7150 (COMMON_OBS): Remove wrapper.o.
7151 * cli/cli-interp.c: Don't inlude wrapper.h.
7152 * corelow.c: Likewise.
7153 (core_open): Replace gdb_target_find_new_threads with
7154 TRY_CATCH around target_find_new_threads.
7155 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
7156 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
7157 * varobj.c (varobj_create): Likewise for parse_exp_1 and
7158 evaluate_expression.
7159 (varobj_set_value): Likewise for evaluate_expression and
7160 value_assign.
7161 (install_new_variable): Likewise for value_fetch_lazy.
7162 (adjust_value_for_child_access): Likewise for value_ind.
7163 (c_describe_child): Likewise for value_subscript and
7164 value_ind.
7165 (c_value_of_root): Likewise for evaluate_expression.
7166 * wrapper.c: Remove.
7167 * wrapper.h: Remove.
7168
7169 2012-01-09 Doug Evans <dje@google.com>
7170
7171 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7172 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
7173 "abfd" args with "section". All callers updated.
7174 Error checking code moved ...
7175 (error_check_comp_unit_head): ... here. New function.
7176 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7177 Delete arg "abfd". New arg "type_offset". All callers updated.
7178 (create_debug_types_hash_table): Simplify by using
7179 read_and_check_type_unit_head.
7180
7181 * parser-defs.h (namecopy): Delete.
7182 * parse.c (namecopy, namecopy_size): Move into copy_name.
7183
7184 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7185
7186 Partially fix duplicate .o files after omitting libbfd.a.
7187 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7188 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7189 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7190 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7191 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7192 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7193 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7194
7195 2012-01-09 Pedro Alves <palves@redhat.com>
7196
7197 * MAINTAINERS: Update my email address.
7198
7199 2012-01-08 Doug Evans <dje@google.com>
7200
7201 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7202 n_type_units. Rename type_comp_units to all_type_units.
7203 All uses updated.
7204 (add_signatured_type_cu_to_table): Renamed from
7205 add_signatured_type_cu_to_list. All callers updated.
7206
7207 * gdbtypes.h (struct cplus_struct_type): Delete member
7208 nfn_fields_total. All uses removed.
7209
7210 2012-01-06 Doug Evans <dje@google.com>
7211
7212 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7213 to top of file.
7214 (dwarf2_find_comp_unit): Delete.
7215 (process_psymtab_comp_unit): Make result "void".
7216 Delete args buffer, info_ptr, buffer_size, and replace with
7217 "section". All callers updated.
7218 (dwarf2_build_psymtabs_hard): Simplify.
7219
7220 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
7221 Thiago Jung Bauermann <bauerman@br.ibm.com>
7222
7223 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7224 before `struct gdb_exception'.
7225 * breakpoint.c (update_global_location_list_nothrow)
7226 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7227 * cp-abi.c (value_rtti_type): Likewise.
7228 * cp-support.c (cp_validate_operator): Likewise.
7229 * infrun.c (insert_exception_resume_breakpoint)
7230 (check_exception_resume, keep_going): Likewise.
7231 * mi-interp.c (mi_breakpoint_created)
7232 (mi_breakpoint_modified): Likewise.
7233 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7234 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7235 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7236
7237 2012-01-05 Doug Evans <dje@google.com>
7238
7239 * dwarf2read.c (statement_prologue): Delete, unused.
7240
7241 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7242 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7243
7244 * dwarf2read.c (comp_unit_header): Delete, unused.
7245
7246 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
7247
7248 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7249 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7250
7251 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
7252
7253 * infrun.c (normal_stop): Don't skip calling the normal_stop
7254 observers if the thread was doing a multi-step, but stopped for
7255 some reason other than stepping.
7256
7257 2012-01-05 Pedro Alves <alves.ped@gmail.com>
7258
7259 * cli/cli-decode.h: Add comments.
7260 (CMD_LIST_AMBIGUOUS): Moved to command.h
7261 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7262 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7263 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7264 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7265 (add_com, add_com_alias, add_info, add_info_alias)
7266 (complete_on_cmdlist, complete_on_enum, help_list): Remove
7267 declarations.
7268 * command.h: Add and adjust comments.
7269 (CMD_LIST_AMBIGUOUS): Moved here.
7270 (help_cmd, help_cmd_list): Delete declarations.
7271
7272 2012-01-04 Doug Evans <dje@google.com>
7273
7274 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7275 All callers updated.
7276 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7277 Replace all arguments with "per_cu". All callers updated.
7278
7279 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7280
7281 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7282 New arg "per_cu". All callers updated.
7283
7284 Delete #if 0'd out code.
7285 * language.c (binop_result_type): Delete.
7286 (simple_type, ordered_type, same_type, integral_type): Delete.
7287 (numeric_type, character_type, string_type, boolean_type): Delete.
7288 (float_type, structured_type): Delete.
7289 * language.h: Update.
7290
7291 2012-01-04 Tom Tromey <tromey@redhat.com>
7292
7293 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7294
7295 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7296
7297 * corefile.c (close_exec_file): Delete.
7298 (reopen_exec_file): Remove commented out code that seems related
7299 to close_exec_file, which is being deleted here.
7300 * inferior.h (close_exec_file): Delete.
7301 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7302
7303 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7304
7305 * ada-lang.c: #include "cli/cli-utils.h".
7306 (get_selections): Use skip_spaces.
7307 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7308 (catch_ada_exception_command_split): Use skip_spaces.
7309 (ada_decode_assert_location): Likewise.
7310
7311 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7312
7313 * linespec.c (decode_line_internal): Check for C++ or Java
7314 compound constructs only if the current language is C, C++
7315 or Java.
7316
7317 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7318
7319 Revert:
7320 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7321 Joel Brobecker <brobecker@adacore.com>
7322 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7323 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7324 3 times.
7325 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7326 fall through into AT_ENTRY_POINT.
7327 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7328 DUMMY_ADDR with it.
7329 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7330 PPC_INSN_SIZE skip to 3 times.
7331
7332 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7333
7334 * linespec.c (add_minsym): Preserve function descriptors.
7335
7336 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7337
7338 * breakpoint.c (all_locations_are_pending): Consider locations
7339 in program spaces executing during startup pending as well.
7340
7341 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7342
7343 Copyright year update in most files of the GDB Project.
7344
7345 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7346
7347 * copyright.sh: Delete.
7348 * copyright.py: Rewrite.
7349
7350 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7351
7352 * gnulib/extra/update-copyright: New file, imported from gnulib.
7353
7354 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7355
7356 * README (Copyright and License Notices): New section.
7357
7358 2012-01-03 Tom Tromey <tromey@redhat.com>
7359
7360 PR python/12533:
7361 * python/py-value.c (valpy_dereference, valpy_get_address
7362 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7363 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7364 (valpy_absolute, valpy_richcompare): Free intermediate values.
7365
7366 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7367
7368 * ada-lang.c: Reformat the copyright notice.
7369
7370 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7371
7372 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7373 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7374 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7375 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7376 Revert this part of:
7377 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7378 Build gdb directly from *.o files not using libgdb.a.
7379 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7380
7381 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7382
7383 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7384 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7385 Reformat the copyright header.
7386
7387 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7388
7389 Revert this part of:
7390 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7391 Remove the gdbtui binary.
7392 * gdb.c (main): Remove args.interpreter_p initialization.
7393 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7394 * main.h (struct captured_main_args): Remove interpreter_p.
7395
7396 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7397
7398 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7399
7400 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7401
7402 * top.c (print_gdb_version): Update copyright year.
7403
7404 2012-01-02 Yao Qi <yao@codesourcery.com>
7405
7406 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7407
7408 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7409 Joel Brobecker <brobecker@adacore.com>
7410
7411 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7412 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7413 3 times.
7414 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7415 fall through into AT_ENTRY_POINT.
7416 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7417 DUMMY_ADDR with it.
7418 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7419 PPC_INSN_SIZE skip to 3 times.
7420
7421 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7422
7423 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7424 the return value.
7425 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7426
7427 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7428
7429 Build gdb directly from *.o files not using libgdb.a.
7430 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7431 (COMMON_OBS): Remove solib-target.o.
7432 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7433 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7434 (LIBGDB_OBS, libgdb.a): Move it above.
7435 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7436 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7437 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7438 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7439 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7440 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7441 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7442 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7443 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7444 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7445 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7446 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7447 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7448 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7449 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7450 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7451 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7452 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7453 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7454 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7455 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7456 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7457 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7458 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7459 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7460 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7461 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7462
7463 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7464
7465 Remove the gdbtui binary.
7466 * .gitignore (/gdbtui): Remove.
7467 * Makefile.in (TUI): Remove.
7468 (SUBDIR_TUI_OBS): Remove tui-main.o.
7469 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7470 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7471 (tui-main.o): Remove.
7472 (all_object_files): Remove tui-main.o.
7473 * NEWS: New note for the gdbtui removal.
7474 * configure: Rebuilt.
7475 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7476 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7477 CONFIG_UNINSTALL respectively.
7478 * gdb.c (main): Remove args.interpreter_p initialization.
7479 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7480 * main.h (struct captured_main_args): Remove interpreter_p.
7481 * tui/tui-main.c: Remove.
7482
7483 2012-01-01 Doug Evans <dje@google.com>
7484
7485 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7486 (dwarf2_physname, read_import_statement): Ditto.
7487 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7488 (process_structure_scope read_subroutine_type): Ditto.
7489 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7490 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7491 (dwarf2_fetch_die_location_block): Ditto.
7492 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7493
7494 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7495 All callers updated.
7496 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7497 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7498 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7499
7500 * dwarf2read.c (load_cu): Move assert to more useful location.
7501
7502 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7503 All callers updated.
7504
7505 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7506 (dwarf2_elf_names): Minor reformat.
7507 (dwarf2_per_cu_data): Tweak comment.
7508 (dwarf2_read_section): Fix comment.
7509 (create_all_comp_units): Fix comment.
7510 (load_full_comp_unit): Fix comment.
7511 (process_full_comp_unit): Fix comment.
7512 (read_signatured_type): Fix comment.
7513
7514 For older changes see ChangeLog-2011.
7515 \f
7516 Local Variables:
7517 mode: change-log
7518 left-margin: 8
7519 fill-column: 74
7520 version-control: never
7521 coding: utf-8
7522 End:
This page took 0.186934 seconds and 4 git commands to generate.