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