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