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