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