f743cd2cf2be2c82336b35692939a6e3f748dd23
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-02-02 Tom Tromey <tromey@redhat.com>
2
3 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
4 (gnuv2_baseclass_offset): Now static.
5 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
6 * gnu-v2-abi.h: Remove.
7
8 2010-02-02 Tom Tromey <tromey@redhat.com>
9
10 * m2-typeprint.c (m2_record_fields): Don't use
11 TYPE_DECLARED_TYPE.
12 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
13 (struct main_type) <flag_declared_class>: New field.
14 (struct cplus_struct_type) <declared_type>: Remove.
15 <ntemplate_args>: Move earlier.
16 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
17 (DECLARED_TYPE_TEMPLATE): Remove.
18 (TYPE_DECLARED_TYPE): Remove.
19 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
20 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
21 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
22 TYPE_DECLARED_TYPE.
23
24 2010-02-02 Tom Tromey <tromey@redhat.com>
25
26 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
27 * valops.c (search_struct_field): Compute nbases after calling
28 CHECK_TYPEDEF.
29 (check_field): Call CHECK_TYPEDEF.
30 * cp-valprint.c (cp_print_value): Pass correct address to
31 baseclass_offset. Fix check for virtual base past the end of the
32 object. Don't offset address passed to cp_print_value_fields or
33 apply_val_pretty_printer.
34 (cp_print_value_fields): Fix call to val_print.
35 (cp_print_value_fields_rtti): New function.
36 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
37 * p-valprint.c (pascal_object_print_value_fields): Fix call to
38 val_print.
39 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
40 offset to address.
41 * language.h (struct language_defn) <la_val_print>: Document.
42 * c-lang.h (cp_print_value_fields_rtti): Declare.
43
44 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
45
46 PR libc/11214:
47 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
48 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
49 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
50
51 2010-02-01 Michael Matz <matz@suse.de>
52 Daniel Jacobowitz <dan@codesourcery.com>
53
54 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
55 functions use a frame pointer.
56
57 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
58
59 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
60 by a conditional setting DYN_ADDR. Use DYN_ADDR.
61 * config/djgpp/fnchange.lst: Add translations for
62 symbol-without-target_section.exp and symbol-without-target_section.c.
63
64 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
65
66 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
67 (remote_breakpoint_for_pc): Correct invalid_p check.
68 * gdbarch.c: Regenerated.
69
70 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
71
72 * arm-tdep.c (arm_find_mapping_symbol): New function, from
73 arm_pc_is_thumb.
74 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
75 (extend_buffer_earlier): New function.
76 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
77 (arm_adjust_breakpoint_address): New function.
78 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
79
80 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
81
82 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
83 (arm_linux_thumb2_le_breakpoint): New constants.
84 (arm_linux_init_abi): Set thumb2_breakpoint and
85 thumb2_breakpoint_size.
86 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
87 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
88 Implement support for single stepping through IT blocks if
89 a 32-bit Thumb breakpoint instruction is available.
90 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
91 is available, use it when needed.
92 (arm_remote_breakpoint_from_pc): New function.
93 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
94 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
95 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
96
97 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
98
99 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
100 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
101 * gdbarch.c, gdbarch.h: Regenerated.
102 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
103 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
104 gdbarch_remote_breakpoint_from_pc.
105
106 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
107
108 * infrun.c (prepare_to_proceed): Handle other signals which might
109 match a breakpoint.
110 (handle_inferior_event): Move the check for unusual breakpoint
111 signals earlier.
112
113 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
114
115 amd64 - function returning record with field straddling 2 registers.
116 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
117 a record of length <= 16 in which a field straddles the two
118 eightbytes.
119
120 2010-01-29 Joel Brobecker <brobecker@adacore.com>
121
122 Implement return values on amd64-windows.
123 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
124 (amd64_windows_return_value): New function.
125 (amd64_windows_init_abi): Call set_gdbarch_return_value with
126 amd64_windows_return_value.
127
128 2010-01-29 Joel Brobecker <brobecker@adacore.com>
129
130 amd64-windows: 32 bytes allocated on stack by caller for integer
131 parameter registers.
132 * i386-tdep.h (struct gdbarch_tdep): Add new field
133 integer_param_regs_saved_in_caller_frame.
134 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
135 tdep->integer_param_regs_saved_in_caller_frame to 1.
136 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
137 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
138
139 2010-01-29 Joel Brobecker <brobecker@adacore.com>
140
141 amd64-windows: memory args passed by pointer during function calls.
142 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
143 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
144 where tdep->memory_args_by_pointer is non-zero.
145 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
146 tdep->memory_args_by_pointer to 1.
147
148 2010-01-29 Joel Brobecker <brobecker@adacore.com>
149
150 amd64-windows: Integer parameters in function calls.
151 * i386-tdep.h (enum amd64_reg_class): New, moved here from
152 amd64-tdep.c.
153 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
154 call_dummy_integer_regs, and classify.
155 * amd64-tdep.h (amd64_classify): Add declaration.
156 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
157 (amd64_reg_class): Delete, moved to i386-tdep.h.
158 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
159 Replace call to amd64_classify by call to tdep->classify.
160 (amd64_push_arguments): Get the list of registers to use for
161 passing integer parameters from the gdbarch tdep structure,
162 rather than using a hardcoded one. Replace calls to amd64_classify
163 by calls to tdep->classify.
164 (amd64_push_dummy_call): Get the register number used for
165 the "hidden" argument from tdep->call_dummy_integer_regs.
166 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
167 and tdep->call_dummy_integer_regs. Set tdep->classify.
168 * amd64-windows-tdep.c: Add include of gdbtypes.h.
169 (amd64_windows_dummy_call_integer_regs): New static global.
170 (amd64_windows_classify): New function.
171 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
172 tdep->call_dummy_integer_regs and tdep->classify.
173
174 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
175
176 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
177 for the new regcache. All callers updated.
178 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
179 (get_thread_arch_regcache): Do not set aspace here.
180 * regcache.h (regcache_xmalloc): Update declaration.
181
182 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
183 regcache_xmalloc updated.
184
185 2010-01-28 Joel Brobecker <brobecker@adacore.com>
186
187 Another -Wunused-function error in procfs.c (sparc-solaris)
188 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
189 Only define if SYS_syssgi is defined.
190 (remove_dbx_link_breakpoint): Delete declaration. Move up.
191 (dbx_link_addr, insert_dbx_link_bpt_in_file)
192 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
193 is itself defined.
194
195 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
196
197 * windows-nat.c (windows_initialization_done): New variable.
198 (get_windows_debug_event): Issue error when process dies before
199 completely initializing.
200 (do_initial_windows_stuff): Set flag to indicate when we are done with
201 the initial steps of attaching to the child.
202
203 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
204
205 * symtab.h (struct symbol <symtab>): New comment on NULL values.
206
207 2010-01-27 Doug Evans <dje@google.com>
208
209 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
210
211 * breakpoint.c (bpstat_stop_status): Delete useless code.
212
213 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
214
215 * printcmd.c (display_uses_solib_p): Remove variable section. Access
216 objfile via SYMBOL_SYMTAB.
217
218 2010-01-26 Tom Tromey <tromey@redhat.com>
219
220 PR exp/7643:
221 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
222 coerce_array on result.
223
224 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
225
226 * cp-namespace.c (cp_lookup_symbol_namespace): Added
227 search_parent argument.
228 (cp_add_using): Initialize 'searched' field.
229 (reset_directive_searched): New function.
230 * cp-support.h: Add 'searched' field to using_direct struct.
231 (cp_lookup_symbol_imports): Ditto.
232 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
233 Perform recursive search.
234 Implement non parent search.
235 * valops.c (value_maybe_namespace_elt): Updated.
236
237 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
238
239 PR gdb/10929:
240 * dwarf2read.c (read_lexical_block_scope): Create blocks for
241 scopes which contain using directives even if they contain no
242 declarations.
243 * symtab.c (lookup_symbol_aux): Pass lowest level block to
244 la_lookup_symbol_nonlocal.
245 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
246 cp_lookup_symbol_namespace.
247 (cp_lookup_symbol_namespace): Perform an import lookup at every
248 block level.
249 (cp_lookup_symbol_imports): New function.
250 (cp_lookup_symbol_in_namespace): New function.
251
252 2010-01-25 Tom Tromey <tromey@redhat.com>
253
254 PR gdb/11049:
255 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
256 result.
257
258 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
259
260 * configure.ac: Only use host_os part when disabling TUI on osf.
261 Use test to check variables, prefix strings with x.
262 * configure: Regenerate.
263
264 * solib-osf.c (osf_current_sos): Initialize tail.
265
266 2010-01-25 gingold <gingold@adacore.com>
267
268 * windows-nat.c (windows_continue): Use %x to print thread id.
269 (get_windows_debug_event): Ditto.
270
271 2010-01-22 Tom Tromey <tromey@redhat.com>
272
273 PR symtab/11199:
274 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
275 type and arguments. Use smash_to_methodptr_type.
276 (read_structure_type): Call quirk_gcc_member_function_pointer
277 later.
278 * gdbtypes.h (smash_to_methodptr_type): Declare.
279 * gdbtypes.c (smash_to_methodptr_type): New function.
280 (lookup_methodptr_type): Use it.
281
282 2010-01-21 Tom Tromey <tromey@redhat.com>
283
284 PR symtab/11198:
285 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
286 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
287 * glibc-tdep.c (find_minsym_and_objfile): Remove.
288 (glibc_skip_solib_resolver): Use
289 lookup_minimal_symbol_and_objfile.
290
291 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
292
293 * inflow.c (check_syscall): Guard by #if clause for GO32 and
294 WIN32 targets.
295
296 2010-01-20 Tom Tromey <tromey@redhat.com>
297
298 PR backtrace/10770:
299 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
300 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
301 * dwarf2expr.c (new_dwarf_expr_context): Allocate
302 dwarf_stack_values, not CORE_ADDRs.
303 (execute_stack_op): Change DW_OP_div and comparison operators to
304 use signed operands.
305
306 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
307
308 Per-inferior args and tty and environment.
309
310 * infcmd.c (inferior_args): Rename to ...
311 (inferior_args_scratch): ... this.
312 (inferior_io_terminal): Rename to ...
313 (inferior_io_terminal_scratch): ... this.
314 (inferior_argc, inferior_argv): Remove.
315 (set_inferior_io_terminal, get_inferior_io_terminal): Store
316 inside current_inferior().
317 (set_inferior_tty_command, show_inferior_tty_command): New.
318 (get_inferior_args, set_inferior_args): Store inside
319 current_inferior().
320 (notice_args_set): Likewise and rename to...
321 (set_args_command): ... this.
322 (set_inferior_args_vector): Likewise.
323 (notice_args_read): Rename to...
324 (show_args_command): ...new.
325 (tty_command): Remove.
326 (run_command_1): Don't free old args, as they are freed by
327 set_inferior_arg now.
328 (run_no_args_command): Likewise.
329 (inferior_environ): Remove.
330 (run_command_1): Use environment of the current inferior.
331 (environment_info, set_environment_command)
332 (unset_environment_command, path_info, path_command): Likewise.
333 (_initialize_infcmd): Adjust for function and variable renames.
334 Do not init inferior_environ.
335 * inferior.h (set_inferior_arg): Adjust prototype.
336 (struct inferior): New fields args, argc, argv, terminal, environment.
337 (inferior_environ): Remove declaration.
338 * inferior.c (free_inferior): Free new fields.
339 (add_inferior_silent): Initialize 'environment' field.
340 * main.c (captured_main): Set arguments only after the initial
341 inferior has been created. Set set_inferior_io_terminal,
342 not tty_command.
343 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
344 inferior.
345 (_initialize_mi_cmd_env): Adjust for disappearance of global
346 inferior_environ.
347 * solib.c (solib_find): Use environment of the current inferior.
348
349 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
350
351 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
352 HAVE_PYTHON.
353 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
354
355 2010-01-20 Joel Brobecker <brobecker@adacore.com>
356
357 Get rid of ada-lang.c:function_name_from_pc.
358 * ada-lang.c: Add "stack.h" #include.
359 (function_name_from_pc): Delete.
360 (is_known_support_routine): Replace call to function_name_from_pc
361 by call to find_frame_funname.
362 (ada_unhandled_exception_name_addr_from_raise): Likewise.
363
364 2010-01-19 Tom Tromey <tromey@redhat.com>
365
366 PR c++/11026:
367 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
368 objfile obstack.
369
370 2010-01-19 Tom Tromey <tromey@redhat.com>
371
372 * top.c (stop_sig, float_handler, do_nothing): Remove.
373
374 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
375
376 * breakpoint.c (watchpoint_check): Check the call
377 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
378 Extend the comment.
379 * config/djgpp/fnchange.lst: Add translations for
380 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
381 watchpoint-cond-gone-stripped.c.
382
383 2010-01-19 Tom Tromey <tromey@redhat.com>
384
385 PR c++/8000:
386 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
387 into parent scope, and enumerator into grandparent scope.
388
389 2010-01-19 Joel Brobecker <brobecker@adacore.com>
390
391 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
392
393 2010-01-19 Joel Brobecker <brobecker@adacore.com>
394
395 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
396 i[34567]86-*-solaris2.1[0-9]*.
397 * configure.tgt: Likewise.
398
399 2010-01-19 Joel Brobecker <brobecker@adacore.com>
400
401 * NEWS: Document the source command enhancement allowing it
402 to load Python scripts. Document the "set/show script-extension"
403 commands.
404
405 2010-01-19 Joel Brobecker <brobecker@adacore.com>
406
407 Add -Wunused-function to compile flags.
408 * configure.ac: Add -Wunused-function to build_warnings.
409 * configure: Regenerate.
410
411 2010-01-19 Joel Brobecker <brobecker@adacore.com>
412
413 "delete" ada-lex.c:input function, not used.
414 * ada-lex.l: #define YY_NO_INPUT.
415
416 2010-01-19 Joel Brobecker <brobecker@adacore.com>
417
418 Delete free_named_symtabs and associated cleanup.
419 * symfile.h (free_named_symtabs): Delete declaration.
420 * symfile.c: Remove some commented out code (clear_symtab_users_once).
421 (cashier_psymtab): Comment function out.
422 Delete declaration.
423 (free_named_symtabs): Delete.
424 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
425 * dbxread.c (end_psymtab): Likewise.
426 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
427 * exec.c (exec_close_1): Ditto.
428 * xcoffread.c (xcoff_end_psymtab): Likewise.
429
430 2010-01-19 Joel Brobecker <brobecker@adacore.com>
431
432 * stack.c (print_block_frame_labels): Comment function out.
433
434 2010-01-19 Joel Brobecker <brobecker@adacore.com>
435
436 Delete unused or undefined functions.
437 * breakpoint.c (ep_parse_optional_filename): Delete.
438 * dcache.c (dcache_write_line): Remove declaration.
439 * infrun.c (build_infrun): Remove declaration.
440 * tracepoint.c (tracepoint_save_command): Remove declaration.
441 * linux-nat.c (init_lwp_list): Delete. No longer used.
442 * event-loop.c (check_async_signal_handlers): Delete declaration.
443 * infrun.c (init_execution_control_state): Delete.
444 (proceed): Update comment to avoid mentioning
445 init_execution_control_state.
446 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
447 * ada-lang.c (ada_to_static_fixed_value): Delete.
448 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
449 * cp-namespace.c (cp_copy_usings): Delete.
450 * xml-syscall.c (xml_number_of_syscalls): Delete.
451 * progspace.c (find_program_space_by_num): Delete.
452 * inflow.c (handle_sigio): Delete declaration.
453 * hppa-tdep.c (hppa_alignof): Delete.
454 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
455 (mipsnbsd_core_osabi_sniffer): Delete.
456
457 2010-01-18 Tom Tromey <tromey@redhat.com>
458
459 PR c++/9680:
460 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
461 (CONST_CAST): New tokens.
462 (exp): Add new productions.
463 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
464 reinterpret_cast.
465 (is_cast_operator): New function.
466 (yylex): Handle cast operators specially.
467 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
468 UNOP_REINTERPRET_CAST>: New cases.
469 * expprint.c (print_subexp_standard): Likewise.
470 (op_name_standard): Likewise.
471 (dump_subexp_body_standard): Likewise.
472 * parse.c (operator_length_standard): Likewise.
473 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
474 UNOP_REINTERPRET_CAST.
475 * gdbtypes.c (class_types_same_p): New function.
476 (is_ancestor): Use it.
477 (is_public_ancestor): New function.
478 (is_unique_ancestor_worker): Likewise.
479 (is_unique_ancestor): Likewise.
480 * gdbtypes.h (class_types_same_p, is_public_ancestor)
481 (is_unique_ancestor): Declare.
482 * valops.c (value_reinterpret_cast): New function.
483 (dynamic_cast_check_1): Likewise.
484 (dynamic_cast_check_2): Likewise.
485 (value_dynamic_cast): Likewise.
486 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
487
488 2010-01-18 Joel Brobecker <brobecker@adacore.com>
489
490 Fix build failure when building without Python support.
491 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
492 is not defined.
493
494 2010-01-18 Joel Brobecker <brobecker@adacore.com>
495
496 Use XVS field type instead of doing a parallel lookup.
497 * ada-lang.c (ada_get_base_type): Follow the XVS field type
498 if it is a reference type instead of doing a type lookup using
499 the XVS field name.
500
501 2010-01-18 Joel Brobecker <brobecker@adacore.com>
502
503 Trust PAD types instead of using PAD___XVS.
504 * ada-lang.c (trust_pad_over_xvs): New static variable.
505 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
506 parallel XVS type, follow the XVS type instead of the PAD type.
507 (unwrap_value): Make sure that there is no parallel XVE type
508 before returning the value as is.
509 (set_ada_list, show_ada_list): New static variables.
510 (set_ada_command, show_ada_command): New functions.
511 (_initialize_ada_language): Add new "set/show ada" prefix commands.
512 Add new "set/show ada trust-PAD-over-XVS" setting.
513
514 2010-01-18 Tom Tromey <tromey@redhat.com>
515 Thiago Jung Bauermann <bauerman@br.ibm.com>
516
517 Allow "source" to load python scripts.
518 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
519 * python/python.c (source_python_script): New function.
520 * python/python.h (source_python_script): Add declaration.
521 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
522 (script_ext_off, script_ext_soft, script_ext_strict)
523 (script_ext_enums, script_ext_mode): New static constants.
524 (show_script_ext_mode, find_and_open_script): New functions.
525 (source_script): Enhance to handle Python scripts.
526 (init_cli_cmds): Add set/show script-extension commands.
527
528 2010-01-16 Stan Shebs <stan@codesourcery.com>
529
530 * tracepoint.h (struct trace_status): Use unsigned long long
531 instead of size_t.
532 * tracepoint.c (trace_status_command): Fix printf directive.
533 (trace_save_command): Check fwrite returns, fix printf directive.
534 (trace_filename): New global.
535 (tfile_open): Set it, check read returns.
536 (tfile_close): Free trace_filename.
537 (tfile_get_traceframe_address): Check read returns.
538 (tfile_trace_find): Ditto.
539 (tfile_fetch_registers): Ditto.
540 (tfile_xfer_partial): Ditto.
541 (tfile_get_trace_state_variable_value): Ditto.
542
543 2010-01-15 Stan Shebs <stan@codesourcery.com>
544
545 Add trace file support.
546 * tracepoint.h (enum trace_stop_reason): New enum.
547 (struct trace_status): New struct.
548 (parse_trace_status): Declare.
549 (struct uploaded_tp): Move here from remote.c,
550 add fields for actions.
551 (struct uploaded_tsv): New struct.
552 * tracepoint.c (tfile_ops): New target vector.
553 (trace_fd): New global.
554 (tfile_open): New function.
555 (tfile_close): New function.
556 (tfile_files_info): New function.
557 (tfile_get_trace_status): New function.
558 (tfile_get_traceframe_address): New function.
559 (tfile_trace_find): New function.
560 (tfile_fetch_registers): New function.
561 (tfile_xfer_partial): New function.
562 (tfile_get_trace_state_variable_value): New function.
563 (init_tfile_ops): New function.
564 (_initialize_tracepoint): Call it, add tfile target.
565 (trace_status): New global.
566 (current_trace_status): New function.
567 (trace_running_p): Remove, change all users to get from
568 current_trace_status()->running.
569 (get_trace_status): Remove.
570 (trace_status_command): Call target_get_trace_status directly,
571 report more detail including tracing stop reasons.
572 (trace_find_command): Always allow tfind on a file.
573 (trace_find_pc_command): Ditto.
574 (trace_find_tracepoint_command): Ditto.
575 (trace_find_line_command): Ditto.
576 (trace_find_range_command): Ditto.
577 (trace_find_outside_command): Ditto.
578 (trace_frames_offset, cur_offset): Declare as off_t.
579 (trace_regblock_size): Rename from reg_size, update users.
580 (parse_trace_status): New function.
581 (tfile_interp_line): New function.
582 (disconnect_or_stop_tracing): Ensure current trace
583 status before asking what to do.
584 (stop_reason_names): New global.
585 (trace_save_command): New command.
586 (get_uploaded_tp): Move here from remote.c.
587 (find_matching_tracepoint): Ditto.
588 (merge_uploaded_tracepoints): New function.
589 (parse_trace_status): Use stop_reason_names.
590 (_initialize_tracepoint): Define tsave command.
591 * target.h (target_ops): New fields to_save_trace_data,
592 to_upload_tracepoints, to_upload_trace_state_variables,
593 to_get_raw_trace_data, change to_get_trace_status
594 to take a pointer to a status struct.
595 (target_save_trace_data): New macro.
596 (target_upload_tracepoints): New macro.
597 (target_upload_trace_state_variables): New macro.
598 (target_get_raw_trace_data): New macro.
599 * target.c (update_current_target): Add new methods, change
600 signature of to_get_trace_status.
601 * remote.c (hex2bin): Make globally visible.
602 (bin2hex): Ditto.
603 (remote_download_trace_state_variable): Download name also.
604 (remote_get_trace_status): Update parameter, use
605 parse_trace_status.
606 (remote_save_trace_data): New function.
607 (remote_upload_tracepoints): New function.
608 (remote_upload_trace_state_variables): New function.
609 (remote_get_raw_trace_data): New function.
610 (remote_start_remote): Use them.
611 (_initialize_remote_ops): Add operations.
612 * ax-gdb.c: Include breakpoint.h.
613 * breakpoint.c (create_tracepoint_from_upload): Use
614 break_command_really, return tracepoint, warn about unimplemented
615 parts.
616 * NEWS: Mention trace file addition.
617
618 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
619
620 Fix compilation warning on gcc-3.4.
621 * exec.c (print_section_info): Move the `displacement' variable
622 initialization to its declaration.
623
624 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
625
626 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
627 comparison.
628
629 2010-01-15 Eric Botcazou <botcazou@adacore.com>
630
631 "info tasks" broken by typedefs in ATCB type definitions.
632 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
633 ada_check_typedef before retrieving the length of the type for
634 regular fields.
635
636 2010-01-15 Joel Brobecker <brobecker@adacore.com>
637
638 Do not use name-based lookup for unconstrained packed arrays.
639 * ada-lang.c (find_parallel_type_by_descriptive_type):
640 Limit the fallback to name-based lookups to the case where
641 the type is a constrained packed array.
642
643 2010-01-15 Joel Brobecker <brobecker@adacore.com>
644
645 Enhance gdb-gdb.py to handle main_type.type_specific.
646 * gdb-gdb.py: Print the type-specific part of struct main_type.
647
648 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
649
650 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
651 * configure: Regenerate.
652 * config.in: Regenerate.
653 * utils.c: Include sys/resource.h.
654 (dump_core, can_dump_core): New.
655 (internal_vproblem): Update the comment. Check can_dump_core while
656 setting dump_core_p. Replace two abort calls by dump_core calls.
657
658 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
659 Eli Zaretskii <eliz@gnu.org>
660
661 * NEWS: Document the PIE support.
662
663 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
664
665 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
666 (check_is_pie_binary, _initialize_linux_tdep): Remove.
667
668 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
669
670 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
671 Replace exec_entry_point call by bfd_get_start_address.
672
673 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
674
675 Support Valgrind attachments broken by the PIE support.
676 * auxv.c: Include gdbcore.h.
677 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
678 parameters ops, object and annex. Remove their assertions.
679 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
680 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
681 (memory_xfer_auxv): ... here.
682 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
683 memory_xfer_auxv.
684 * procfs.c (procfs_xfer_partial): Likewise.
685 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
686 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
687 (svr4_solib_create_inferior_hook): Conditionalize the
688 svr4_relocate_main_executable call.
689
690 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
691
692 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
693 target_section. Find SECT in current_target_sections, gdb_assert it.
694 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
695 New variable abfd.
696 * symtab.c (lookup_objfile_from_block): Return the binary file instead
697 of separate debug info file.
698
699 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
700
701 Support PIEs with no symfile_objfile.
702 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
703 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
704
705 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
706
707 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
708 code part to ...
709 (svr4_static_exec_displacement): ... a new function.
710 (svr4_exec_displacement): New function.
711 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
712 new_offsets using alloca now. Remove variable old_chain and changed.
713 Call objfile_relocate unconditionally now.
714
715 2010-01-14 Doug Evans <dje@google.com>
716
717 * gdbtypes.c (arch_flags_type): Fix comment.
718 * gdbtypes.h (arch_composite_type): Fix comment.
719
720 2009-01-14 Tristan Gingold <gingold@adacore.com>
721
722 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
723 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
724 to symbol_file_add_from_bfd. Add OSO as separate objfile.
725 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
726 macho_add_oso_symfile.
727 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
728
729 2010-01-14 Joel Brobecker <brobecker@adacore.com>
730
731 Tru64: Dead threads are never deleted.
732 * dec-thread.c (dec_thread_ptid_is_alive): New function.
733 (dec_thread_count_gdb_threads): Fix counter increment.
734 (dec_thread_add_gdb_thread): Fix *listp increment.
735 (resync_thread_list): Fix bug in deletion of dead threads that
736 caused all threads to be deleted, instead of just the dead ones.
737
738 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
739
740 PR python/10705
741
742 * python/python-internal.h: Add lazy_string_object_type
743 definition.
744 (create_lazy_string_object, gdbpy_initialize_lazy_string)
745 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
746 * python/py-value.c (valpy_lazy_string): New function.
747 (convert_value_from_python): Add lazy string conversion.
748 * python/py-prettyprint.c (pretty_print_one_value): Check if
749 return is also a lazy string.
750 (print_string_repr): Add lazy string printing branch.
751 (print_children): Likewise.
752 * python/py-lazy-string.c: New file. Implement lazy strings.
753 * python/python.c (_initialize_python): Call
754 gdbpy_initialize_lazy_string.
755 * varobj.c (value_get_print_value): Add lazy string printing
756 branch. Account for encoding.
757 * c-lang.c (c_printstr): Account for new encoding argument. If
758 encoding is NULL, find encoding suited for type, otherwise use
759 user encoding.
760 * language.h (language_defn): Add encoding argument.
761 (LA_PRINT_STRING): Likewise.
762 * language.c (unk_lang_printstr): Update to reflect new encoding
763 argument to language_defn.
764 * ada-lang.h (ada_printstr): Likewise.
765 * c-lang.h (c_printstr): Likewise.
766 * p-lang.h (pascal_printstr);
767 * f-lang.c (f_printstr): Likewise.
768 * m2-lang.c (m2_printstr): Likewise.
769 * objc-lang.c (objc_printstr): Likewise.
770 * p-lang.c (pascal_printstr): Likewise.
771 * scm-lang.c (scm_printstr): Likewise.
772 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
773 encoding argument.
774 * ada-valprint.c (ada_printstr): Likewise.
775 * f-valprint.c (f_val_print): Likewise
776 * m2-valprint.c (m2_val_print): Likewise.
777 * p-valprint.c (pascal_val_print): Likewise.
778 * expprint.c (print_subexp_standard): Likewise.
779 * valprint.c (val_print_string): Likewise.
780 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
781 (SUBDIR_PYTHON_SRCS): Likewise.
782 (py-lazy-string.o): New rule.
783
784 2010-01-13 Doug Evans <dje@google.com>
785
786 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
787 uninitialized" warning from gcc on local `tree'.
788
789 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
790
791 Implement core awareness.
792
793 * bcache.c (compare_ints): Remove
794 (print_percentage): Use compare_positive_ints.
795 * defs.h (compare_positive_ints): Declare.
796 * linux-nat.h (struct lin_lwp): New field core.
797 (linux_nat_core_of_thread_1): Declare.
798 * linux-nat.c (add_lwp): Init the 'core' field.
799 (linux_nat_wait_1): Record the core.
800 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
801 (linux_nat_add_target): Register the above.
802 * linux-thread-db.c (update_thread_core): New.
803 (thread_db_find_new_threads): Update core information for
804 every thread.
805 * remote.c (struct private_thread_info): New.
806 (free_private_thread_info, demand_private_info): New.
807 (PACKET_qXfer_threads, use_osdata_threads): New.
808 (struct thread_item, threads_parsing_context
809 (start_thread, end_thread, thread_attributes)
810 (thread_children, threads_children, threads_elements): New.
811 (remote_threads_info): Try qXfer:threads before anything
812 else.
813 (remote_protocol_packets): Register qXfer:threads.
814 (remote_open_1): Init use_osdata_threads.
815 (struct stop_reply): New field 'core'.
816 (remote_parse_stop_reply): Parse core number.
817 (process_stop_reply): Record core number.
818 (remote_xfer_partial): Handle qXfer:threads.
819 (remote_core_of_thread): New.
820 (init_remote_ops): Register remote_core_of_thread.
821 (_initialize_remote): Register qXfer:read.
822 * target.c (target_core_of_thread): New
823 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
824 (struct target_ops): New field to_core_of_threads.
825 (target_core_of_thread): Declare.
826 * gdbthread.h (struct thread_info): New field private_dtor.
827 * thread.c (print_thread_info): Report the core.
828 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
829 * utils.c (compare_positive_ints): New.
830 * features/threads.dtd: New.
831 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
832 * mi/mi-main.c (struct collect_cores_data, collect_cores)
833 (do_nothing, free_vector_of_osdata_items)
834 (splay_tree_int_comparator, free_splay_tree): New.
835 (print_one_inferior_data): Implemented printing of selected
836 inferiors. Collect and print cores.
837 (output_cores): New.
838 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
839 thread groups together with --available.
840
841 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
842
843 * configure: Regenerate (for _STRUCTURED_PROC).
844
845 2010-01-12 Joel Brobecker <brobecker@adacore.com>
846
847 Delete dead function.
848 * ada-lang.c (extract_string): Delete. No longer used.
849
850 2010-01-12 Joel Brobecker <brobecker@adacore.com>
851
852 Fix -Wunused warning in dec-thread.c.
853 * dec-thread.c (dec_thread_count_gdb_threads)
854 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
855
856 2010-01-12 Joel Brobecker <brobecker@adacore.com>
857
858 * ada-valprint.c (ada_print_floating): Remove trailing space.
859
860 2010-01-12 Joel Brobecker <brobecker@adacore.com>
861
862 Add support for DW_AT_GNAT_descriptive_type.
863 * gdbtypes.h (enum type_specific_kind): New enum.
864 (struct main_type) [type_specific_field]: New component.
865 [type_specific]: Add new component "gnat_stuff".
866 (struct gnat_aux_type): New type.
867 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
868 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
869 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
870 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
871 (TYPE_SPECIFIC_FIELD): New macros.
872 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
873 type does not hold any cplus-specific data.
874 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
875 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
876 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
877 cplus-specific data.
878 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
879 Set new component TYPE_SPECIFIC_FIELD (type).
880 (gnat_aux_default): New constant.
881 (allocate_gnat_aux_type): New function.
882 (init_type): Add initialization the type-specific stuff for
883 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
884 (print_gnat_stuff): New function.
885 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
886 specific data. Adjust code that prints the contents of the
887 type-specific union using the TYPE_SPECIFIC_FIELD value.
888 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
889 the type cplus stuff for Ada types.
890 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
891 Error out if these routines are called with an Ada type.
892 (read_structure_type, read_array_type, read_subrange_type):
893 Add call to set_descriptive_type.
894 (set_die_type): Initialize the gnat-specific data if necessary.
895 (need_gnat_info, die_descriptive_type, set_descriptive_type):
896 New functions.
897 * ada-lang.c (decode_constrained_packed_array_type): Use
898 decode_constrained_packed_array_type instead of doing a standard
899 lookup to locate a parallel type.
900 (find_parallel_type_by_descriptive_type): New function.
901 (ada_find_parallel_type_with_name): New function.
902 (ada_find_parallel_type): Reimplement using
903 ada_find_parallel_type_with_name.
904 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
905 to check if type has a cplus stuff.
906 * linespec.c (total_number_of_methods): Likewise.
907 * mdebugread.c (new_type): Likewise.
908
909 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
910
911 * NEWS: Document the 0b binary number prefix parsing.
912
913 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
914
915 * objfiles.c (objfile_relocate1): Change the return type to int.
916 Describe the new return value. Return non-zero if data changed.
917 (objfile_relocate): New variable changed. Set it. Call
918 breakpoint_re_set depending on CHANGED.
919
920 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
921
922 Implement binary numbers parsing.
923 * c-exp.y (parse_number): New case 'b' and 'B'.
924
925 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
926 Tristan Gingold <gingold@adacore.com>
927
928 * solib.c (info_sharedlibrary_command): Replace
929 objfile_has_partial_symbols and objfile_has_full_symbols calls by
930 objfile_has_symbols.
931
932 2010-01-10 Joel Brobecker <brobecker@adacore.com>
933
934 * NEWS: Document the improvements made to the mips-irix port.
935
936 2010-01-09 Joel Brobecker <brobecker@adacore.com>
937
938 Fix the documentation of valprint.c:value_print.
939 * valprint.c (value_print): Update the function description to
940 mention that the syntax of the output follows the current_language,
941 not necessarily C.
942
943 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
944
945 Fix displacement of separate debug info files.
946 * objfiles.c (objfile_relocate): Rename to ...
947 (objfile_relocate1): ... here and make it static. Extend the comment.
948 (objfile_relocate): New function.
949 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
950 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
951 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
952 allocated using alloca.
953 * symfile.c (copy_section_addr_info): Remove.
954 (build_section_addr_info_from_objfile): Make it global. New variables
955 addr_bit and mask, use them.
956 * symfile.h (build_section_addr_info_from_objfile): New prototype.
957 (copy_section_addr_info): Remove.
958
959 2010-01-09 Joel Brobecker <brobecker@adacore.com>
960
961 Signal unwinder for mips-irix N32.
962 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
963 tramp-frame.h.
964 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
965 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
966 (SIGCONTEXT_LO_OFF): New macros.
967 (mips_irix_n32_tramp_frame_init): New function.
968 (mips_irix_n32_tramp_frame): New static constant.
969 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
970
971 2010-01-09 Joel Brobecker <brobecker@adacore.com>
972
973 Breakpoint in shared library does not work on mips-irix.
974 * procfs.c: #include "observer.h".
975 (procfs_inferior_created): New function, moving here the code
976 which unsets the syssgi syscall-exit notifications.
977 (procfs_create_inferior): Remove the code which unsets the syssgi
978 syscall-exit notifications. It is too early to do this here.
979 (_initialize_procfs): Attach the procfs_inferior_created observer.
980
981 2010-01-09 Joel Brobecker <brobecker@adacore.com>
982
983 Wrong return convention for arrays (mips-irix).
984 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
985 128 bits or smaller are returned the same way as structs
986 and unions of the the same size.
987
988 2010-01-09 Joel Brobecker <brobecker@adacore.com>
989
990 Cannot set the PC on mips-irix.
991 * irix5-nat.c (fill_gregset): Check regno against the raw PC
992 register number, no the cooked one.
993
994 2010-01-09 Joel Brobecker <brobecker@adacore.com>
995
996 Error while loading core file on mips-irix.
997 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
998 if debugging from a core file.
999
1000 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1001
1002 GDB hangs when attaching to process on mips-irix.
1003 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
1004 attaching to a process.
1005
1006 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1007
1008 Use the correct breakpoint instruction on mips-irix.
1009 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
1010 containing the correct breakpoint instruction to use on mips-irix.
1011 Use it when the osabi is GDB_OSABI_IRIX.
1012
1013 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1014
1015 -Wunused warning in procfs.c (mips-irix only).
1016 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
1017 throughout instead of using praddset and prdelset respectively.
1018
1019 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1020
1021 GDB crash while stepping into function.
1022 * infrun.c (handle_inferior_event): Refetch the current frame
1023 after handling what.main_action, in case that pointer became
1024 dangling.
1025
1026 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1027
1028 Fix build failure of solaris-hosted cross debuggers.
1029 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
1030
1031 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
1032
1033 Fix build failure on sparc-solaris.
1034 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
1035
1036 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1037
1038 Move some symfile code into subroutines.
1039 * symfile.h (relative_addr_info_to_section_offsets)
1040 (addr_info_make_relative): New prototypes.
1041 * symfile.c (default_symfile_offsets): Move a part to ...
1042 (relative_addr_info_to_section_offsets): ... this new function.
1043 (default_symfile_offsets): Call it.
1044 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
1045 this part to ...
1046 (addr_info_make_relative): ... this new function.
1047
1048 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1049
1050 Add from_tty to solib_create_inferior_hook.
1051 * infcmd.c (post_create_inferior): Move solib_add after
1052 solib_create_inferior_hook. Pass from_tty to
1053 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
1054 0 from_tty and comment why.
1055 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
1056 * linux-nat.c (linux_child_follow_fork): Likewise.
1057 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
1058 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
1059 from_tty.
1060 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
1061 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1062 * solib-null.c (null_solib_create_inferior_hook): Likewise.
1063 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1064 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
1065 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1066 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
1067 Pass it to svr4_so_ops.solib_create_inferior_hook.
1068 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
1069 from_tty.
1070 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
1071 solib_add.
1072 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
1073 enable_break.
1074 * solib-target.c (solib_target_solib_create_inferior_hook): New
1075 parameter from_tty.
1076 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
1077 it to ops->solib_create_inferior_hook.
1078 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
1079 Move solib_add after solib_create_inferior_hook, call it now with
1080 from_tty as 0. New comment there.
1081 * solib.h (solib_create_inferior_hook): New parameter from_tty.
1082 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
1083 Likewise.
1084
1085 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
1086
1087 Fix multiexec race.
1088 * infrun.c (handle_inferior_event): Use get_thread_regcache
1089 with events ptid, not get_current_regcache.
1090
1091 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1092
1093 GDB crash with empty executable name (MinGW).
1094 * source.c (openp): Add assert that parameter string is not NULL.
1095 if parameter string is an empty string, then return with a failure
1096 immediately.
1097
1098 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1099
1100 Get rid of support for VAX Floats.
1101 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1102 (ada_vax_float_print_function): Delete.
1103 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1104 (ada_vax_float_print_function): Delete.
1105 * ada-typeprint.c (print_vax_floating_point_type): Delete.
1106 (ada_print_type): Remove support for VAX floats.
1107 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
1108
1109 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1110
1111 * stabsread.c (read_args): Handle zero arguments.
1112
1113 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1114
1115 Cannot find in-tree libiconv.a after reconfigure.
1116 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
1117 that we can use, then cache the path to this archive.
1118 * configure: Regenerate.
1119
1120 2010-01-07 Stan Shebs <stan@codesourcery.com>
1121
1122 Make tracepoint operations go through target vector.
1123 * target.h (enum trace_find_type): New enum.
1124 (struct target_ops): New fields to_trace_init,
1125 to_download_tracepoint, to_download_trace_state_variable,
1126 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
1127 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
1128 to_set_disconnected_tracing.
1129 (target_trace_init): New macro.
1130 (target_download_tracepoint): New macro.
1131 (target_download_trace_state_variable): New macro.
1132 (target_trace_start): New macro.
1133 (target_trace_set_readonly_regions): New macro.
1134 (target_get_trace_status): New macro.
1135 (target_trace_stop): New macro.
1136 (target_trace_find): New macro.
1137 (target_get_trace_state_variable_value): New macro.
1138 (target_set_disconnected_tracing): New macro.
1139 * target.c (update_current_target): Inherit and set defaults for
1140 tracepoint operations.
1141 * tracepoint.c (default_collect): Make globally visible.
1142 (target_is_remote): Remove, along with all calls.
1143 (tvariables_info): Call target_get_trace_state_variable_value.
1144 (remote_set_transparent_ranges): Remove.
1145 (trace_start_command): Call target_trace_init,
1146 target_download_tracepoint, etc.
1147 (download_tracepoint): Remove.
1148 (trace_stop_command): Simplify.
1149 (stop_tracing): Call target_trace_stop.
1150 (get_trace_status): Call target_get_trace_status.
1151 (trace_status_command): Add case for targets that cannot trace.
1152 (finish_tfind_command): Change to take numerical arguments, call
1153 target_trace_find.
1154 (trace_find_command): Update call to finish_tfind_command.
1155 (trace_find_pc_command): Ditto.
1156 (trace_find_tracepoint_command): Ditto.
1157 (trace_find_line_command): Ditto.
1158 (trace_find_range_command): Ditto.
1159 (trace_find_outside_command): Ditto.
1160 (set_disconnected_tracing_value): Call
1161 target_set_disconnected_tracing.
1162 * remote.c: Add protocol encoding bits from tracepoint.c.
1163 (trace_error): Move from tracepoint.c.
1164 (remote_get_noisy_reply): Ditto.
1165 (free_actions_list_cleanup_wrapper): Ditto.
1166 (free_actions_list): Ditto.
1167 (remote_trace_init): New function.
1168 (remote_download_tracepoint): New function.
1169 (remote_download_trace_state_variable): New function.
1170 (remote_trace_set_readonly_regions): New function.
1171 (remote_trace_start): New function.
1172 (remote_get_trace_status): New function.
1173 (remote_trace_stop): New function.
1174 (remote_trace_find): New function.
1175 (remote_download_trace_state_variable): New function.
1176 (remote_set_disconnected_tracing): New function.
1177 (init_remote_ops): Add tracepoint operations.
1178
1179 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
1180
1181 2010-01-07 Tristan Gingold <gingold@adacore.com>
1182
1183 * symfile.c (build_section_addr_info_from_objfile): New function.
1184 (symbol_file_add_separate): Don't use offsets from objfile but
1185 built an addr info.
1186
1187 2010-01-06 Stan Shebs <stan@codesourcery.com>
1188
1189 Support disconnected tracing.
1190 * infcmd.c (detach_command): Ask whether to stop tracing.
1191 * cli/cli-cmds.c (quit_command): Ditto.
1192 * breakpoint.h (struct breakpoint): New field number_on_target.
1193 * breakpoint.c (create_tracepoint_from_upload): New function.
1194 (get_tracepoint_by_number_on_target): New function.
1195 * remote.c (struct remote): New field disconnected_tracing.
1196 (remote_disconnected_tracing_feature): New function.
1197 (remote_protocol_features): Add DisconnectedTracing.
1198 (struct uploaded_tp): New struct.
1199 (uploaded_tps): New global.
1200 (get_uploaded_tp): New function.
1201 (find_matching_tracepoint): New function.
1202 (remote_get_tracing_state): New function.
1203 (remote_start_remote): Call it.
1204 * tracepoint.c (disconnected_tracing): New global.
1205 (trace_start_command): Initialize number_on_target.
1206 (stop_tracing): New function, split out from...
1207 (trace_stop_command): Call stop_tracing.
1208 (get_trace_status): New function, split out from...
1209 (trace_status_command): Call get_trace_status, add info on
1210 disconnection behavior.
1211 (disconnect_or_stop_tracing): New function.
1212 (finish_tfind_command): Translate from number on target.
1213 (trace_find_tracepoint_command): Translate to number on target.
1214 (send_disconnected_tracing_value): New function.
1215 (set_disconnected_tracing): New function.
1216 (_initialize_tracepoint): Add disconnected-tracing variable.
1217 * NEWS: Mention disconnected tracing.
1218
1219 2010-01-06 Tristan Gingold <gingold@adacore.com>
1220
1221 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
1222 parameter to main_objfile. Iterate on all separate debug objfiles.
1223 * symfile.h (symbol_file_add_separate)
1224 (find_separate_debug_file_by_debuglink): Remove parameter names.
1225 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
1226 (reread_symbols): Use free_objfile_separate_debug.
1227 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
1228 Adjust comment.
1229 (objfile_separate_debug_iterate, add_separate_debug_objfile)
1230 (free_objfile_separate_debug): New prototypes.
1231 * objfiles.c (objfile_separate_debug_iterate): New function.
1232 (add_separate_debug_objfile, free_objfile_separate_debug): New
1233 functions.
1234 (free_objfile): Use free_objfile_separate_debug. Adjust for
1235 multiple separate debug objfile.
1236 (objfile_has_symbols): Adjust comment. Iterate on all separate
1237 debug objfiles.
1238 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
1239 debug objfile.
1240 (lookup_minimal_symbol_text): Ditto.
1241 (lookup_minimal_symbol_by_pc_name): Ditto.
1242 (lookup_minimal_symbol_solib_trampoline): Ditto.
1243 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
1244 debug objfiles.
1245
1246 2010-01-05 Stan Shebs <stan@codesourcery.com>
1247
1248 Add fast tracepoints.
1249 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
1250 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
1251 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
1252 * breakpoint.c (tracepoint_type): New function.
1253 (ALL_TRACEPOINTS): Use it.
1254 (should_be_inserted): Ditto.
1255 (bpstat_check_location): Ditto.
1256 (print_one_breakpoint_location): Ditto.
1257 (user_settable_breakpoint): Ditto.
1258 (set_breakpoint_location_function): Ditto.
1259 (disable_breakpoints_in_shlibs): Ditto.
1260 (delete_trace_command): Ditto.
1261 (print_it_typical): Add bp_fast_tracepoint case.
1262 (bpstat_what): Ditto.
1263 (print_one_breakpoint_location): Ditto.
1264 (allocate_bp_location): Ditto.
1265 (mention): Ditto.
1266 (breakpoint_re_set_one): Ditto.
1267 (disable_command): Ditto.
1268 (enable_command): Ditto.
1269 (check_fast_tracepoint_sals): New function.
1270 (break_command_really): Call it.
1271 (ftrace_command): New function.
1272 (_initialize_breakpoint): Add ftrace command.
1273 * gdbarch.sh (fast_tracepoint_valid_at): New.
1274 * gdbarch.h, gdbarch.c: Regenerate.
1275 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
1276 (i386_gdbarch_init): Use it.
1277 * remote.c (struct remote_state): New field fast_tracepoints.
1278 (PACKET_FastTracepoints): New packet config type.
1279 (remote_fast_tracepoint_feature): New function.
1280 (remote_protocol_features): Add FastTracepoints.
1281 (remote_supports_fast_tracepoints): New function.
1282 (_initialize_remote): Add FastTracepoints.
1283 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
1284 * NEWS: Mention fast tracepoints.
1285
1286 2010-01-06 Joel Brobecker <brobecker@adacore.com>
1287
1288 * gdb-gdb.py: New file.
1289
1290 2010-01-05 Michael Snyder <msnyder@vmware.com>
1291
1292 * infrun.c (handle_inferior_event): Fix typo in comment.
1293
1294 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1295
1296 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
1297
1298 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1299
1300 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
1301 and s390x-linux64.
1302 (s390-linux32-expedite): Define.
1303 (s390-linux64-expedite): Define.
1304 (s390x-linux64-expedite): Define.
1305 * features/s390-acr.xml: New file.
1306 * features/s390-fpr.xml: New file.
1307 * features/s390-core32.xml: New file.
1308 * features/s390-core64.xml: New file.
1309 * features/s390x-core64.xml: New file.
1310 * features/s390-linux32.xml: New file.
1311 * features/s390-linux64.xml: New file.
1312 * features/s390x-linux64.xml: New file.
1313 * features/s390-linux32.c: New generated file.
1314 * features/s390-linux64.c: New generated file.
1315 * features/s390x-linux64.c: New generated file.
1316
1317 * regformats/s390-linux32.dat: New generated file.
1318 * regformats/s390-linux64.dat: New generated file.
1319 * regformats/s390x-linux64.dat: New generated file.
1320 * regformats/reg-s390.dat: Remove.
1321 * regformats/reg-s390x.dat: Remove.
1322
1323 * s390-nat.c: Include "auxv.h" and <elf.h>.
1324 (HWCAP_S390_HIGH_GPRS): Define if undefined.
1325 (s390_target_wordsize): New function.
1326 (s390_auxv_parse): Likewise.
1327 (s390_get_hwcap): Likewise.
1328 (s390_read_description): Likewise.
1329 (_initialize_s390_nat): Install s390_auxv_parse and
1330 s390_read_description.
1331
1332 * s390-tdep.c: Include "features/s390-linux32.c",
1333 "features/s390-linux64.c", and "features/s390x-linux64.c".
1334 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
1335 (s390_register_call_saved): New function.
1336 (s390_register_name): Remove.
1337 (s390_register_type): Remove.
1338 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
1339 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
1340 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
1341 (s390_pseudo_register_name): New function.
1342 (s390_pseudo_register_type): New function.
1343 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
1344 Handle full GPR pesudos and varying pseudo register numbers.
1345 (s390_pseudo_register_write): Likewise
1346 (s390x_pseudo_register_read): Remove.
1347 (s390x_pseudo_register_write): Likewise.
1348 (s390_register_group): Remove.
1349 (s390_pseudo_register_group): New function.
1350 (s390_regmap_gregset): Add GPR upper halves.
1351 (s390x_regmap_gregset): Likewise.
1352 (s390_regmap_fpregset): Likewise.
1353 (s390_regmap_upper): New global variable.
1354 (s390_upper_regset): New global variable.
1355 (s390_upper_regset_sections): New global variable.
1356 (s390_regset_from_core_section): Handle GPR upper halves.
1357 (s390_core_read_description): New function.
1358 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
1359 register information. Handle varying pseudo register numbers.
1360 (s390_backchain_frame_unwind_cache): Likewise.
1361 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
1362 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
1363 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
1364 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
1365 Handle varying pseudo register numbers.
1366 (s390_unwind_pc): Handle varying pseudo register numbers.
1367 (s390_dwarf2_prev_register): New function.
1368 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
1369 register information. Handle varying pseudo register numbers.
1370 Install s390_dwarf2_prev_register to unwind full GPRs.
1371 (s390_gdbarch_init): Handle target descriptions. Assign varying
1372 pseudo register numbers. Install s390_adjust_frame_regnum.
1373 (_initialize_s390_tdep): Initialize target descriptions.
1374
1375 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
1376 (S390_NUM_REGS): Redefine to include upper half registers.
1377 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
1378 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
1379 (tdesc_s390_linux32): Add declaration.
1380 (tdesc_s390_linux64): Likewise.
1381 (tdesc_s390x_linux64): Likewise.
1382
1383 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1384
1385 * regset.h (struct core_regset_section): Add HUMAN_NAME.
1386 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
1387 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1388 (ppc_linux_vmx_regset_sections): Likewise.
1389 (ppc_linux_fp_regset_sections): Likewise.
1390
1391 * corelow.c (get_core_register_section): Constify arguments.
1392 (get_core_registers): Use gdbarch_core_regset_sections instead
1393 of hard-coded platform-specific register section names.
1394
1395 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1396
1397 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
1398 a register, assume the least-significant part is used.
1399 (write_pieced_value): Likewise.
1400
1401 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1402
1403 * printcmd.c: Include "arch-utils.h".
1404 (do_one_display): Re-parse expression if current architecture changed.
1405
1406 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1407 Joel Brobecker <brobecker@adacore.com>
1408
1409 * gdbtypes.c (check_typedef): New comment on type length.
1410 * value.c (allocate_value_lazy): Remove the unused atype variable. New
1411 comment on type length.
1412 (value_primitive_field): Keep the original TYPE value, new comment.
1413
1414 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1415
1416 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
1417 p_start. Change != comparisons to > and < comparisons.
1418
1419 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1420
1421 * cli/cli-script.c (process_next_line): Check P2 overrun.
1422
1423 2009-01-01 Joel Brobecker <brobecker@adacore.com>
1424
1425 Update the copyright hearder to add year 2010 for most GDB files.
1426
1427 2009-01-01 Joel Brobecker <brobecker@adacore.com>
1428
1429 Fix build failure in inf-ptrace.c.
1430 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
1431
1432 2010-01-01 Joel Brobecker <brobecker@adacore.com>
1433
1434 * top.c (print_gdb_version): Update copyright year.
1435
1436 2010-01-01 Joel Brobecker <brobecker@adacore.com>
1437
1438 Fix break *FUN'address thread NUM.
1439 * ada-lex.l (task): Expand rule to also match the thread keyword.
1440
1441 2010-01-01 Joel Brobecker <brobecker@adacore.com>
1442
1443 Fix break *FUN'address task NUM.
1444 * ada-lex.l (task): New rule.
1445 * ada-lang.c (valid_task_id): Make sure the Ada task list has
1446 been built before using it.
1447
1448 For older changes see ChangeLog-2009.
1449 \f
1450 Local Variables:
1451 mode: change-log
1452 left-margin: 8
1453 fill-column: 74
1454 version-control: never
1455 coding: utf-8
1456 End:
This page took 0.060937 seconds and 4 git commands to generate.