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