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