OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [gdb/] [ChangeLog-2007] - Blame information for rev 853

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
2007-12-31  Daniel Jacobowitz  
2
 
3
        * remote.c (unpack_nibble): Use fromhex.
4
        * symtab.c (find_line_common): Always set exact_match.
5
 
6
2007-12-31  Daniel Jacobowitz  
7
 
8
        * hppa-linux-nat.c: Use hppa-linux-offsets.h.
9
        * hppa-linux-offsets.h: New file.
10
 
11
2007-12-30  Pedro Alves  
12
 
13
        * configure.tgt (*-*-mingw32ce*): Set gdb_osabi to
14
        GDB_OSABI_WINCE.
15
        (*-*-mingw* | *-*-cygwin*): Set gdb_osabi to GDB_OSABI_CYGWIN.
16
 
17
2007-12-29  Nick Hudson  
18
 
19
        * i386nbsd-tdep.c: Include "trad-frame.h" and "tramp-frame.h"
20
        (sigtramp_retcode, i386nbsd_sigtramp_offset, i386nbsd_sigtramp_p):
21
        Remove
22
        (i386nbsd_mc_reg_offset): New array.
23
        (i386nbsd_sigtramp_cache_init): New function.
24
        (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2, i386nbsd_sigtramp_si2)
25
        (i386nbsd_sigtramp_si31, i386nbsd_sigtramp_si4): New signal trampoline
26
        frame descriptions.
27
        (i386nbsd_init_abi): Override ABI sigcontext defaults and register
28
        new signal frame unwinders
29
        * Makefile.in (i386nbsd-tdep.o): Update dependencies.
30
        * tramp-frame.h (struct tramp_frame): Allow for 48 instructions
31
 
32
2007-12-29  Joel Brobecker  
33
 
34
        * ada-lang.c (_initialize_ada_language): Attach executable_changed
35
        observer.
36
 
37
2007-12-28  Joel Brobecker  
38
 
39
        * ada-lang.c (ada_evaluate_subexp): Break two large expressions
40
        using temporary variables.
41
 
42
2007-12-27  Joel Brobecker  
43
 
44
        * ada-lang.c (ada_value_cast): New function, extracted out from
45
        the code in ada_evaluate_subexp, case UNOP_CAST.  The code handling
46
        the obscure case has been removed as we think that it is actually
47
        unnecessary.
48
        (ada_evaluate_subexp): Add type case when evaluating an OP_DOUBLE
49
        or an OP_LONG with a non-null expect_type. Replace extracted-out
50
        code with call to new ada_value_cast function.
51
 
52
2007-12-27  Paul Hilfinger  
53
 
54
        * ada-lang.c (ada_evaluate_subexp): Add cases for BINOP_LOGICAL_AND,
55
        BINOP_LOGICAL_OR, UNOP_LOGICAL_NOT, BINOP_BITWISE_IOR,
56
        BINOP_BITWISE_XOR, BINOP_BITWISE_AND.
57
        * language.c (lang_bool_type): Add Ada case.
58
 
59
2007-12-26  Joel Brobecker  
60
 
61
        * dwarf2read.c (read_base_type): Fix obvious &&/|| confusion.
62
 
63
2007-12-26  Luis Machado  
64
 
65
        * dwarf2-frame.c (execute_cfa_program): Call dwarf2_restore_rule
66
        function to handle required actions for the DW_CFA_restore and
67
        DW_CFA_restore_extended instructions.
68
        (dwarf2_restore_rule): New function.
69
 
70
2007-12-24  Joel Brobecker  
71
 
72
        * ada-lang.c (ada_is_character_type): Add recognition of type
73
        "Wide_Wide_Character".
74
 
75
2007-12-24  Joel Brobecker  
76
 
77
        * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
78
        for char and unsigned char types of Ada compilation units.
79
        * ada-lang.c (ada_is_character_type): Always return true if
80
        the type code is TYPE_CODE_CHAR.
81
 
82
2007-12-23  Joel Brobecker  
83
 
84
        * infrun.c (handle_inferior_event): Remove code that made us
85
        stop when stepping into the last line of the current function.
86
 
87
2007-12-22  Pierre Muller  
88
 
89
        * win32-nat.c: Fix PR gdb/2388.
90
        (do_win32_fetch_inferior_registers): Do not overwrite debug register
91
        array dr if debug_registers_changed variable is set.
92
 
93
2007-12-22  Jan Kratochvil  
94
 
95
        * dwarf2read.c (scan_partial_symbols partial_die_parent_scope)
96
        (add_partial_symbol, pdi_needs_namespace, process_die)
97
        (is_type_tag_for_partial, load_partial_dies, new_symbol)
98
        (read_type_die, determine_prefix): Extend the current code of
99
        `DW_TAG_class_type' also for `DW_TAG_interface_type'.
100
 
101
2007-12-21  Paul N. Hilfinger  
102
 
103
        * ada-lang.h (ada_renaming_category): New enumerated type.
104
        (ada_lookup_encoded_symbol): Declare.
105
        (ada_parse_renaming): Declare.
106
        (ada_renaming_type,ada_is_object_renaming)
107
        (ada_simple_renamed_entity): Delete declarations.
108
        * ada-lang.c (ada_parse_renaming): New function to concentrate
109
        extraction of information from renaming symbols.
110
        (parse_old_style_renaming): New function to concentrate
111
        extraction of old-style (purely type-based) renaming information.
112
        (renaming_is_visible): Rename to...
113
        (old_renaming_is_invisible): Rename and change sense of
114
        renaming_is_visible.
115
        (remove_out_of_scope_renamings): Rename to...
116
        (remove_irrelevant_renamings): Renames remove_out_of_scope_renamings
117
        and augments with additional logic to handle cases where the same
118
        object renaming is encoded both as a reference variable and an
119
        encoded renaming.
120
        (ada_renaming_type,ada_is_object_renaming)
121
        (ada_simple_renamed_entity): Delete definitions.
122
        (ada_lookup_encoded_symbol): New function factored out of
123
        ada_lookup_symbol.
124
        (ada_lookup_symbol): Reimplement to call ada_lookup_encoded_symbol.
125
        (wild_match): Don't reject perfect match of prefix.
126
        (ada_find_renaming_symbol): Factor old-style renaming logic into
127
        find_old_style_renaming_symbol.
128
        (find_old_style_renaming_symbol): New name for content of old
129
        ada_find_renaming_symbol.
130
        (ada_prefer_type): Reimplement not to use ada_renaming_type.
131
        * ada-exp.y (write_object_renaming): Change interface.  Reimplement
132
        to use new arguments and ada_parse_renaming.
133
        Correct blocks used to find array index.
134
        (write_var_or_type): Reimplement to use ada_parse_renaming.
135
 
136
2007-12-21  Denis Pilat 
137
 
138
        * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger
139
        value or to PATH_MAX when possible.
140
 
141
2007-12-20  Joel Brobecker  
142
 
143
        * rs6000-tdep.h: Remove defs.h #include.
144
        * Makefile.in (rs6000_tdep_h): Update dependencies.
145
 
146
2007-12-20  Thiago Jung Bauermann  
147
 
148
        * gdbtypes.c (gdbtypes_post_init): Change names of decimal float types
149
        to conform to C extension for decimal float.
150
        * c-lang.c (enum c_primitive_types): Add entries for Decimal Floating
151
        Point types.
152
        (enum cplus_primitive_types): Likewise.
153
        (c_language_arch_info): Add Decimal Floating Point builtin types to
154
        the primitive_type_vector.
155
        (cplus_language_arch_info): Likewise.
156
 
157
2007-12-20  David Ung  
158
            Maciej W. Rozycki  
159
 
160
        * mips-tdep.c (mips_n32n64_push_dummy_call): Sign-extend
161
        integers and 32-bit pointers as required by the ABI.
162
 
163
2007-12-20  Joel Brobecker  
164
 
165
        * symtab.h: Remove "defs.h" #include.
166
        * Makefile.in (symtab_h): Update dependencies.
167
 
168
2007-12-19  Joel Brobecker  
169
 
170
        * symtab.h: #include "defs.h".
171
        (enum language): Remove opaque declaration.
172
        * Makefile.in (symtab_h): Update dependencies.
173
 
174
2007-12-19  Joel Brobecker  
175
 
176
        * language.h (enum exp_opcode): Remove commented out forward
177
        declaration.
178
        (op_error): Delete declaration.
179
 
180
2007-12-19  Joel Brobecker  
181
 
182
        * infrun.c (handle_inferior_event): Fix spelling in comment.
183
 
184
2007-12-18  Daniel Jacobowitz  
185
 
186
        * minsyms.c (lookup_minimal_symbol): Also check the separate
187
        debug objfile.
188
        (lookup_minimal_symbol_text): Likewise.
189
        (lookup_minimal_symbol_solib_trampoline): Likewise.
190
        * symtab.c (lookup_global_symbol_from_objfile): Likewise.
191
 
192
2007-12-18  Vladimir Prus  
193
 
194
        * mi/mi-main.c (mi_cmd_list_features): Announce
195
        the 'pending-breakpoints' feature.
196
 
197
2007-12-17  Jim Blandy  
198
 
199
        * dwarf2read.c (dwarf2_add_field): Correctly scale all byte
200
        offsets obtained from DW_AT_data_member_location before recording
201
        them in FIELD_BITPOS (*fp).
202
 
203
        * dwarf2read.c (attr_form_is_section_offset): Doc fixes.
204
 
205
2007-12-17  Nigel Stephens  
206
            Maciej W. Rozycki  
207
 
208
        * utils.c (string_to_core_addr): If the executable format
209
        indicates that addresses should be sign-extended and there are
210
        only 8 hex digits in the address, then do so.
211
        * Makefile.in (utils.o): Depend on $(gdbcore_h).
212
 
213
2007-12-17  Chris Dearman  
214
 
215
        * symfile.c (init_filename_language_table): Recognise .sx as
216
        an assembler file.
217
 
218
2007-12-17  Joel Brobecker  
219
 
220
        * language.h (enum exp_opcode): Comment out this declaration,
221
        undoing the previous change.
222
 
223
2007-12-17  Luis Machado  
224
 
225
        * breakpoint.c: (watch_command_1): Parse additional optional
226
        "thread" parameter to the watchpoint command and set the
227
        "thread" member of the breakpoint struct.
228
 
229
2007-12-17  Luis Machado  
230
 
231
        * breakpoint.c (bpstat_stop_status): Check an additional
232
        condition before evaluating an expression value.
233
 
234
2007-12-17  Joel Brobecker  
235
 
236
        * language.h (enum exp_opcode): Add forward declaration.
237
        (language_string_char_type, language_lookup_primitive_type_by_name):
238
        Move declaration past declaration of language_defn.
239
 
240
2007-12-16  Daniel Jacobowitz  
241
            Joseph Myers  
242
 
243
        * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
244
        *-*-solaris2.1[[0-9]].
245
        * configure: Regenerate.
246
        * procfs.c (proc_set_current_signal): If redelivering a signal,
247
        reuse the current siginfo if possible.
248
 
249
2007-12-16  Francois-Xavier Coudert  
250
 
251
        * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
252
        (f_type_print_base): Output the type names directly for real and
253
        complex types.
254
 
255
2007-12-16  Vladimir Prus  
256
 
257
        * breakpoint.c (bpstat_have_active_hw_watchpoints):
258
        Remove
259
        (bpstat_stop_status): Remove unused variable
260
        real_breakpoint.
261
        * breakpoint.h (bpstat_have_active_hw_watchpoints):
262
        Remove prototype.
263
 
264
2007-12-16  Vladimir Prus  
265
 
266
        * target.h (target_pid_or_tid_to_str): Remove.
267
        * infrun.c (handle_inferior_event):
268
        Use target_pid_to_str instead of
269
        target_pid_or_tid_to_str.
270
        (normal_stop): Likewise.
271
 
272
2007-12-16  Jan Kratochvil  
273
 
274
        * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
275
        DWARF3 equivalent `DW_AT_bit_stride'.
276
        Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
277
 
278
2007-12-16  Joel Brobecker  
279
 
280
        * mi/mi-main.c: Remove code that was commented out in 1999.
281
 
282
2007-12-16  Joel Brobecker  
283
 
284
        * expression.h (parse_expression_in_context): Delete prototype.
285
        * parse.c (parse_expression_in_context): Delete.
286
 
287
2007-12-14  Vladimir Prus  
288
 
289
        Add support for pending breakpoints in MI.
290
        * gdb.h (gdb_breakpoint): Add parameter pending.
291
        * breakpoint.c (gdb_breakpoint): Add parameter pending.
292
        * mi/mi-cmd-break.c (mi_break_insert): Change
293
        comment to refer to manual.  Add support for
294
        the -f flag, for pending breakpoint.
295
 
296
2007-12-14  Vladimir Prus  
297
 
298
        * breakpoint.c (break_command_really): New, copied
299
        from break_command_1. New parameters COND_STRING, THREAD
300
        PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
301
        The previous FLAG parameter split into TEMPFLAG and
302
        HARDWAREFLAG.
303
        When PARSE_CONDITION_AND_THREAD is not set, duplicate
304
        the passed condition string.
305
        (struct captured_breakpoint_args): Remove
306
        (do_captured_breakpoint): Remove.
307
        (break_command_1): Relay to break_command_really.
308
        (gdb_breakpoint): Relay to break_command_really.
309
 
310
2007-12-13  Michael Snyder  
311
 
312
        * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
313
 
314
2007-12-13  Jim Blandy  
315
 
316
        * dwarf2read.c (attr_form_is_constant): New function.
317
        (dwarf2_add_field): Use it and attr_form_is_section_offset to
318
        recognize DW_AT_data_member_location attributes.  Use
319
        dwarf2_get_attr_constant_value when the attribute is a constant.
320
 
321
        * dwarf2read.c (attr_form_is_section_offset): New function.
322
        (dwarf_add_member_fn, read_common_block, read_partial_die)
323
        (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
324
 
325
2007-12-12  Jim Blandy  
326
 
327
        Remove unused support for target-based exception catching.
328
        * target.h (struct target_ops): Delete
329
        to_enable_exception_callback and to_get_current_exception_event
330
        members.
331
        (target_enable_exception_callback)
332
        (target_get_current_exception_event): Delete macros.
333
        * target.c (update_current_target): Remove code to inherit and
334
        default those members.
335
        (debug_to_enable_exception_callback)
336
        (debug_to_get_current_exception_event): Delete functions.
337
        (setup_target_debug): Don't install those methods.
338
        * inf-child.c (inf_child_enable_exception_callback)
339
        (inf_child_get_current_exception_event): Delete dummy functions.
340
        (inf_child_target): Don't install them in the target vector.
341
        * breakpoint.h (enum bptype): Delete bp_catch_catch,
342
        bp_catch_throw.
343
        * breakpoint.c (cover_target_enable_exception_callback)
344
        (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
345
        functions.
346
        (insert_bp_location, update_breakpoints_after_exec)
347
        (remove_breakpoint, ep_is_catchpoint, print_it_typical)
348
        (bpstat_stop_status, bpstat_what)
349
        (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
350
        (user_settable_breakpoint, allocate_bp_location)
351
        (disable_watchpoints_before_interactive_call_start)
352
        (enable_watchpoints_after_interactive_call_stop, mention)
353
        (delete_breakpoint, breakpoint_re_set_one, disable_command)
354
        (enable_command): Remove exception catchpoint cases.
355
        (catch_exception_command_1): Don't try target-based exception
356
        handling.
357
        * stack.c (catch_info): Call print_frame_label_vars
358
        unconditionally.
359
 
360
2007-12-12  Nigel Stephens  
361
            Maciej W. Rozycki  
362
 
363
        * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
364
        of setting deprecated_register_valid array directly.
365
 
366
2007-12-07  Maciej W. Rozycki  
367
 
368
        * mips-tdep.c (extended_offset): Fix a comment.
369
 
370
2007-12-07  Maciej W. Rozycki  
371
 
372
        * target.c (update_current_target): Inherit to_log_command.
373
        * target.h (struct target_ops). Add to_log_command.
374
        (target_log_command): New macro.
375
        * top.c (execute_command): Call target_log_command() rather than
376
        serial_log_command().
377
        * monitor.c (init_base_monitor_ops): Initialize to_log_command.
378
        * remote-m32r-sdi.c (init_m32r_ops): Likewise.
379
        * remote-mips.c (_initialize_remote_mips): Likewise.
380
        * remote.c (init_remote_ops): Likewise.
381
 
382
2007-12-06  Daniel Jacobowitz  
383
 
384
        * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
385
        (handle_inferior_event): Clear stop_stack_dummy earlier.
386
 
387
2007-12-06  Jim Blandy  
388
 
389
        * addrmap.c (addrmap_splay_tree_remove): New function.
390
        (addrmap_mutable_set_empty): Use it.
391
 
392
        * addrmap.c, addrmap.h: Update to GPLv3.
393
 
394
        * addrmap.c (struct addrmap): Make the referenced function table
395
        const.
396
        (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
397
        Don't use designated initializers.
398
 
399
        * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
400
        (addrmap_mutable_relocate): Use internal_error, not abort.
401
 
402
        * NEWS: Mention support for non-contiguous lexical blocks and
403
        function bodies.
404
 
405
2007-12-06  Markus Deuling  
406
 
407
        * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
408
        ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
409
        gdbarch as parameter.
410
        * gdbarch.{c,h}: Regenerate.
411
 
412
        * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
413
        Replace current_gdbarch by gdbarch.
414
        * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
415
        * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
416
        (rs6000_dwarf2_reg_to_regnum): Likewise.
417
        * mips-tdep.c (mips_stab_reg_to_regnum)
418
        (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
419
        * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
420
        * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
421
        * i386-tdep.c (i386_dbx_reg_to_regnum)
422
        (i386_svr4_reg_to_regnum): Likewise
423
        * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
424
        (h8300_dbg_reg_to_regnum): Likewise.
425
        * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
426
        * arch-utils.c (no_op_reg_to_regnum): Likewise.
427
        * arch-utils.h (no_op_reg_to_regnum): Likewise.
428
        * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
429
        * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
430
        * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
431
        * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
432
        * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
433
 
434
2007-12-06  Vladimir Prus  
435
 
436
        Localize infrun use of remove_breakpoints.
437
        * infrun.c (handle_inferior_event): Remove
438
        calls to remove_breakpoints, except where needed to
439
        communicate change of breakpoint locations to inferior.
440
        (keep_going): If steppping over breakpoint, remove
441
        breakpoints.
442
 
443
2007-12-06  Vladimir Prus  
444
 
445
        Clarify infrun variable naming.
446
        * infrun.c (trap_expected): Rename
447
        to stepping_over_breakpoint.  Document.
448
        (stepping_past_breakpoint): Remove.
449
        (stepping_past_breakpoint_ptdi): Renamed
450
        to deferred_step_ptid.
451
        (struct execution_control_state): Rename
452
        the another_trap field to stepping_over_breakpoint.
453
        (struct inferior_status): Rename the trap_expected
454
        field to stepping_over_breakpoint.
455
        (clear_proceed_status, proceed)
456
        (init_execution_control_state, context_switch)
457
        (handle_inferior_event, currently_stepping)
458
        (keep_going, save_inferior_status)
459
        (restore_inferior_status, prepare_to_proceed): Adjust.
460
        * gdbthread.h (struct thread_info): Rename the
461
        trap_expected field to stepping_over_breakpoint.
462
        * thread.c (load_infrun_state, save_infrun_state):
463
        Adjust.
464
 
465
2007-12-06  Pierre Muller  
466
 
467
        * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
468
        Add "gdb_stdint.h" dependency required for uintptr_t type use.
469
        (handle_output_debug_string): Use uintptr_t typecast.
470
        (handle_exception): Ditto.
471
        (win32_xfer_memory): Ditto.
472
        * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
473
 
474
2007-12-04  Jim Blandy  
475
 
476
        Support lexical blocks and function bodies that occupy
477
        non-contiguous address ranges.
478
        * addrmap.c, addrmap.h: New files.
479
        * block.h (struct addrmap): New forward declaration.
480
        (struct blockvector): New member, 'map'.
481
        (BLOCKVECTOR_MAP): New accessor macro.
482
        * block.c: #include "addrmap.h"
483
        (blockvector_for_pc_sect): If the blockvector we've found has
484
        an address map, use it instead of searching the blocks.
485
        * buildsym.c: #include "addrmap.h"
486
        (pending_addrmap_obstack, pending_addrmap_interesting): New static
487
        variables.
488
        (really_free_pendings): If we have a pending addrmap, free it too.
489
        (record_block_range): New function.
490
        (make_blockvector): If we have an interesting pending addrmap,
491
        record it in the new blockvector.
492
        (start_symtab, buildsym_init): Assert that there is no pending
493
        addrmap now; we should have cleaned up any addrmaps we'd built
494
        previously.
495
        (end_symtab): If there is a pending addrmap left over that didn't
496
        get included in the blockvector, free it.
497
        * buildsym.h (struct addrmap): New forward declaration.
498
        (record_block_range): New prototype.
499
        * objfiles.c: #include "addrmap.h".
500
        (objfile_relocate): Relocate the blockvector's address map, if
501
        present.
502
        * dwarf2read.c (dwarf2_record_block_ranges): New function.
503
        (read_func_scope, read_lexical_block_scope): Call it.
504
        * Makefile.in (SFILES): Add addrmap.c.
505
        (addrmap_h): New header dependency variable.
506
        (COMMON_OBS): Add addrmap.o.
507
        (addrmap.o): New rule.l
508
        (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
509
 
510
        * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
511
        pointer to the block, not its index in the blockvector.
512
        (block_for_pc_sect): Use the returned block, instead of looking it
513
        up ourselves.
514
        * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
515
        declarations.
516
        * breakpoint.c (resolve_sal_pc): Use returned block, instead of
517
        looking it up ourselves.
518
        * stack.c (print_frame_label_vars): Disable function, which
519
        depends on the block's index.
520
 
521
        * buildsym.c (finish_block): Return the block we've built.
522
        * buildsym.h (finish_block): Update prototype.
523
 
524
        * defs.h (CORE_ADDR_MAX): New constant.
525
 
526
2007-12-04  Ulrich Weigand  
527
 
528
        * coffread.c (decode_type): Use builtin_type_int32 instead
529
        of FT_INTEGER fundamental type for array range index type.
530
        (decode_base_type): Use builtin types of current_gdbarch
531
        instead of fundamental types.
532
 
533
        * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
534
        (read_file_scope): Do not initialize ftypes member.
535
        (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
536
        (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
537
        fundamental type for array range index type.
538
        (read_tag_string_type): Likewise for string range index type.
539
        Also, do not overwrite FT_CHAR type with new string type.
540
        (read_base_type): If DW_AT_name is missing, create unnamed type
541
        with given properties instead of looking for a fundamental type.
542
        Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
543
        DW_ATE_complex_float types.
544
        (read_subrange_type): Create new type to represent missing
545
        DW_AT_type instead of looking for a fundamental type.
546
        (die_type): Use builtin type to represent "void" instead of
547
        looking for a fundamental type.
548
 
549
        * stabsread.c (define_symbol): Use builtin types to represent
550
        'r' and 'i' floating-point and integer constants.
551
 
552
        * gdbtypes.c (lookup_fundamental_type): Remove.
553
        * gdbtypes.h (lookup_fundamental_type): Remove prototype.
554
        (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
555
        FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
556
        FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
557
        FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
558
        FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
559
        FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
560
        FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
561
        FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
562
        FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
563
        * objfiles.c (struct objfile): Remove fundamental_types member.
564
        * symfile.c (reread_symbols): Do not clear fundamental_types.
565
 
566
        * language.h (struct language_defn): Remove la_fund_type member.
567
        (create_fundamental_type): Remove.
568
        * language.c (unk_lang_create_fundamental_type): Remove.
569
        (unknown_language_defn, auto_language_defn,
570
        local_language_defn): Adapt initializer.
571
        * ada-lang.c (ada_create_fundamental_type): Remove.
572
        (ada_language_defn): Adapt initializer.
573
        * c-lang.h (c_create_fundamental_type): Remove prototype.
574
        * c-lang.c (c_create_fundamental_type): Remove.
575
        (c_language_defn, cplus_language_defn, asm_language_defn,
576
        minimal_language_defn): Adapt initializer.
577
        * f-lang.c (f_create_fundamental_type): Remove.
578
        (f_language_defn): Adapt initializer.
579
        * jv-lang.c (java_create_fundamental_type): Remove.
580
        (java_language_defn): Adapt initializer.
581
        * m2-lang.c (m2_create_fundamental_type): Remove.
582
        (m2_language_defn): Adapt initializer.
583
        * objc-lang.c (objc_create_fundamental_type): Remove.
584
        (objc_language_defn): Adapt initializer.
585
        * p-lang.h (pascal_create_fundamental_type): Remove prototype.
586
        * p-lang.c (pascal_create_fundamental_type): Remove.
587
        (pascal_language_defn): Adapt initializer.
588
        * scm-lang.c (scm_language_defn): Adapt initializer.
589
 
590
2007-12-04  Maciej W. Rozycki  
591
 
592
        * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
593
        * features/mips64-cpu.xml: Likewise.
594
        * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
595
        * features/mips64-fpu.xml: Likewise.
596
        * features/mips-linux.c: Regenerate.
597
        * features/mips64-linux.c: Regenerate.
598
 
599
2007-12-04  Maciej W. Rozycki  
600
 
601
        * target.h (target_find_new_threads): Fix definition.
602
 
603
2007-12-02  Pierre Muller  
604
 
605
        * win32-nat.c (win32_resume): Set the trace bit
606
        in the thread identified by inferior_ptid.
607
 
608
 
609
2007-12-02  Pierre Muller  
610
 
611
        * win32-nat.c (open_process_used): New static variable.
612
        (win32_init_thread_list): Remove call to CloseHandle for thread.
613
        (win32_delete_thread): Ditto.
614
        (fake_create_process): Set open_process_used if OpenProcess call is
615
        successful.
616
        (get_win32_debug_event): Do not close process handle.
617
        (do_initial_win32_stuff): Set open_process_used to zero.
618
        (win32_mourn_inferior): Call CloseHandle for current_process_handle if
619
        open_process_used is set.
620
        (win32_kill_inferior): Do not close process and main_thread handles.
621
 
622
2007-11-30  Daniel Jacobowitz  
623
 
624
        * remote.c (remote_cmdlist): New variable.
625
        (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
626
        (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
627
        (remote_buffer_add_string, remote_buffer_add_bytes)
628
        (remote_buffer_add_int, remote_hostio_parse_result)
629
        (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
630
        (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
631
        (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
632
        (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
633
        (remote_file_delete, remote_put_command, remote_get_command)
634
        (remote_delete_command, remote_command): New functions.
635
        (_initialize_remote): Register new packets and commands.
636
        * Makefile.in (gdb_fileio_h): New variable.
637
        (remote.o): Update.
638
        (SUBDIR_MI_OBS): Add mi-cmd-target.o.
639
        (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
640
        (mi-cmd-target.o): New rule.
641
        * mi/mi-cmd-target.c: New file.
642
        * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
643
        and target-file-put.
644
        * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
645
        (mi_cmd_target_file_delete): Declare.
646
        * remote.h (remote_file_put, remote_file_get, remote_file_delete):
647
        Declare.
648
        * NEWS: Describe new file transfer support.
649
 
650
2007-11-30  Vladimir Prus  
651
 
652
        * infrun.c (handle_inferior_event): Don't
653
        ignore beakpoints if trap_expected is set.
654
 
655
2007-11-30  Vladimir Prus  
656
 
657
        Make insert_breakpoints return void.
658
        * breakpoint.h (insert_breakpoints): Change
659
        return type to void.
660
        * breakpoint.c (insert_breakpoints): Change
661
        return type to void.  Rename local return_val
662
        variable to error.
663
        * infrun.c (keep_going): Instead of checking
664
        return value from insert_breakpoints, catch exception.
665
 
666
2007-11-29  Vladimir Prus  
667
 
668
        Stop infrun from tracking breakpoint insertion status.
669
 
670
        The checks of breakpoints_inserted before calling
671
        remove_breakpoints are removed, as remove_breakpoint
672
        won't touch uninserted breakpoints. In a number of places,
673
        we're interested if a breakpoint is inserted at particular
674
        PC, and we now use breakpoint_inserted_here_p.  In a few
675
        places, insert_breakpoints can be called unconditionally,
676
        since it won't try to insert already inserted breakpoint.
677
 
678
        * breakpoint.h (regular_breakpoint_inserted_here_p): New
679
        declaration.
680
        * breakpoint.c (regular_breakpoint_inserted_here_p): New.
681
        (breakpoint_inserted_here_p): Use
682
        regular_breakpoint_inserted_here_p.
683
        * infrun.c (breakpoints_inserted): Remove.
684
        (resume): Don't check for breakpoints_inserted before
685
        remove_hw_watchpoints. Use breakpoint_inserted_here_p.
686
        (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
687
        (handle_inferior_event): Don't use breakpoints_inserted.
688
        Use breakpoints_meant_to_be_inserted and
689
        breakpoints_inserted_here_p.
690
        (insert_step_resume_breakpoint_at_sal, keep_going): Use
691
        breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
692
        (normal_stop): Don't check for breakpoints_inserted.  Don't
693
        set breakpoints_inserted.
694
        (keep_going): Don't check for breakpoints_inserted.
695
        (insert_step_resume_breakpoint_at_sal): Don't insert
696
        breakpoints
697
 
698
2007-11-28  Jim Blandy  
699
 
700
        * breakpoint.c (watch_command_1): When the watchpoint isn't local
701
        to any frame, initialize watchpoint_frame using null_frame_id, not
702
        a memset.
703
 
704
2007-11-28  Vladimir Prus  
705
 
706
        * infrun.c (resume): Set right thread even if
707
        stepping over breakpoint using software single step.
708
 
709
2007-11-28  Nick Roberts  
710
 
711
        * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
712
        (mi_print_value_p): Guard against type = NULL.
713
 
714
2007-11-27  Thiago Jung Bauermann  
715
 
716
        * dfp.c (decimal_from_string): Remove superfluous newline from
717
        error string.
718
        (decimal_to_string): Likewise.
719
        * printcmd.c (printf_command): Change string buffer to use
720
        MAX_DECIMAL_STRING constant.
721
        * value.c (value_from_decfloat): Likewise.
722
 
723
2007-11-27  Ulrich Weigand  
724
 
725
        * Makefile.in (ALL_TARGET_OBS): Remove object files that require
726
        64-bit CORE_ADDR and BFD support, move them to ...
727
        (ALL_64_TARGET_OBS): ... this new variable.
728
        * configure.ac: Check for --enable-64-bit-bfd option.  Only add
729
        64-bit targets with --enable-targets=all if BFD supports 64-bit.
730
        * configure: Regenerate.
731
 
732
        * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
733
        all elf32-i386 executables, only cygwin core files.
734
 
735
2007-11-25  Jan Kratochvil  
736
 
737
        * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
738
        code with its variables OBJFILE, CU_HEADER and OBFD into ...
739
        (dwarf2_ranges_read): ... a new function.
740
        (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
741
 
742
2007-11-24  Pedro Alves  
743
 
744
        * win32-nat.c (DR6_CLEAR_VALUE): New define.
745
        (thread_info_struct): Rename suspend_count to suspended, to be
746
        used as a flag.
747
        (thread_rec): Only suspend the thread if it wasn't suspended by
748
        gdb before.  Warn if suspending failed.
749
        (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
750
        (win32_continue): Set Dr6 to DR6_CLEAR_VALUE.  Update usage of the
751
        `suspended' flag.  Do ContinueDebugEvent after resuming the
752
        suspended threads, not before.  Set threads' contexts before
753
        resuming them, not after.
754
        (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
755
 
756
2007-11-23  Vladimir Prus  
757
 
758
        * breakpoint.c (insert_breakpoints)
759
        (insert_bp_location): Remove stale comments.
760
 
761
2007-11-23  Maciej W. Rozycki  
762
 
763
        * mips-linux-tdep.h: Fix some formatting.
764
 
765
2007-11-21  Markus Deuling  
766
 
767
        * stack.c (print_args_stub): Use get_frame_arch to get at the current
768
        architecture and replace current_gdbarch.
769
        (frame_info): Likewise.
770
 
771
2007-11-21  Nick Roberts  
772
 
773
        * varobj.c (c_variable_editable, cplus_variable_editable)
774
        (java_variable_editable, variable_editable): Delete.
775
        (varobj_editable_p): Replace above functions with one language
776
        independent function.  Check for an lvalue.
777
        (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
778
        (struct language_specific): Delete variable_editable field.
779
 
780
        * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
781
 
782
        * varobj.h: Add extern for varobj_editable_p.
783
 
784
2007-11-20  Vladimir Prus  
785
 
786
        Remove unused breakpoint fields.
787
        * breakpoint.h (struct breakpoint): Remove
788
        from_tty and flag fields.
789
        * breakpoint.c (break_command_1): Don't set
790
        from_tty and flag field set of breakpoint.
791
        (create_ada_exception_breakpoint): Don't set
792
        the from_tty field.
793
 
794
2007-11-20  David Ung  
795
            Maciej W. Rozycki  
796
 
797
        * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
798
        instruction.
799
 
800
2007-11-20  Vladimir Prus  
801
 
802
        * infrun.c (resume): Clarify logic that
803
        decides if a single thread must be resumed. Add
804
        comments.
805
 
806
2007-11-20  Vladimir Prus  
807
 
808
        * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
809
        Make static.
810
 
811
2007-11-19  Markus Deuling  
812
 
813
        * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
814
        * gdbarch.{c,h}: Regenerate.
815
 
816
        * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
817
        * score-tdep.c (score_register_sim_regno): Likewise.
818
        * sim-regno.h (one2one_register_sim_regno): Likewise.
819
 
820
        * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
821
        Replace current_gdbarch by gdbarch.
822
        * sh-tdep.c (sh_sh2a_register_sim_regno)
823
        (sh_dsp_register_sim_regno): Likewise.
824
        * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
825
        * mips-tdep.c (mips_register_sim_regno): Likewise.
826
        * m32c-tdep.c (m32c_register_sim_regno): Likewise.
827
        * frv-tdep.c (frv_register_sim_regno): Likewise.
828
        * arm-tdep.c (arm_register_sim_regno): Likewise.
829
        * remote-sim.c (one2one_register_sim_regno): Likewise.
830
 
831
2007-11-16  Ulrich Weigand  
832
 
833
        * configure.ac (--enable-targets): New configure option.
834
        Collect gdb_target_obs of multiple targets into TARGET_OBS.
835
        Call configure.tgt multiple times, using $targ as operand.
836
        * configure.tgt: Operate on $targ instead of $target.
837
        * configure: Regenerate.
838
        * Makefile.in (ALL_TARGET_OBS): Define.
839
 
840
        * NEWS: Mention --enable-targets option.
841
 
842
2007-11-16  Ulrich Weigand  
843
 
844
        * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
845
        current architecture is not MIPS.
846
 
847
2007-11-16  Ulrich Weigand  
848
 
849
        * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
850
        to construct error message if no argument was supplied.
851
 
852
2007-11-16  Ulrich Weigand  
853
 
854
        * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
855
        (i386nbsd_aout_regset_from_core_section): Likewise.
856
        (i386nbsd_aout_init_abi): Likewise.
857
        (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
858
 
859
        * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
860
        (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
861
 
862
2007-11-16  Ulrich Weigand  
863
 
864
        * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
865
        (amd64fbsd_sigtramp_end_addr): Likewise.
866
 
867
        * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
868
        (iq2000_address_to_pointer): Likewise.
869
        (iq2000_frame_prev_register): Likewise.
870
        (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
871
        instead of regcache_cooked_read into CORE_ADDR variable.
872
        (iq2000_return_value): Fix argument types.
873
 
874
        * m32r-rom.c (m32r_load_section): Fix printf argument type.
875
        (m32r_load): Likewise.
876
 
877
        * m68kbsd-tdep.c: Include "gdbtypes.h".
878
        * Makefile.in: Update dependencies.
879
 
880
        * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
881
 
882
        * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
883
        lmo->l_addr_size element.
884
 
885
        * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
886
        (m32r_insert_breakpoint): Likewise.
887
        (m32r_remove_breakpoint): Likewise.
888
        (m32r_insert_watchpoint): Likewise.
889
        (m32r_remove_watchpoint): Likewise.
890
        (m32r_load): Fix printf argument type.
891
 
892
        * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
893
        argument type.
894
        (xtensa_frame_this_id): Do not cast pointers to "int" for output.
895
        (xtensa_frame_prev_register): Likewise.
896
        (xtensa_push_dummy_call): Likewise.
897
 
898
2007-11-16  Ulrich Weigand  
899
 
900
        * config/alpha/alpha-linux.mt: Remove file.
901
        * config/alpha/alpha.mt: Remove file.
902
        * config/alpha/alpha-osf1.mt: Remove file.
903
        * config/alpha/fbsd.mt: Remove file.
904
        * config/alpha/nbsd.mt: Remove file.
905
        * config/alpha/obsd.mt: Remove file.
906
        * config/arm/embed.mt: Remove file.
907
        * config/arm/linux.mt: Remove file.
908
        * config/arm/nbsd.mt: Remove file.
909
        * config/arm/obsd.mt: Remove file.
910
        * config/arm/wince.mt: Remove file.
911
        * config/avr/avr.mt: Remove file.
912
        * config/cris/cris.mt: Remove file.
913
        * config/frv/frv.mt: Remove file.
914
        * config/h8300/h8300.mt: Remove file.
915
        * config/i386/cygwin.mt: Remove file.
916
        * config/i386/fbsd64.mt: Remove file.
917
        * config/i386/fbsd.mt: Remove file.
918
        * config/i386/i386gnu.mt: Remove file.
919
        * config/i386/i386.mt: Remove file.
920
        * config/i386/i386sol2.mt: Remove file.
921
        * config/i386/linux64.mt: Remove file.
922
        * config/i386/linux.mt: Remove file.
923
        * config/i386/mingw.mt: Remove file.
924
        * config/i386/nbsd64.mt: Remove file.
925
        * config/i386/nbsd.mt: Remove file.
926
        * config/i386/nto.mt: Remove file.
927
        * config/i386/obsd64.mt: Remove file.
928
        * config/i386/obsd.mt: Remove file.
929
        * config/i386/sol2-64.mt: Remove file.
930
        * config/ia64/ia64.mt: Remove file.
931
        * config/ia64/linux.mt: Remove file.
932
        * config/iq2000/iq2000.mt: Remove file.
933
        * config/m32c/m32c.mt: Remove file.
934
        * config/m32r/linux.mt: Remove file.
935
        * config/m32r/m32r.mt: Remove file.
936
        * config/m68hc11/m68hc11.mt: Remove file.
937
        * config/m68k/linux.mt: Remove file.
938
        * config/m68k/monitor.mt: Remove file.
939
        * config/m68k/nbsd.mt: Remove file.
940
        * config/m68k/obsd.mt: Remove file.
941
        * config/m88k/obsd.mt: Remove file.
942
        * config/mep/mep.mt: Remove file.
943
        * config/mips/embed.mt: Remove file.
944
        * config/mips/irix5.mt: Remove file.
945
        * config/mips/irix6.mt: Remove file.
946
        * config/mips/linux.mt: Remove file.
947
        * config/mips/nbsd.mt: Remove file.
948
        * config/mips/obsd64.mt: Remove file.
949
        * config/mn10300/linux.mt: Remove file.
950
        * config/mn10300/mn10300.mt: Remove file.
951
        * config/mt/mt.mt: Remove file.
952
        * config/pa/hppahpux.mt: Remove file.
953
        * config/pa/hppa.mt: Remove file.
954
        * config/pa/linux.mt: Remove file.
955
        * config/pa/obsd.mt: Remove file.
956
        * config/powerpc/aix.mt: Remove file.
957
        * config/powerpc/linux.mt: Remove file.
958
        * config/powerpc/nbsd.mt: Remove file.
959
        * config/powerpc/obsd.mt: Remove file.
960
        * config/powerpc/ppc-eabi.mt: Remove file.
961
        * config/s390/s390.mt: Remove file.
962
        * config/score/embed.mt: Remove file.
963
        * config/sh/embed.mt: Remove file.
964
        * config/sh/linux.mt: Remove file.
965
        * config/sh/nbsd.mt: Remove file.
966
        * config/sh/obsd.mt: Remove file.
967
        * config/sh/sh64.mt: Remove file.
968
        * config/sparc/embed.mt: Remove file.
969
        * config/sparc/fbsd.mt: Remove file.
970
        * config/sparc/linux64.mt: Remove file.
971
        * config/sparc/linux.mt: Remove file.
972
        * config/sparc/nbsd64.mt: Remove file.
973
        * config/sparc/nbsd.mt: Remove file.
974
        * config/sparc/obsd64.mt: Remove file.
975
        * config/sparc/obsd.mt: Remove file.
976
        * config/sparc/sol2-64.mt: Remove file.
977
        * config/sparc/sol2.mt: Remove file.
978
        * config/sparc/sparc64.mt: Remove file.
979
        * config/sparc/sparc.mt: Remove file.
980
        * config/spu/spu.mt: Remove file.
981
        * config/v850/v850.mt: Remove file.
982
        * config/vax/nbsd.mt: Remove file.
983
        * config/vax/obsd.mt: Remove file.
984
        * config/vax/vax.mt: Remove file.
985
        * config/xstormy16/xstormy16.mt: Remove file.
986
        * config/xtensa/xtensa.mt: Remove file.
987
 
988
        * configure.tgt (gdb_target_cpu): Remove.  Do not set anywhere.
989
        (gdb_target): Likewise.
990
        (gdb_target_obs): Document.  Set for every target to contents
991
        of TDEPFILES in former .mt makefile fragment.
992
 
993
        * configure.ac (TARGET_OBS): Define.
994
        (target_makefile_frag, gdb_target_cpu): Do not define.
995
        * configure: Regenerate.
996
 
997
        * Makefile.in (MT_FLAGS): Remove.
998
        (GLOBAL_CFLAGS): Update.
999
        (TARGET_OBS): Substitute from configure.
1000
        (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
1001
        (@target_makefile_frag@): Remove.
1002
 
1003
2007-11-16  Ulrich Weigand  
1004
 
1005
        * config/arm/embed.mt (SIM_OBS, SIM): Remove.
1006
        * config/avr/avr.mt (SIM_OBS, SIM): Remove.
1007
        * config/frv/frv.mt (SIM_OBS, SIM): Remove.
1008
        * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
1009
        * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
1010
        * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
1011
        * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
1012
        * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
1013
        * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
1014
        * config/mips/embed.mt (SIM_OBS, SIM): Remove.
1015
        * config/mips/linux.mt (SIM_OBS, SIM): Remove.
1016
        * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
1017
        * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
1018
        * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
1019
        * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
1020
        * config/powerpc/ppc-sim.mt: Remove file.
1021
        * config/sh/embed.mt (SIM_OBS, SIM): Remove.
1022
        * config/sh/linux.mt (SIM_OBS, SIM): Remove.
1023
        * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
1024
        * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
1025
        * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
1026
        * config/v850/v850.mt (SIM_OBS, SIM): Remove.
1027
        * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
1028
 
1029
        * configure.tgt (gdb_sim): Document variable.
1030
        (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
1031
        (avr-*-*): Likewise.
1032
        (frv-*-*): Likewise.
1033
        (h8300-*-*): Likewise.
1034
        (iq2000-*-*): Likewise.
1035
        (m32c-*-*): Likewise.
1036
        (m32r*-*-linux*): Likewise.
1037
        (m32r*-*-*): Likewise.
1038
        (m68hc11*-*-*|m6811*-*-*): Likewise.
1039
        (mips*-*-*): Likewise.
1040
        (mips*-*-linux*): Likewise.
1041
        (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
1042
        (mn10300-*-*): Likewise.
1043
        (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
1044
        (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
1045
        (powerpc*-*-*): Use ppc-eabi target.  Conditionally set gdb_sim.
1046
        (sh*): Set gdb_sim.
1047
        (sh-*-linux*): Likewise.
1048
        (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
1049
        (sh64-*-elf*): Likewise.
1050
        (sparc-*-rtems*): Likewise.
1051
        (v850*-*-elf): Likewise.
1052
        (xstormy16-*-*): Likewise.
1053
 
1054
        * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
1055
        (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
1056
        * configure: Regenerate.
1057
        * Makefile.in (SIM, SIM_OBS): Substitute from configure.
1058
        (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
1059
 
1060
2007-11-16  Ulrich Weigand  
1061
 
1062
        * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
1063
        (arm*-*-*): Do not set obsolete build_rdi_share variable.
1064
 
1065
        (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
1066
        (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
1067
        (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
1068
        (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
1069
        (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
1070
 
1071
        (xscale-*-*): Merge into arm*-*-* case.
1072
        (fido-*-elf*): Merge into m68*-*-elf* case.
1073
        (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
1074
        m68*-*-uclinux*): Merge cases.
1075
        (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
1076
        (sh-*-coff*, sh-*-elf*): Merge into sh* case.
1077
 
1078
2007-11-16  Ulrich Weigand  
1079
 
1080
        * configure.tgt: Reformat main case statement.
1081
 
1082
2007-11-16  Ulrich Weigand  
1083
 
1084
        * configure.ac (hostfile, targetfile): Remove.
1085
        (GDB_XM_FILE, GDB_TM_FILE): Do not define.
1086
        (xm_h, tm_h): Likewise.
1087
        (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
1088
        * configure, config.in: Regenerate.
1089
 
1090
        * Makefile.in (xm_h, tm_h): Remove.  Update dependencies.
1091
        (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
1092
        (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
1093
        * defs.h: Do not include "xm.h" or "tm.h".
1094
 
1095
        * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
1096
        * gdbarch.c: Regenerate.
1097
 
1098
        * config/score/embed.mt: Remove obsolete comment.
1099
 
1100
2007-11-16  Markus Deuling  
1101
 
1102
        * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
1103
        as parameter.
1104
        * gdbarch.{c,h}: Regenerate.
1105
 
1106
        * alpha-tdep.c (alpha_cannot_fetch_register)
1107
        (alpha_cannot_store_register): Add gdbarch as parameter. Replace
1108
        current_gdbarch by gdbarch.
1109
        * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
1110
        (crisv32_cannot_fetch_register)
1111
        (crisv32_cannot_store_register): Likewise.
1112
        * arch-utils.c (cannot_register_not): Likewise.
1113
        * arch-utils.h (cannot_register_not): Likewise.
1114
        * hppa-tdep.c (hppa32_cannot_store_register)
1115
        (hppa32_cannot_store_register, hppa64_cannot_store_register)
1116
        (hppa64_cannot_fetch_register): Likewise.
1117
        * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1118
        (mipsnbsd_cannot_store_register): Likewise.
1119
 
1120
2007-11-16  Markus Deuling  
1121
 
1122
        * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
1123
        the current architecture by regcache.
1124
        * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1125
        * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1126
        (fetch_register, supply_vrregset, fetch_ppc_registers)
1127
        (store_altivec_register, store_spe_register, store_register)
1128
        (fill_vrregset, store_ppc_registers): Likewise.
1129
        * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1130
        * win32-nat.c (do_win32_fetch_inferior_registers)
1131
        (do_win32_store_inferior_registers): Likewise.
1132
        * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1133
        * remote-m32r-sdi.c (m32r_fetch_registers)
1134
        (m32r_store_registers): Likewise.
1135
        * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
1136
 
1137
        * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
1138
        gdbarch.
1139
        * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1140
        * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1141
        (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
1142
        (ppc64_sysv_abi_return_value): Likewise.
1143
        * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
1144
        * m2-lang.c (build_m2_types): Likewise.
1145
        * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
1146
        * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1147
        * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1148
        * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
1149
 
1150
        * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
1151
        get at the current architecture by frame_info.
1152
        * gcore.c (derive_stack_segment): Likewise.
1153
 
1154
        * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
1155
        (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
1156
        gdbarch to GETREGS_SUPPLIES call.
1157
 
1158
2007-11-16  Ulrich Weigand  
1159
 
1160
        * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
1161
        (elf_symtab_read): Rename DYNAMIC argument to TYPE.  Do not access
1162
        ELF-private symbol data when processing synthetic symbols.  Use
1163
        udata.p to get at size of ppc64 synthetic 'dot' symbols.
1164
        (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
1165
 
1166
2007-11-15  Doug Evans  
1167
 
1168
        * buildsym.h (subfiles): Move ...
1169
        * buildsym.c (subfiles): ... to here and make static.
1170
 
1171
        * symmisc.c (maintenance_info_symtabs): Print linetable info.
1172
 
1173
2007-11-15  Markus Deuling  
1174
 
1175
        * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
1176
 
1177
2007-11-15  Markus Deuling  
1178
 
1179
        * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
1180
        expression and use get_frame_arch to replace current_gdbarch by frame's
1181
        architecture.
1182
        * arm-tdep.h (LOWEST_PC): Remove
1183
 
1184
2007-11-15  Vladimir Prus  
1185
 
1186
        Apply const qualifier to some users of bp_location.
1187
        * breakpoint.h (struct bpstats): Make
1188
        the breakpoint_at field point at const bp_location.
1189
        * breakpoint.c (bpstat_alloc): Accept const
1190
        bp_location.
1191
        (breakpoint_here_p, breakpoint_inserted_here_p)
1192
        (software_breakpoint_inserted_here_p)
1193
        (breakpoint_thread_match, bpstat_stop_status)
1194
        (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
1195
        const bp_location for iteration.
1196
        (print_it_typical, print_bp_stop_message): Use
1197
        const bp_location variable.
1198
 
1199
2007-11-15  Vladimir Prus  
1200
 
1201
        Make mark_breakpoints_out static.
1202
        * breakpoint.h (mark_breakpoints_out): Remove
1203
        declaration.
1204
        * breakpoint.c (mark_breakpoints_out): Make static.
1205
 
1206
2007-11-15  Vladimir Prus  
1207
 
1208
        Prevent clear_command from directly modifying breakpoint list.
1209
        * Makefile.in (breakpoint_h): Update dependency.
1210
        * breakpoint.c (clear_command): Do not remove
1211
        breakpoints from breakpoint_chain.  Collect breakpoints
1212
        to delete in a vector.
1213
        * breakpoint.h (breakpoint_p): New typedef for pointer to
1214
        breakpoint.  Register vector of breakpoint_p.
1215
 
1216
2007-11-15  Vladimir Prus  
1217
 
1218
        Remove 'run_cleanup'.
1219
        * defs.h (do_run_cleanups, make_run_cleanup): Remove
1220
        declarations.
1221
        * infcmd.c (run_command_1): Call clear_solib instead
1222
        of do_run_cleanups.
1223
        * jv-lang.c (java_rerun_cleanup): Remove, for lack of
1224
        any use.
1225
        * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
1226
        (update_solib_lib): Don't setup run cleanup.
1227
        (no_shared_libraries): Call clear_solib, not do_clear_solib.
1228
        * utils.c (run_cleanup_chain, make_run_cleanup)
1229
        (do_run_cleanups): Remove.
1230
 
1231
2007-11-15  Vladimir Prus  
1232
 
1233
        Remove CLEAR_SOLIB use.
1234
        * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1235
        * infcmd.c (attach_command): Likewise.
1236
 
1237
2007-11-14  Doug Evans  
1238
 
1239
        * buildsym.c (start_subfile,start_symtab): Doc fixes.
1240
 
1241
2007-11-13  Thiago Jung Bauermann  
1242
 
1243
        * tui/tui-data.c (tui_prev_win): Guard against NULL.
1244
 
1245
2007-11-12  Markus Deuling  
1246
 
1247
        * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1248
        obsolete comment.
1249
        (verify_gdbarch, gdbarch_dump): Likewise.
1250
        (do_read): Update comment.
1251
        (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1252
        (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1253
        * gdbarch.{c,h}: Regenerate.
1254
 
1255
2007-11-12  Markus Deuling  
1256
 
1257
        * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1258
        (ARGS_FIRST_REG): Remove.
1259
        (areg_numer): New function.
1260
        (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1261
        (xtensa_extract_return_value, xtensa_store_return_value)
1262
        (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1263
        (AREG_NUMBER): Remove.
1264
        (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1265
        (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1266
        (xtensa_push_dummy_call): Update use of ARG_NOF.
1267
        (extract_call_winsize): Add gdbarch as parameter. Replace
1268
        current_gdbarch by gdbarch.
1269
        (xtensa_extract_return_value, xtensa_store_return_value): Update call
1270
        of extract_call_winsize.
1271
 
1272
2007-11-10  Joel Brobecker  
1273
 
1274
        * NEWS: Add entry for new set/show print frame-args command.
1275
 
1276
2007-11-09  Kevin Buettner  
1277
 
1278
        * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1279
        register number to map.  Adjust warning check and error/warning
1280
        return value code to match expectations of this function's callers.
1281
 
1282
2007-11-09  Joel Brobecker  
1283
 
1284
        * stack.c (print_this_frame_argument_p): Handle arguments passed
1285
        by reference properly.
1286
 
1287
2007-11-09  Joel Brobecker  
1288
 
1289
        * stack.c (print_frame_arguments_choices): New static global.
1290
        (print_frame_arguments): Likewise.
1291
        (print_this_frame_argument_p): New function.
1292
        (print_frame_args): Print the argument value only when appropriate.
1293
        (_initialize_task): Add new "set/show print frame-arguments" command.
1294
 
1295
2007-11-09  Luis Machado  
1296
 
1297
        * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1298
        saved_dabr_value assignment to the correct position.
1299
 
1300
2007-11-09  Markus Deuling  
1301
 
1302
        * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1303
        * arch-utils.h (generic_convert_register_p): Likewise.
1304
 
1305
2007-11-09  Markus Deuling  
1306
 
1307
        * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1308
        * ia64-tdep.c (ia64_convert_register_p): Likewise.
1309
        * i387-tdep.c (i387_convert_register_p): Likewise.
1310
        * i387-tdep.h (i387_convert_register_p): Likewise.
1311
        * alpha-tdep.c (alpha_convert_register_p): Likewise.
1312
        * gdbarch.{c,h}: Regenerate.
1313
 
1314
        * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1315
        Replace current_gdbarch by gdbarch.
1316
        * mips-tdep.c (mips_convert_register_p): Likewise.
1317
        * m68k-tdep.c (m68k_convert_register_p): Likewise.
1318
        * i386-tdep.c (i386_convert_register_p): Likewise.
1319
 
1320
2007-11-08  Aleksandar Ristovski  
1321
 
1322
        * gdb_string.h: Include .
1323
 
1324
2007-11-08  Vladimir Prus  
1325
 
1326
        * breakpoint.c (break_command_1): Remove
1327
        pending_bp parameter.
1328
        (create_breakpoint): Likewise.
1329
        (create_breakpoints): Likewise. Adjust call to
1330
        create_breakpoint.
1331
        (break_command_1): Likewise. Adjust call to
1332
        create_breakpoints.
1333
        (do_captured_breakpoint): Adjust call to
1334
        create_breakpoints.
1335
        (break_command, tbreak_command, hbreak_command)
1336
        (stopin_command, stopat_command): Adjust call
1337
        to break_command_1.
1338
 
1339
2007-11-07  Joseph Myers  
1340
            Daniel Jacobowitz  
1341
 
1342
        * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1343
        struct values smaller than one doubleword; left-align those
1344
        larger.  Pass structs containing a single floating-point value in
1345
        registers.
1346
 
1347
2007-11-07  Joseph Myers  
1348
            Daniel Jacobowitz  
1349
 
1350
        * gdbtypes.c (floatformats_ibm_long_double): New.
1351
        * gdbtypes.h (floatformats_ibm_long_double): Declare.
1352
        * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1353
        split_half field.
1354
        * mips-tdep.c (n32n64_floatformat_always_valid,
1355
        floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1356
        Remove.
1357
        (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1358
        floatformats_n32n64_long.
1359
        * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1360
        double.
1361
        * doublest.c (convert_floatformat_to_doublest,
1362
        convert_doublest_to_floatformat): Handle split floating-point
1363
        formats.
1364
        * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1365
        double arguments.
1366
        (ppc64_sysv_abi_push_dummy_call): Likewise.
1367
        (do_ppc_sysv_return_value): Handle IBM long double return.
1368
 
1369
2007-11-07  Vladimir Prus  
1370
 
1371
        Fix crash when a variable object being deleted
1372
        has any of its children deleted previously.
1373
 
1374
        * varobj.c (delete_variable_1): Don't recurse
1375
        into deleted children.
1376
 
1377
2007-11-07  Markus Deuling  
1378
 
1379
        * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1380
        * gdbarch.{c,h}: Regenerate.
1381
        * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1382
        Replace current_gdbarch by gdbarch.
1383
        * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1384
        * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1385
        * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1386
 
1387
2007-11-07  Markus Deuling  
1388
 
1389
        * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1390
        get_regcache_arch to get at the current architecture by regcache.
1391
        * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1392
        to get at the current architecture by frame_info.
1393
        * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1394
        at the current architecture by regcache.
1395
        * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1396
        the current architecture by frame_info.
1397
        (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1398
        * aix-thread.c (special_register_p): Add gdbarch as parameter.
1399
        (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1400
        caller of special_register_p.
1401
 
1402
2007-11-07  Markus Deuling  
1403
 
1404
        * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1405
        current architecture by frame_info.
1406
 
1407
2007-11-07  Markus Deuling  
1408
 
1409
        * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1410
 
1411
2007-11-07  Markus Deuling  
1412
 
1413
        * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1414
        get at the current architecture by regcache.
1415
        (SUBOFF): Add gdbarch to macro definition.
1416
 
1417
2007-11-07  Markus Deuling  
1418
 
1419
        * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1420
        * gdbarch.{c,h}: Regenerate.
1421
 
1422
        * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1423
        Replace current_gdbarch by gdbarch.
1424
        * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1425
        * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1426
        * score-tdep.c (score_breakpoint_from_pc): Likewise.
1427
        * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1428
        * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1429
        * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1430
        * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1431
 
1432
        * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1433
        parameter.
1434
        * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1435
        * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1436
        * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1437
        * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1438
        * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1439
        * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1440
        * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1441
        * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1442
        * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1443
        * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1444
        * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1445
        * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1446
        * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1447
        * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1448
        * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1449
        * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1450
        * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1451
        * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1452
        * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1453
        * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1454
 
1455
        * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1456
        Replace current_gdbarch by gdbarch.
1457
        (rs6000_software_single_step): Use get_frame_arch to get at the
1458
        current architecture by frame_info. Add gdbarch to
1459
        rs6000_breakpoint_from_pc call.
1460
 
1461
2007-11-07  Markus Deuling  
1462
 
1463
        * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1464
        macro CURRENT_VARIANT by its expression.
1465
        (CURRENT_VARIANT): Remove.
1466
        (frv_check_watch_resources): Add gdbarch parameter.
1467
 
1468
2007-11-07  Markus Deuling  
1469
 
1470
        * MAINTAINERS (Write After Approval): Add self.
1471
 
1472
2007-11-05  Ulrich Weigand  
1473
 
1474
        * features/rs6000/power-core.xml: Use uint32 as register type.
1475
        * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1476
        * features/rs6000/powerpc-32.c: Regenerate.
1477
        * features/rs6000/powerpc-403.c: Regenerate.
1478
        * features/rs6000/powerpc-403gc.c: Regenerate.
1479
        * features/rs6000/powerpc-505.c: Regenerate.
1480
        * features/rs6000/powerpc-602.c: Regenerate.
1481
        * features/rs6000/powerpc-603.c: Regenerate.
1482
        * features/rs6000/powerpc-604.c: Regenerate.
1483
        * features/rs6000/powerpc-64.c: Regenerate.
1484
        * features/rs6000/powerpc-7400.c: Regenerate.
1485
        * features/rs6000/powerpc-750.c: Regenerate.
1486
        * features/rs6000/powerpc-860.c: Regenerate.
1487
        * features/rs6000/powerpc-e500.c: Regenerate.
1488
 
1489
2007-11-05  Joel Brobecker  
1490
 
1491
        * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1492
 
1493
2007-11-05  Joel Brobecker  
1494
 
1495
        * breakpoint.h (create_solib_load_event_breakpoint)
1496
        (create_solib_unload_event_breakpoint)
1497
        (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1498
        (create_exec_event_catchpoint): Delete declaration.
1499
        * breakpoint.c (create_solib_load_event_breakpoint)
1500
        (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1501
        (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1502
        (create_exec_event_catchpoint): Make static.
1503
 
1504
2007-11-05  Joel Brobecker  
1505
 
1506
        * breakpoint.h (set_breakpoint_sal): Remove declaration.
1507
        * breakpoint.c (set_breakpoint_sal): Delete.
1508
 
1509
2007-11-05  Joel Brobecker  
1510
 
1511
        * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1512
        (make_blockvector): Likewise. Remove FIXME comment.
1513
 
1514
2007-11-05  Luis Machado  
1515
 
1516
        * printcmd.c: (printf_command): Add support for new DFP
1517
        modifiers %H, %D and %DD.
1518
        * configure.ac: Add check for DECFLOAT printf support.
1519
        * configure: Regenerated.
1520
 
1521
2007-11-02  Ulrich Weigand  
1522
 
1523
        * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1524
        (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1525
        TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1526
        (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1527
        HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1528
        (has_vtable, primary_base_class, virtual_base_list_length,
1529
        virtual_base_list_length_skip_primaries, virtual_base_index,
1530
        virtual_base_index_skip_primaries, class_index_in_primary_list,
1531
        count_virtual_fns): Remove prototypes.
1532
        * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1533
        virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1534
        virtual_base_list_length_skip_primaries, virtual_base_index,
1535
        virtual_base_index_skip_primaries, class_index_in_primary_list,
1536
        count_virtual_fns): Remove.
1537
 
1538
        * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1539
        (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1540
        (cp_print_value_fields): Remove support for HP aCC vtables.
1541
        (cp_print_value): Likewise.
1542
        * c-typeprint.c (c_type_print_base): Likewise.
1543
 
1544
        * value.h (find_rt_vbase_offset): Remove prototype.
1545
        * valops.c (find_rt_vbase_offset): Remove.
1546
        (search_struct_method): Remove support for HP aCC vtables.
1547
        (find_method_list): Likewise.
1548
 
1549
2007-11-02  Ulrich Weigand  
1550
 
1551
        * language.h (struct language_defn): Remove la_builtin_type_vector
1552
        and string_char_type members.
1553
        * language.c (language_string_char_type): No longer consult
1554
        la->string_char_type.
1555
        (language_lookup_primitive_type_by_name): No longer consult
1556
        current_language->la_builtin_type_vector.
1557
 
1558
        * language.c (unknown_language_defn, auto_language_defn,
1559
        local_language_defn): Adapt initializer.
1560
        * ada-lang.c (ada_language_defn): Likewise.
1561
        * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1562
        minimal_language_defn): Likewise.
1563
        * f-lang.c (f_language_defn): Likewise.
1564
        * jv-lang.c (java_language_defn): Likewise.
1565
        * m2-lang.c (m2_language_defn): Likewise.
1566
        * objc-lang.c (objc_language_defn): Likewise.
1567
        * p-lang.c (pascal_language_defn): Likewise.
1568
        * scm-lang.c (scm_language_defn): Likewise.
1569
 
1570
2007-11-02  Markus Deuling  
1571
 
1572
        * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1573
        current_gdbarch by gdbarch.
1574
        (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1575
        current architecture by frame_info.
1576
        * frame.h (frame_id_inner): Add gdbarch parameter.
1577
        * stack.c (return_command): Use get_frame_arch to get at the current
1578
        architecture by frame_info. Update call of frame_id_inner.
1579
        * infrun.c (handle_inferior_event): Likewise.
1580
        * dummy-frame.c (dummy_frame_push):  Use get_regcache_arch to get at the
1581
        current architecture by regcache. Update call of frame_id_inner.
1582
 
1583
2007-11-02  Markus Deuling  
1584
 
1585
        * gdbarch.sh (register_name): Add gdbarch parameter.
1586
        * gdbarch.{c,h}: Regenerate.
1587
 
1588
        * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1589
        (tdesc_register_name): Replace current_gdbarch by gdbarch.
1590
        * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1591
 
1592
        * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1593
        * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1594
        * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1595
        * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1596
        * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1597
        (mt_registers_info): Replace current_gdbarch by gdbarch.
1598
        (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1599
        * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1600
        current_gdbarch by gdbarch.
1601
        (mips_register_name): Add gdbarch to tdesc_register_name call.
1602
        * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1603
        current_gdbarch by gdbarch.
1604
        (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1605
        * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1606
        current_gdbarch by gdbarch.
1607
        * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1608
        * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1609
        * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1610
        (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1611
        architecture by frame_info.
1612
        * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1613
        * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1614
        * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1615
        parameter.
1616
        * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1617
        (h8300sx_register_name): Add gdbarch parameter.
1618
        * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1619
        gdbarch parameter. Replace current_gdbarch by gdbarch.
1620
        (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1621
        * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1622
        * arm-tdep.c (arm_register_name): Add gdbarch paramete
1623
        * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1624
        caller.
1625
        * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1626
        * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1627
        * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1628
        (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1629
        of alpha_register_name.
1630
        * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1631
        * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1632
        current_gdbarch by gdbarch.
1633
        (i386_register_type): Replace ?current_gdbarch by gdbarch.
1634
        * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1635
        * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1636
 
1637
        * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1638
        (m68hc11_register_reggroup_p): Add gdbarch to call of
1639
        m68hc11_register_name.
1640
        * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1641
        (am33_2_register_name): Add gdbarch parameter.
1642
        (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1643
        architecture by frame_info.
1644
        (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1645
        * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1646
        current_gdbarch by gdbarch.
1647
        * score-tdep.c (score_register_name): Add gdbarch parameter.
1648
        (score_return_value, score_push_dummy_call): Replace current_gdbarch
1649
        by gdbarch.
1650
        * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1651
        (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1652
        (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1653
        (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1654
        and update caller. Replace current_gdbarch by gdbarch.
1655
        (sh64_extract_return_value, sh64_store_return_value): Use
1656
        get_regcache_arch to get at the current architecture by regcache.
1657
        * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1658
        (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1659
        (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1660
        (sh_sh3_dsp_register_name, sh_sh4_register_name)
1661
        (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1662
        parameter.
1663
        (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1664
        (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1665
        current_gdbarch by gdbarch.
1666
        (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1667
        get_regcache_arch to get at the current architecture by regcache.
1668
        * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1669
        * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1670
        * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1671
        parameter.
1672
        (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1673
        * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1674
        current_gdbarch by gdbarch.
1675
        (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1676
        (xtensa_frame_prev_register): Add gdbarch parameter to
1677
        xtensa_register_name call.
1678
 
1679
2007-10-31  Ulrich Weigand  
1680
 
1681
        * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1682
        find_solib_trampoline_target if PC is not in .plt section.
1683
 
1684
2007-10-31  Ulrich Weigand  
1685
 
1686
        * elfread.c (elf_symtab_read): When constructing a solib trampoline
1687
        minimal symbol from an undefined dynamic symbol, use proper section.
1688
 
1689
2007-10-31  Markus Deuling  
1690
 
1691
        * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1692
        to get at the current architecture by regcache.
1693
 
1694
2007-10-30  Markus Deuling  
1695
 
1696
        * libunwind-frame.c (libunwind_frame_sniffer)
1697
        libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1698
        (libunwind_frame_cache): Use get_frame_arch to get at the current
1699
        architecture by frame_info.
1700
        (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1701
 
1702
2007-10-30  Markus Deuling  
1703
 
1704
        * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1705
        at the current architecture by frame_info.
1706
 
1707
2007-10-30  Markus Deuling  
1708
 
1709
        * inf-child.c (inf_child_fetch_inferior_registers): Use
1710
        get_regcache_arch to get at the current architecture by regcache.
1711
 
1712
2007-10-30  Markus Deuling  
1713
 
1714
        * inf-ptrace.c (inf_ptrace_fetch_registers)
1715
        (inf_ptrace_fetch_register, inf_ptrace_store_register)
1716
        (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1717
        current architecture by regcache.
1718
 
1719
2007-10-30  Markus Deuling  
1720
 
1721
        * hpux-thread.c (hpux_thread_fetch_registers)
1722
        (hpux_thread_store_registers): Use get_regcache_arch to get at the
1723
        current architecture by regcache.
1724
 
1725
2007-10-30  Markus Deuling  
1726
 
1727
        * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1728
        current architecture by frame_info.
1729
 
1730
2007-10-30  Markus Deuling  
1731
 
1732
        * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1733
        (go32_store_registers): Use get_regcache_arch to get at the current
1734
        architecture by regcache.
1735
 
1736
2007-10-30  Markus Deuling  
1737
 
1738
        * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1739
 
1740
2007-10-30  Markus Deuling  
1741
 
1742
        * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1743
        to get at the current architecture by frame_info.
1744
 
1745
2007-10-30  Markus Deuling  
1746
 
1747
        * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1748
 
1749
2007-10-30  Markus Deuling  
1750
 
1751
        * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1752
        the current architecture by regcache.
1753
 
1754
2007-10-30  Markus Deuling  
1755
 
1756
        * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1757
        current architecture by regcache.
1758
 
1759
2007-10-30  Markus Deuling  
1760
 
1761
        * bsd-uthread.c (bsd_uthread_fetch_registers)
1762
        (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1763
        current architecture by regcache.
1764
 
1765
2007-10-30  Markus Deuling  
1766
 
1767
        * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1768
        get_frame_arch to get at the current architecture by frame_info.
1769
 
1770
2007-10-30  Markus Deuling  
1771
 
1772
        * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1773
 
1774
2007-10-30  Markus Deuling  
1775
 
1776
        * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1777
        (store_regs): Use get_regcache_arch to get at the current architecture
1778
        by regcache.
1779
 
1780
2007-10-30  Markus Deuling  
1781
 
1782
        * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1783
        to get at the current architecture by regcache.
1784
 
1785
2007-10-30  Markus Deuling  
1786
 
1787
        * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1788
        (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1789
        the current architecture by regcache.
1790
 
1791
2007-10-30  Markus Deuling  
1792
 
1793
        * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1794
        gdbarch.
1795
 
1796
2007-10-30  Daniel Jacobowitz  
1797
 
1798
        * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1799
        soft float and vector ABIs.  Support the generic vector ABI for
1800
        AltiVec types.
1801
        (do_ppc_sysv_return_value): Likewise.  Correct argument types and
1802
        casts.
1803
        (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1804
        supported.
1805
        * ppc-tdep.h (enum powerpc_vector_abi): New.
1806
        (struct gdbarch_tdep): Add soft_float and vector_abi.
1807
        * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1808
        (powerpc_soft_float_global, powerpc_vector_strings)
1809
        (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1810
        (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1811
        (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1812
        (powerpc_set_vector_abi): New.
1813
        (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1814
        commands.
1815
        * Makefile.in (elf_ppc_h): New.
1816
        (rs6000-tdep.o): Update.
1817
 
1818
2007-10-29  Carlos Eduardo Seo  
1819
 
1820
        * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1821
        swapped offsets and VRSAVE offset.
1822
        (ppc64_linux_reg_offsets): Corrected swapped offsets.
1823
        (ppc32_linux_vrregset): Added.
1824
        (ppc_linux_regset_from_core_section): Added support for
1825
        .reg-ppc-vmx section.
1826
        * ppc-tdep.h (ppc_altivec_support_p): Declare.
1827
        (ppc_supply_vrregset): Declare.
1828
        (ppc_collect_vrregset): Declare.
1829
        * rs6000-tdep.c (ppc_altivec_support_p): Added.
1830
        (ppc_supply_vrregset): Added.
1831
        (ppc_collect_vrregset): Added.
1832
        * corelow.c (get_core_registers): Added support for
1833
        .reg-ppc-vmx section.
1834
 
1835
2007-10-29  Joel Brobecker  
1836
 
1837
        GDB 6.7.1 released.
1838
 
1839
2007-10-26  Jim Blandy  
1840
 
1841
        * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1842
        deleted function.
1843
 
1844
        * tracepoint.c (tracepoint_operation): Report the deletion event
1845
        after we have unlinked the tracepoint from the list, and use the
1846
        proper tracepoint number.
1847
 
1848
        * ax-gdb.c (expr_to_agent): Delete unused function.
1849
        (expr_to_address_and_size): Delete #if 0'd function.
1850
        * ax-gdb.h (expr_to_agent): Delete declaration.
1851
 
1852
        * ax-gdb.c (gen_cast): Remove redundant assignment to
1853
        value->type.  Doc fix.
1854
 
1855
        * ax-general.c (gen_traced_pop, gen_int_literal)
1856
        (gen_usual_arithmetic): Check for typedefs.
1857
 
1858
2007-10-26  Joel Brobecker  
1859
 
1860
        * parse.c (prefixify_expression): Minor reformatting.
1861
 
1862
2007-10-25  Daniel Jacobowitz  
1863
 
1864
        * version.in: Use dot instead of dash.
1865
 
1866
2007-10-25  Daniel Jacobowitz  
1867
 
1868
        * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1869
 
1870
2007-10-25  Pedro Alves  
1871
 
1872
        * memory-map.c (parse_memory_map): Don't use an empty struct
1873
        initializer.
1874
 
1875
2007-10-25  Pedro Alves  
1876
 
1877
        * signals/signals.c (signals): Update pointer to enum
1878
        target_signal declaration.
1879
 
1880
2007-10-25  Wu Zhou  
1881
            Carlos Eduardo Seo  
1882
            Jim Blandy  
1883
 
1884
        * dwarf2read.c (read_partial_die): check the value
1885
        of DW_AT_calling_convention in Fortran programs.
1886
 
1887
2007-10-25  Wu Zhou  
1888
            Thiago Jung Bauermann  
1889
 
1890
        * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1891
        floating point in YYSTYPE union.
1892
        (DECFLOAT) Add token and expression element handling code.
1893
        (parse_number): Parse DFP constants, which end with suffix 'df',
1894
        'dd' or 'dl'.  Return DECFLOAT.
1895
        * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1896
        handle OP_DECFLOAT.
1897
        * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1898
        for DFP constants.
1899
        (union exp_element): Add decfloatconst to represent DFP
1900
        elements, which is 16 bytes by default.
1901
        * parse.c (write_exp_elt_decfloatcst): New function to write a
1902
        decimal float const into the expression.
1903
        (operator_length_standard): Set operator length for OP_DECFLOAT
1904
        to 4.
1905
        * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1906
        * valarith.c (value_neg): Add code to handle the negation
1907
        operation of DFP values.
1908
        * value.c (value_from_decfloat): New function to get the value
1909
        from a decimal floating point.
1910
        * value.h (value_from_decfloat): Prototype.
1911
 
1912
2007-10-25  Wu Zhou  
1913
            Thiago Jung Bauermann  
1914
 
1915
        * c-lang.c (c_create_fundamental_type): Create fundamental
1916
        types for DFP.
1917
        * c-typeprint.c (c_type_print_varspec_prefix): Add
1918
        TYPE_CODE_DECFLOAT to no prefix needed case.
1919
        (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1920
        suffix needed case.
1921
        * c-valprint.c (c_val_print): Call print_decimal_floating to
1922
        print DFP values.
1923
        * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1924
        attribute code and return TYPE_CODE_DECFLOAT.
1925
        (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1926
        * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1927
        builtin_decdouble and builtin_declong.
1928
        * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1929
        type code for DFP.
1930
        (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1931
        types, for decimal floating point.
1932
        (FT_NUM_MEMBERS):  Increment, new types added.
1933
        (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1934
        and builtin_declong.
1935
        * valprint.c (print_decimal_floating): New function to print DFP
1936
        values.
1937
        * value.h (print_decimal_floating): Prototype.
1938
 
1939
2007-10-25  Wu Zhou  
1940
            Thiago Jung Bauermann  
1941
 
1942
        * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1943
        LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1944
        (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1945
        (INSTALLED_LIBS): Add -ldecnumber in.
1946
        (CLIBS): Add LIBDECNUMBER in.
1947
        (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1948
        headers.
1949
        (dfp_h): New macros for decimal floating point.
1950
        (dfp.o): New target.
1951
        (COMMON_OBS): Add dfp.o in.
1952
        (c-exp.o): Add dfp_h as dependency.
1953
        (valprint.o): Add dfp_h as dependency.
1954
        (value.o): Add dfp_h as dependency.
1955
        * dfp.h: New header file for decimal floating point support in
1956
        GDB.
1957
        * dfp.c: New source file for decimal floating point support in
1958
        GDB.  Implement decimal_from_string and decimal_to_string based
1959
        on libdecnumber API.
1960
        * configure.ac: Add AC_C_BIGENDIAN test.
1961
        * config.in, configure: Regenerate.
1962
 
1963
2007-10-25  David Ung  
1964
            Maciej W. Rozycki  
1965
 
1966
        PR exp/1926
1967
        * infcmd.c (registers_info): Check for a user register before
1968
        calling target's gdbarch_print_registers_info().  If found to be
1969
        so, extract the implicit value of user register and call
1970
        print_scalar_formatted().
1971
        * Makefile.in: (infcmd.o): Add $(user_regs_h).
1972
 
1973
2007-10-25  Joel Brobecker  
1974
 
1975
        * NEWS: Document status of hppa64-hpux support.
1976
 
1977
2007-10-24  Ulrich Weigand  
1978
 
1979
        * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1980
        set_solib_ops to install SVR4 operations.
1981
        (_initialize_svr4_solib): Do not set current_target_so_ops.
1982
 
1983
        * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1984
        * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1985
 
1986
2007-10-24  Ulrich Weigand  
1987
 
1988
        * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1989
        (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1990
        * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1991
        * solib-legacy.c: Remove file.
1992
 
1993
        * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1994
        * config/arm/linux.mt (TDEPFILES): Likewise.
1995
        * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1996
        * config/ia64/linux.mt (TDEPFILES): Likewise.
1997
        * config/m32r/linux.mt (TDEPFILES): Likewise.
1998
        * config/powerpc/linux.mt (TDEPFILES): Likewise.
1999
        * config/s390/s390.mt (TDEPFILES): Likewise.
2000
 
2001
        * alpha-linux-tdep.c (alpha_linux_init_abi): Call
2002
        set_solib_svr4_fetch_link_map_offsets.
2003
        * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
2004
        * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
2005
 
2006
        * i386gnu-tdep.c: Include "solib-svr4.h".
2007
        * Makefile.in: Update dependencies.
2008
 
2009
2007-10-24  Ulrich Weigand  
2010
 
2011
        * i386-nto-tdep.c: Include "solib.h".
2012
        (i386nto_init_abi): Use set_solib_ops instead of overwriting
2013
        current_target_so_ops members.
2014
        * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
2015
        (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
2016
        (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
2017
        * Makefile.in: Update dependencies.
2018
 
2019
2007-10-24  Ulrich Weigand  
2020
 
2021
        * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
2022
        (arm_wince_init_abi): Call set_solib_ops.
2023
        * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
2024
        (i386_cygwin_init_abi): Call set_solib_ops.
2025
        * solib-target.c: Include "solib-target.h".
2026
        (solib_target_so_ops): Make global.
2027
        (_initialize_solib_target): Do not set current_target_so_ops.
2028
        * solib-target.h: New file.
2029
        * Makefile.in: Update dependencies.
2030
 
2031
2007-10-24  Ulrich Weigand  
2032
 
2033
        * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
2034
        (mips_irix_init_abi): Call set_solib_ops.
2035
        * solib-irix.c: Include "solib.h" and "solib-irix.h".
2036
        (irix_so_ops): Make global.
2037
        (_initialize_irix_solib): Do not set current_target_so_ops.
2038
        * solib-irix.h: New file.
2039
        * Makefile.in: Update dependencies.
2040
 
2041
2007-10-24  Ulrich Weigand  
2042
 
2043
        * configure.tgt: Remove hppa*64*-*-hpux11* special case.
2044
        * config/pa/hppa64.mt: Delete file.
2045
        * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
2046
        (TDEPFILES): Move somread.o to ...
2047
        * config/pa/hpux.mh (NATDEPFILES): ... here.
2048
 
2049
        * configure.ac: Add check for elf_hp.h header.
2050
        Search libdl and libxpdl for dlgetmodinfo.
2051
        * config.in, configure: Regenerate.
2052
        * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
2053
        instead of #ifndef PA_SOM_ONLY.  Include "solib.h".
2054
        (pa64_solib_select): Take gdbarch instead of tdep argument.  Call
2055
        set_solib_ops instead of modifying current_target_so_ops.
2056
        * solib-pa64.h (pa64_solib_select): Update prototype.
2057
        * solib-som.c: Remove include of "som.h".  Include "solib.h".
2058
        (som_solib_select): Take gdbarch instead of tdep argument.  Call
2059
        set_solib_ops instead of modifying current_target_so_ops.
2060
        * solib-som.h (som_solib_select): Update prototype.
2061
        * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
2062
        of tdep to som_solib_select call.
2063
        (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
2064
        pa64_solib_select call.
2065
        * Makefile.in: Update dependencies.
2066
 
2067
2007-10-24  Ulrich Weigand  
2068
 
2069
        * frv-tdep.c: Include "solib.h".
2070
        (frv_gdbarch_init): Call set_solib_ops.
2071
        * frv-tdep.h (struct target_so_ops): Add forward reference.
2072
        (frv_so_ops): Add extern declaration.
2073
        * solib-frv.c (frv_so_ops): Make global.
2074
        (_initialize_frv_solib): Do not set current_target_so_ops.
2075
        * Makefile.in: Update dependencies.
2076
 
2077
2007-10-24  Ulrich Weigand  
2078
 
2079
        * solib.c (solib_global_lookup): Use solib_ops instead of global
2080
        current_target_so_ops.
2081
 
2082
2007-10-24  Ulrich Weigand  
2083
 
2084
        * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
2085
        * config/frv-tm-frv.h: Delete file.
2086
 
2087
2007-10-24  Daniel Jacobowitz  
2088
 
2089
        * NEWS: Mention gdbserver support for non-libthread_db operation.
2090
 
2091
2007-10-24  Daniel Jacobowitz  
2092
 
2093
        * amd64-tdep.c (amd64_convert_register_p): Delete.
2094
        (amd64_init_abi): Use i387_convert_register_p.
2095
        * alpha-tdep.c (alpha_convert_register_p): Return zero for
2096
        eight byte types.
2097
        (alpha_register_to_value, alpha_value_to_register): Do not handle
2098
        eight byte types.
2099
        * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
2100
        * i387-tdep.c (i387_convert_register_p): New.
2101
        (i387_register_to_value, i387_value_to_register): Update comments.
2102
        * i387-tdep.h (i387_convert_register_p): Declare.
2103
        * ia64-tdep.c (ia64_convert_register_p): Return zero for
2104
        builtin_type_ia64_ext.
2105
        (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
2106
        (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
2107
        * m68k-tdep.c (m68k_convert_register_p): Return zero for
2108
        builtin_type_m68881_ext.
2109
        (m68k_register_to_value, m68k_value_to_register): Update comments.
2110
 
2111
2007-10-24  Nathan Sidwell  
2112
 
2113
        * target-memory.c (claim_memory): Propagate baton for split memory
2114
        requests.
2115
 
2116
2007-10-24  Pedro Alves  
2117
 
2118
        PR gdb/2341
2119
        * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
2120
        alias warning bug.
2121
 
2122
2007-10-24  Carlos Eduardo Seo  
2123
 
2124
        * symtab.c (find_line_symtab): scan through psymtabs
2125
        when exact_match is zero.
2126
 
2127
2007-10-23  Atsushi Nemoto  
2128
 
2129
        * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
2130
        (deal_with_atomic_sequence): New.
2131
        (mips_software_single_step): Use it.
2132
 
2133
2007-10-23  Daniel Jacobowitz  
2134
 
2135
        PR gdb/2336
2136
        * configure.ac: Modify $LIBINTL before the BFD check.
2137
        * configure: Regenerated.
2138
 
2139
2007-10-23  Joel Brobecker  
2140
 
2141
        * buildsym.c (free_pending_blocks): Remove commented-out code.
2142
        (make_blockvector): Likewise. Re-use free_pending_blocks.
2143
        (end_symtab): Remove commented-out code.
2144
 
2145
2007-10-22  Daniel Jacobowitz  
2146
 
2147
        * top.c (command_loop): Fix output for shrinkage.
2148
 
2149
2007-10-22  Daniel Jacobowitz  
2150
 
2151
        * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
2152
        (exp): Remove and document function-like casts.
2153
 
2154
2007-10-22  Daniel Jacobowitz  
2155
 
2156
        * cp-support.c: Include "safe-ctype.h".
2157
        (cp_already_canonical): New function.
2158
        (cp_canonicalize_string): Use it.  Return NULL for already canonical
2159
        strings.
2160
        (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
2161
        (cp_func_name, remove_params): Likewise.
2162
        (cp_find_first_component_aux): Use ISSPACE.
2163
        * cp-support.h (cp_demangled_name_to_comp): Correct comment.  Remove
2164
        MEMORY_P argument.
2165
        * cp-name-parser.y (ALLOC_CHUNK): Define.
2166
        (struct demangle_info): Add PREV and NEXT.  Increase the size of
2167
        COMPS.
2168
        (d_grab): Convert to a function.
2169
        (allocate_info): Rewrite.
2170
        (cp_demangled_name_to_comp): Remove MEMORY argument.  Do not use
2171
        strlen.  Update call to allocate_info.  Do not free it on failure.
2172
        (main): Update calls to cp_demangled_name_to_comp.
2173
        * Makefile.in (cp-support.o): Update.
2174
 
2175
2007-10-22  Markus Deuling  
2176
 
2177
        * std-regs.c (value_of_builtin_frame_fp_reg)
2178
        value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
2179
        value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
2180
        current architecture by frame_info.
2181
 
2182
2007-10-22  Markus Deuling  
2183
 
2184
        * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
2185
        by gdbarch.
2186
 
2187
2007-10-22  Markus Deuling  
2188
 
2189
        * infcmd.c (default_print_registers_info, print_return_value)
2190
        (print_vector_info, print_float_info): Replace current_gdbarch by
2191
        gdbarch.
2192
        (registers_info): Use get_frame_arch to get at the current
2193
        architecture by frame_info.
2194
 
2195
2007-10-22  Markus Deuling  
2196
 
2197
        * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
2198
        get_regcache_arch to get at the current architecture by regcache.
2199
 
2200
2007-10-22  Markus Deuling  
2201
 
2202
        * target.c (debug_print_register): Use get_regcache_arch to get at the
2203
        current architecture by regcache.
2204
 
2205
2007-10-21  Daniel Jacobowitz  
2206
 
2207
        * dwarf2read.c (read_file_scope): Add a comment.
2208
        (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
2209
        (read_enumeration_type, process_enumeration_scope, read_array_type)
2210
        (read_typedef, read_base_type, read_subrange_type)
2211
        (read_unspecified_type): Use dwarf2_name.
2212
 
2213
2007-10-21  Daniel Jacobowitz  
2214
 
2215
        * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
2216
        * dwarf2read.c (dwarf2_free_objfile): New.
2217
        * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
2218
        * symfile.h (dwarf2_free_objfile): Declare.
2219
 
2220
2007-10-21  Joel Brobecker  
2221
 
2222
        * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
2223
 
2224
2007-10-21  Luis Machado  
2225
 
2226
        * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
2227
        * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
2228
        default dwarf2_frame_set_init_reg function.
2229
 
2230
2007-10-21  Pedro Alves  
2231
 
2232
        * NEWS: Mention native MinGW configuration.
2233
 
2234
2007-10-19  Ulrich Weigand  
2235
 
2236
        * gdbarch.sh: Remove "macro" column of input table.  Remove handling
2237
        of "macro" column throughout the file.  Remove (empty) "macro" entry
2238
        of all gdbarch functions.
2239
 
2240
2007-10-19  Ulrich Weigand  
2241
 
2242
        * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2243
        * gdbarch.c, gdbarch.h: Regenerate.
2244
        * dbxread.c (find_stab_function_addr): Define unconditionally.
2245
        (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2246
        instead of SOFUN_ADDRESS_MAYBE_MISSING.
2247
        (end_psymtab): Likewise.
2248
        (process_one_symbol): Likewise.
2249
        * mdebugread.c (parse_partial_symbols): Likewise.
2250
 
2251
        * symtab.h (struct minimal_symbol): Always define "filename" member.
2252
        * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2253
        * minsyms.c (lookup_minimal_symbol): Likewise.
2254
        * symmisc.c (dump_msymbols): Likewise.
2255
 
2256
        * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2257
        * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2258
        * config/i386/tm-i386sol2.h: Remove file.
2259
        * config/i386/tm-linux.h: Remove file.
2260
        * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2261
        set_gdbarch_sofun_address_maybe_missing.
2262
        * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2263
 
2264
        * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2265
        * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2266
        * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2267
        * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2268
        * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2269
        * config/powerpc/tm-ppc-eabi.h: Remove file.
2270
        * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2271
        set_gdbarch_sofun_address_maybe_missing.
2272
 
2273
        * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2274
        * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2275
        * config/sparc/tm-sol2.h: Remove file.
2276
        * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2277
        set_gdbarch_sofun_address_maybe_missing.
2278
        * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2279
 
2280
2007-10-19  Ulrich Weigand  
2281
 
2282
        * gdbarch.sh (static_transform_name): New gdbarch callback.
2283
        * gdbarch.c, gdbarch.h: Regenerate.
2284
        * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2285
        instead of STATIC_TRANSFORM_NAME.
2286
        * mdebugread.c (parse_partial_symbols): Likewise.
2287
        * stabsread.c (define_symbol): Likewise.
2288
        * xcoffread.c (scan_xcoff_symtab): Likewise.
2289
 
2290
        * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2291
        (IS_STATIC_TRANSFORM_NAME): Remove.
2292
        * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2293
        * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2294
        (i386_sol2_init_abi): Install it.
2295
 
2296
        * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2297
        (IS_STATIC_TRANSFORM_NAME): Remove.
2298
        * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2299
        * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2300
        (sparc32_sol2_init_abi): Install it.
2301
        * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2302
        * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2303
 
2304
2007-10-18  Daniel Jacobowitz  
2305
 
2306
        * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2307
        (mips_n32n64_return_value, mips_o32_return_value)
2308
        (mips_o64_return_value): Update calls to mips_xfer_register.
2309
 
2310
2007-10-17  Daniel Jacobowitz  
2311
 
2312
        * frame.c (frame_unwind_unsigned_register): Delete.
2313
        (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2314
        * frame.h (frame_unwind_unsigned_register): Delete prototype.
2315
 
2316
        * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2317
        avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2318
        mt-tdep.c: Replace frame_unwind_unsigned_register with
2319
        frame_unwind_register_unsigned.
2320
 
2321
2007-10-16  Pedro Alves  
2322
 
2323
        * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2324
        * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2325
        * win32-nat.c: Only include cygwin.h on Cygwin host.  Don't
2326
        include procfs.h.
2327
        (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2328
        if not building on Cygwin.
2329
        (win32_make_so, handle_output_debug_string, handle_exception)
2330
        (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2331
        (win32_attach): Only fallback to Cygwin pids if building on
2332
        Cygwin.
2333
        (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2334
        building on Cygwin.
2335
        (win32_create_inferior): Disable starting the inferior through a
2336
        shell, environment var processing and tty handling if not building
2337
        on Cygwin.
2338
        (cygwin_pid_to_str): Rename to ...
2339
        (win32_pid_to_str): ... this.
2340
        (init_win32_ops): Update use of win32_pid_to_str.  Disable "shell"
2341
        and "cygwin-exceptions" commands if not building on Cygwin.
2342
 
2343
2007-10-16  Gaius Mulley  
2344
 
2345
        * doc/gdb.texinfo:  Add TSIZE definition, removed
2346
        statement about unbounded arrays being unimplemented.
2347
        * m2-valprint.c (m2_print_array_contents):  New function.
2348
        (m2_print_unbounded_array):  New function.
2349
        (m2_print_array_contents):  New function.
2350
        * m2-typeprint.c (m2_unbounded_array):  New function.
2351
        (m2_is_unbounded_array):  New function.
2352
        (m2_print_type):  Test for unbounded array when walking
2353
        across structs.
2354
        * m2-lang.h:  Added extern m2_is_unbounded_array.
2355
        * m2-lang.c (evaluate_subexp_modula2):  New function.
2356
        (exp_descriptor_modula2):  New structure.
2357
        (m2_language_defn):  Use exp_descriptor_modula2.
2358
        * m2-exp.y:  Added TSIZE and binary subscript.
2359
 
2360
2007-10-16  Daniel Jacobowitz  
2361
 
2362
        * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2363
        after freeing it.
2364
 
2365
2007-10-16  Kevin Buettner  
2366
 
2367
        * m32r-tdep.c (decode_prologue): Sign extend offset for
2368
        "addi sp, xx" case.
2369
        (m32r_frame_unwind_cache): Likewise.
2370
 
2371
2007-10-15  Thiago Jung Bauermann  
2372
 
2373
        * rs6000-tdep.c (skip_prologue): Restore comment with
2374
        function description to its proper place.
2375
 
2376
2007-10-15  Daniel Jacobowitz  
2377
 
2378
        * NEWS: Mention gdbserver PowerPC improvements.
2379
 
2380
2007-10-15  Daniel Jacobowitz  
2381
 
2382
        * features/Makefile (WHICH): Add PowerPC register definitions.
2383
        (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2384
        (rs6000/powerpc-64-expedite): New macros.
2385
        ($(outdir)/%.dat): Handle subdirectories.
2386
        * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2387
        regformats/rs6000/powerpc-e500.dat: New generated files.
2388
 
2389
2007-10-15  Daniel Jacobowitz  
2390
 
2391
        * ppc-linux-nat.c (ppc_linux_read_description): New.
2392
        (_initialize_ppc_linux_nat): Set to_read_description.
2393
        * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2394
 
2395
2007-10-15  Daniel Jacobowitz  
2396
 
2397
        * NEWS: Document target described register support for PowerPC.
2398
        * ppc-tdep.h: Remove ppc_spr constants.
2399
        (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2400
        ppc_builtin_type_vec128 members.
2401
        (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2402
        (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2403
        (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2404
        (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2405
        (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2406
        * rs6000-tdep.c: Include preparsed descriptions.
2407
        (init_sim_regno_table): Do not iterate over pseudo registers.
2408
        Look up segment registers by name.  Use sim_spr_register_name
2409
        for SPRs.
2410
        (rs6000_register_sim_regno): Call init_sim_regno_table here.
2411
        (rs6000_builtin_type_vec128): Delete.
2412
        (rs6000_register_name): Only handle SPE pseudo registers and upper
2413
        halves.  Call tdesc_register_name for everything else.
2414
        (rs6000_register_type): Delete.  Replace with...
2415
        (rs6000_pseudo_register_type): ...this new function.  Only handle
2416
        SPE pseudo registers.
2417
        (rs6000_register_reggroup_p): Delete.  Replace with...
2418
        (rs6000_pseudo_register_reggroup_p): ...this new function.  Only
2419
        handle SPE pseudo registers.
2420
        (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2421
        "struct reg".
2422
        (rs6000_register_to_value, rs6000_value_to_register): Remove check
2423
        of reg->fpr.
2424
        (e500_register_reggroup_p): Delete.
2425
        (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2426
        (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2427
        (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2428
        (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2429
        (registers_powerpc, registers_403, registers_403GC, registers_505)
2430
        (registers_860, registers_601, registers_602, registers_603)
2431
        (registers_604, registers_750, registers_7400, registers_e500): Delete
2432
        variables.
2433
        (struct variant): Delete nregs, npregs, num_tot_regs, and regs.  Add
2434
        tdesc.
2435
        (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2436
        (variants): Delete outdated comment.  Use standard target descriptions
2437
        instead of "struct reg" arrays.
2438
        (init_variants): Delete.
2439
        (rs6000_gdbarch_init): Do not guess word size from the BFD
2440
        architecture if we have a target description.  Select a variant
2441
        before creating a new architecture.  Use the variant's target
2442
        description if the target did not define a register layout.
2443
        Validate target-supplied registers.  Reject mismatches.  Use
2444
        fixed register numbers and new constants instead of magic
2445
        numbers.  Call set_gdbarch_ps_regnum.  Call tdesc_use_registers.
2446
        (_initialize_rs6000_tdep): Initialize the preparsed target
2447
        descriptions.
2448
        * target-descriptions.c (tdesc_predefined_types): Add int128 and
2449
        uint128.
2450
        (tdesc_find_register_early): New function.
2451
        (tdesc_numbered_register): Use it.
2452
        (tdesc_register_size): New function.
2453
        (tdesc_use_registers): Take a target_desc argument.  Do not use
2454
        gdbarch_target_desc.
2455
        * target-descriptions.h (tdesc_use_registers): Update prototype
2456
        and comment.
2457
        (tdesc_register_size): New prototype.
2458
        * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2459
        (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2460
        (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2461
        (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2462
        (rs6000-tdep.o): Update.
2463
        * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2464
        * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2465
        * mips-tdep.c (mips_gdbarch_init): Likewise.
2466
 
2467
2007-10-15  Daniel Jacobowitz  
2468
 
2469
        * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2470
        features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2471
        features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2472
        features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2473
        features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2474
        features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2475
        features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2476
        generated files.
2477
 
2478
2007-10-15  Daniel Jacobowitz  
2479
 
2480
        * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2481
        features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2482
        features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2483
        feature descriptions for standard PowerPC register sets.
2484
 
2485
        * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2486
        features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2487
        features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2488
        features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2489
        features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2490
        features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2491
        features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2492
        target descriptions for PowerPC processors.
2493
 
2494
2007-10-15  Daniel Jacobowitz  
2495
 
2496
        * target-descriptions.c (tdesc_predefined_types): New.
2497
        (tdesc_named_type): Use it.
2498
        (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2499
        (_intialize_target_descriptions): Register "maint print c-tdesc".
2500
        * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2501
        (cfiles, %.c): New rules.
2502
        * features/arm-with-iwmmxt.c, features/mips-linux.c,
2503
        features/mips64-linux.c: New generated files.
2504
 
2505
        * arm-linux-nat.c: Include preparsed description instead of
2506
        "xml-support.h".
2507
        (super_xfer_partial, arm_linux_xfer_partial): Remove.
2508
        (arm_linux_read_description): New function.
2509
        (_initialize_arm_linux_nat): Set to_read_description instead of
2510
        to_xfer_partial.  Initialize preparsed description.
2511
        * config/arm/linux.mh (TDEP_XML): Delete.
2512
        * mips-linux-nat.c: Include preparsed descriptions instead of
2513
        "xml-support.h".
2514
        (super_xfer_partial, mips_linux_xfer_partial): Remove.
2515
        (mips_linux_read_description): New function.
2516
        (_initialize_mips_linux_nat): Set to_read_description instead of
2517
        to_xfer_partial.  Initialize preparsed description.
2518
        * config/mips/linux.mh (TDEP_XML): Delete.
2519
        * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2520
        (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2521
        (mips64_linux_c): New macros.
2522
        (arm-linux-nat.o, mips-linux-nat.o): Update.
2523
 
2524
2007-10-15  Pierre Muller  
2525
 
2526
        * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2527
        Replace xasprintf by xstrprintf.
2528
        symfile-mem.c (add_vsyscall_page): Ditto.
2529
 
2530
2007-10-12  Ulrich Weigand  
2531
 
2532
        * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2533
        replacing use of global current_gdbarch.
2534
        (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2535
        (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2536
 
2537
        * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2538
        (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2539
        replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2540
        (ia64_sigtramp_frame_cache): Update caller.
2541
 
2542
2007-10-12  Ulrich Weigand  
2543
 
2544
        * gdbarch.sh (deprecated_use_struct_convention): Remove.
2545
        (extract_return_value, store_return_value): Remove.
2546
        (return_value): Remove default implementation.
2547
        * gdbarch.c, gdbarch.h: Regenerate.
2548
 
2549
        * stack.c (return_command): Remove compatibility hack.
2550
        * arch-utils.c (legacy_return_value): Remove.
2551
        * arch-utils.h (legacy_return_value): Likewise.
2552
 
2553
        * arch-utils.c (always_use_struct_convention): Remove.
2554
        * arch-utils.h (always_use_struct_convention): Likewise.
2555
        * value.c (generic_use_struct_convention): Remove.
2556
        * defs.h (generic_use_struct_convention): Likewise.
2557
 
2558
2007-10-12  Ulrich Weigand  
2559
 
2560
        * avr-tdep.c (avr_return_value): New function.
2561
        (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2562
        set_gdbarch_extract_return_value.
2563
 
2564
        * fvr-tdep.c (frv_return_value): New function.
2565
        (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2566
        set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2567
        and set_gdbarch_deprecated_use_struct_convention.
2568
 
2569
        * ia64-tdep.c (ia64_use_struct_convention): Make static.
2570
        Add check for structure, union, or array types.
2571
        (ia64_extract_return_value): Make static.
2572
        (ia64_store_return_value): Make static.  Support multi-word values.
2573
        (ia64_return_value): New function.
2574
        (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2575
        set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2576
        and set_gdbarch_deprecated_use_struct_convention.
2577
 
2578
2007-10-12  Joel Brobecker  
2579
 
2580
        * solib-target.c (solib_target_parse_libraries)
2581
        [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2582
 
2583
2007-10-12  Jim Blandy  
2584
 
2585
        * serial.h (struct serial_ops): Document read_prim to return zero
2586
        at EOF.
2587
        * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2588
        read_prim returns zero, not SERIAL_TIMEOUT.
2589
 
2590
2007-10-12  Ulrich Weigand  
2591
 
2592
        * alpha-mdebug-tdep.c: Include "gdb_string.h".
2593
        (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2594
        * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2595
        * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2596
 
2597
        * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2598
        * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2599
        * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2600
        * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2601
        * config/alpha/tm-alpha.h: Remove file.
2602
 
2603
2007-10-12  Ulrich Weigand  
2604
 
2605
        * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2606
        DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2607
 
2608
        * config/pa/tm-hppa.h: Delete file.
2609
        * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2610
        * config/pa/hppahpux.mt: Likewise.
2611
        * config/pa/hppa.mt: Likewise.
2612
        * config/pa/linux.mt: Likewise.
2613
        * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2614
 
2615
2007-10-12  Ulrich Weigand  
2616
 
2617
        * config/arm/nm-nbsdaout.h: Remove file.
2618
        * config/nm-nbsdaout.h: Likewise.
2619
        * config/nm-nbsd.h: Likewise.
2620
 
2621
2007-10-12  Ulrich Weigand  
2622
 
2623
        * block.h (struct block): Remove "gcc_compile_flag" member.
2624
        (BLOCK_GCC_COMPILED): Remove.
2625
        * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2626
        * buildsym.c (finish_block): Do not set it.
2627
        * symmisc.c (dump_symtab_1): Do not dump it.
2628
 
2629
        * value.h (using_struct_return): Remove "gcc_p" argument.
2630
        * value.c (using_struct_return): Likewise.
2631
        * eval.c (evaluate_subexp_standard): Adapt callers.
2632
        * infcall.c (call_function_by_hand): Likewise.
2633
        * stack.c (return_command): Likewise.
2634
        * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2635
 
2636
        * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2637
        * gdbarch.c, gdbarch.h: Regenerate.
2638
        * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2639
        * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2640
        * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2641
        * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2642
        (push_dummy_code, call_function_by_hand): Adapt callers.
2643
 
2644
2007-10-12  Ulrich Weigand  
2645
 
2646
        * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2647
        (finish_command_continuation, finish_command): Adapt callers.
2648
 
2649
2007-10-12  Ulrich Weigand  
2650
 
2651
        * infcall.c (call_function_by_hand): Remove special handling
2652
        for HP aCC compiled code.
2653
 
2654
2007-10-12  Ulrich Weigand  
2655
 
2656
        * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2657
        reference.  Fix endianness bugs.
2658
        (cris_reg_struct_has_address): Remove.
2659
        (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2660
        and set_gdbarch_deprecated_use_struct_convention calls.
2661
 
2662
        * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2663
        * gdbarch.c, gdbarch.h: Regenerate.
2664
        * infcall.c (call_function_by_hand): Remove handling of
2665
        deprecated_reg_struct_has_addr.
2666
 
2667
2007-10-11  Daniel Jacobowitz  
2668
            Kazu Hirata  
2669
 
2670
        * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2671
        checking watchpoint resources.
2672
 
2673
2007-10-11  Kazu Hirata  
2674
 
2675
        * memattr.c (inaccessible_by_default): Change the initial
2676
        value to 1.
2677
 
2678
2007-10-11  Daniel Jacobowitz  
2679
 
2680
        PR gdb/2280
2681
        * coffread.c (read_one_sym): Check for read errors.
2682
 
2683
2007-10-11  Ulrich Weigand  
2684
 
2685
        * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2686
        instead of "Linux 2.6.19" in comment.
2687
        (linux_xfer_partial): Use "GNU/Linux target" instead of
2688
        "Linux target" in comment.
2689
        * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2690
        (m68k_linux_get_sigtramp_info): Likewise.
2691
 
2692
2007-10-11  Daniel Jacobowitz  
2693
 
2694
        * MAINTAINERS (language support): List Joel and Paul as
2695
        Ada maintainers.
2696
 
2697
2007-10-11  Daniel Jacobowitz  
2698
 
2699
        * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2700
        checks.
2701
        * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2702
        not set DEPRECATED_TM_FILE.
2703
        * config/arm/tm-arm.h: Delete file.
2704
 
2705
2007-10-11  Luis Machado  
2706
 
2707
        * MAINTAINERS (Write After Approval): Add self.
2708
 
2709
2007-10-11  Daniel Jacobowitz  
2710
 
2711
        * buildsym.c (record_line): Remove empty lines followed by
2712
        end-of-sequence markers.
2713
 
2714
2007-10-11  Kazu Hirata  
2715
 
2716
        * configure.tgt: Recognize fido-*-elf.
2717
 
2718
2007-10-10  Joel Brobecker  
2719
 
2720
        GDB 6.7 released.
2721
 
2722
2007-10-10  Markus Deuling  
2723
 
2724
        * stack.c (print_frame_args, frame_info, return_command): Use
2725
        get_regcache_arch or get_frame_arch to get at the current architecture
2726
        by regcache or by frame, respectively.
2727
 
2728
2007-10-10  Markus Deuling  
2729
 
2730
        * rs6000-nat.c (fetch_register, store_register)
2731
        (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2732
        get_regcache_arch to get at the current architecture by regcache.
2733
 
2734
        * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2735
        (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2736
        (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2737
        current_gdbarch by gdbarch.
2738
        (rs6000_skip_trampoline_code, rs6000_register_to_value)
2739
        (rs6000_value_to_register): Use get_frame_arch to get at the current
2740
        architecture by frame_info.
2741
 
2742
2007-10-10  Markus Deuling  
2743
 
2744
        * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2745
        get_regcache_arch to get at the current architecture by regcache.
2746
 
2747
        * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2748
        (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2749
        get_regcache_arch to get at the current architecture by regcache.
2750
 
2751
        * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2752
        (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2753
        (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2754
        current architecture by regcache.
2755
 
2756
2007-10-10  Markus Deuling  
2757
 
2758
        * remote-mips.c (mips_wait, mips_fetch_registers)
2759
        (mips_store_registers): Use get_regcache_arch to get at the
2760
        current architecture by regcache.
2761
 
2762
        * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2763
        (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2764
        get at the current architecture by regcache.
2765
        (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2766
        architecture by frame_info.
2767
 
2768
        * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2769
        (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2770
        the current architecture by regcache.
2771
 
2772
        * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2773
        (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2774
        (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2775
        current architecture by frame_info.
2776
        (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2777
        (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2778
        (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2779
        (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2780
        get at the current architecture by regcache.
2781
 
2782
        * mips-linux-nat.c (mips_linux_register_addr)
2783
        (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2784
        (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2785
        (mips64_linux_regsets_fetch_registers)
2786
        (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2787
        the current architecture by regcache.
2788
 
2789
        * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2790
        get at the current architecture by frame_info.
2791
 
2792
2007-10-10  Markus Deuling  
2793
 
2794
        * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2795
        current architecture by regcache.
2796
        (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2797
        (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2798
        (mips_stub_frame_cache, mips_read_fp_register_single)
2799
        (mips_read_fp_register_double, mips_print_fp_register)
2800
        (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2801
        at the current architecture by frame_info.
2802
        (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2803
        (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2804
        (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2805
        (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2806
        (mips_o32_push_dummy_call, mips_o32_return_value)
2807
        (mips_o64_push_dummy_call, mips_o64_return_value)
2808
        (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2809
        gdbarch.
2810
 
2811
2007-10-10  Markus Deuling  
2812
 
2813
        * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2814
        (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2815
        (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2816
        (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2817
        (xtensa_register_write_masked, xtensa_register_read_masked)
2818
        (xtensa_supply_gregset, xtensa_store_return_value)
2819
        (xtensa_extract_return_value): Use get_regcache_arch to get at the
2820
        current architecture by regcache.
2821
        (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2822
        (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2823
        architecture by frame_info.
2824
 
2825
2007-10-10  Daniel Jacobowitz  
2826
 
2827
        * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2828
        (thumb_analyze_prologue): Move pv_area_store_would_trash call
2829
        out of loop.  Do not set cache->frameoffset.
2830
        (arm_scan_prologue): Use prologue-value mechanism.  Do not set
2831
        frameoffset.  Simplify framesize.
2832
        (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2833
        frameoffset.
2834
        * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2835
 
2836
2007-10-10  Daniel Jacobowitz  
2837
 
2838
        * target.c (update_current_target): Call setup_target_debug.
2839
        (push_target): Do not call it here.
2840
 
2841
2007-10-09  Michael Snyder  
2842
 
2843
        * MAINTAINERS: Update my email address.
2844
 
2845
2007-10-09  Markus Deuling  
2846
 
2847
        * xtensa-tdep.c: Replace following current-gdbarch based macros by
2848
        their expression:
2849
        (xtensa_pseudo_register_read)
2850
        (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2851
        (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2852
        (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2853
        (xtensa_pseudo_register_read)
2854
        (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2855
        (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2856
        (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2857
        (xtensa_frame_prev_register): NUM_AREGS.
2858
        (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2859
        (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2860
        (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2861
        (xtensa_supply_gregset, xtensa_frame_cache)
2862
        (xtensa_frame_prev_register): WS_REGNUM.
2863
        (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2864
        SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2865
        (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2866
        (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2867
        (xtensa_register_reggroup_p): REGMAP.
2868
        (call0_track_op): LITBASE_REGNUM.
2869
        (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2870
        (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2871
        (xtensa_frame_prev_register, AREG_NUMBER)
2872
        (xtensa_register_type): AR_BASE.
2873
        (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2874
        (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2875
        (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2876
        (xtensa_frame_cache, xtensa_frame_prev_register)
2877
        (xtensa_extract_return_value, xtensa_store_return_value)
2878
        (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2879
        (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2880
        (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2881
        (xtensa_frame_prev_register, xtensa_push_dummy_call)
2882
        (call0_frame_cache): A1_REGNUM.
2883
        (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2884
        (xtensa_push_dummy_call): A4_REGNUM.
2885
        (ARGS_FIRST_REG): A6_REGNUM.
2886
        (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2887
        (xtensa_frame_prev_register): A15_REGNUM.
2888
        * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2889
        them in the appropriate source file:
2890
        XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2891
        ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2892
        ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2893
        DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2894
        DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2895
        REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2896
        EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2897
        FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2898
        A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2899
        A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2900
        A13_REGNUM, A14_REGNUM, A15_REGNUM.
2901
 
2902
2007-10-09  Markus Deuling  
2903
 
2904
        * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2905
        the current architecture by frame_info.
2906
        (h8300_frame_prev_register
2907
        (h8300_print_register): Replace current_gdbarch by gdbarch.
2908
        (h8300_print_registers_info, h8300_register_type)
2909
        (h8300_register_type): Likewise.
2910
 
2911
2007-10-09  Markus Deuling  
2912
 
2913
        * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2914
        the current architecture by regcache.
2915
        (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2916
        (i386_linux_fetch_inferior_registers)
2917
        (i386_linux_store_inferior_registers): Likewise.
2918
        * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2919
        * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2920
        * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2921
        * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2922
        (i386_extract_return_value, i386_store_return_value): Likewise.
2923
        * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2924
        the current architecture by frame_info.
2925
        (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2926
        (i386_register_to_value, i386_value_to_register): Likewise.
2927
 
2928
2007-10-09  Markus Deuling  
2929
 
2930
        * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2931
        the current architecture by regcache.
2932
        (monitor_store_register, monitor_store_registers): Likewise.
2933
 
2934
2007-10-09  Markus Deuling  
2935
 
2936
        * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2937
        the current architecture by regcache.
2938
 
2939
2007-10-09  Markus Deuling  
2940
 
2941
        * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2942
        gdbarch.
2943
 
2944
2007-10-09  Markus Deuling  
2945
 
2946
        * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2947
        architecture by frame.
2948
        (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2949
        (inside_main_func, frame_sp_unwind): Likewise.
2950
 
2951
2007-10-09  Daniel Jacobowitz  
2952
 
2953
        * solib-svr4.c (enable_break): Add the dynamic linker also if
2954
        auxv succeeds.
2955
 
2956
2007-10-09  Carlos Eduardo Seo  
2957
 
2958
        * MAINTAINERS (Write After Approval): Add self.
2959
 
2960
2007-10-09  Pedro Alves  
2961
 
2962
        * stabsread.c (read_huge_number): Initialize local variable to 0.
2963
 
2964
2007-10-09  Pierre Muller  
2965
 
2966
        * p-lang.h (pascal_main_name): Add declaration.
2967
        * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2968
        (GPC_MAIN_PROGRAM_NAME_2): New constants.
2969
        (pascal_main_name): New function.
2970
        * symtab.c: Include p-lang.h.
2971
        (find_main_name): Add call to pascal_main_name.
2972
        * Makefile.in (symtab.o): Add dependency on p-lang.h.
2973
 
2974
2007-10-09  Pedro Alves  
2975
 
2976
        * stabsread.c (read_huge_number): Fix handling of octal
2977
        representation when the bit width is known.
2978
        (read_range_type): Record unsigned integral types with their size,
2979
        when the type size is known.
2980
 
2981
2007-10-08  Thiago Jung Bauermann  
2982
 
2983
        * MAINTAINERS (Write After Approval): Add self.
2984
 
2985
2007-10-08  Pierre Muller  
2986
 
2987
        * breakpoint.c (print_one_breakpoint_location): ARI fix:
2988
        Replace asprintf by xstrprintf.
2989
 
2990
2007-10-08  Pierre Muller  
2991
 
2992
        * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of .
2993
        Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2994
 
2995
2007-10-08  Pierre Muller  
2996
 
2997
        * linux-fork.c: Move "gdb_wait.h" include back to the position of
2998
         include before last commit.
2999
 
3000
2007-10-08  Maciej W. Rozycki  
3001
 
3002
        * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
3003
 
3004
2007-10-08  Markus Deuling  
3005
 
3006
        * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
3007
        (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
3008
        (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
3009
        (store_regs_user_thread, store_regs_kernel_thread): Use
3010
        get_regcache_arch or get_frame_arch to get at the current architecture
3011
        by regcache or by frame, respectively.
3012
 
3013
2007-10-08  Markus Deuling  
3014
 
3015
        * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
3016
        (sh64_pseudo_register_read, sh64_pseudo_register_write)
3017
        (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
3018
        (sh64_print_register, sh64_media_print_registers_info)
3019
        (sh64_compact_print_registers_info, sh64_unwind_sp)
3020
        (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
3021
        (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
3022
        (sh64_frame_prev_register): Use FRAME to recognize current
3023
        architecture.
3024
 
3025
2007-10-08  Markus Deuling  
3026
 
3027
        * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
3028
        (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
3029
        (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
3030
        current_gdbarch by gdbarch.
3031
        (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
3032
        (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3033
        (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
3034
        (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
3035
        recognize current architecture.
3036
 
3037
2007-10-08  Markus Deuling  
3038
 
3039
        * remote.c (init_remote_state, fetch_register_using_p)
3040
        (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
3041
        (store_register_using_P, store_registers_using_G)
3042
        (remote_store_registers): Use get_regcache_arch or get_frame_arch to
3043
        get at the current architecture by regcache or by frame, respectively.
3044
 
3045
2007-10-08  Markus Deuling  
3046
 
3047
        * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
3048
        (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
3049
        (m68k_frame_prev_register, m68k_get_longjmp_target): Use
3050
        get_regcache_arch or get_frame_arch to get at the current architecture
3051
        by regcache or by frame, respectively.
3052
        * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
3053
        * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
3054
        (store_register, old_store_inferior_registers, supply_gregset)
3055
        (supply_fpregset, fill_fpregset): Likewise.
3056
        * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
3057
        Replace current_gdbarch by gdbarch.
3058
 
3059
2007-10-08  Markus Deuling  
3060
 
3061
        * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
3062
        (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
3063
        get_frame_arch to get at the current architecture by regcache or by
3064
        frame, respectively.
3065
 
3066
2007-10-08  Markus Deuling  
3067
 
3068
        * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
3069
        Replace current_gdbarch by gdbarch.
3070
        * ia64-tdep.c (ia64_frame_prev_register
3071
        (ia64_sigtramp_frame_prev_register)
3072
        (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
3073
        get_frame_arch to get at the current architecture by regcache or by
3074
        frame, respectively.
3075
        * ia64-linux-nat.c (ia64_linux_fetch_register)
3076
        (ia64_linux_fetch_registers, ia64_linux_store_register)
3077
        (ia64_linux_store_registers): Likewise.
3078
 
3079
2007-10-08  Markus Deuling  
3080
 
3081
        * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
3082
        current_gdbarch by gdbarch.
3083
        * hppa-linux-nat.c (fetch_register, store_register)
3084
        (hppa_linux_fetch_inferior_registers)
3085
        (hppa_linux_store_inferior_registers): Use get_regcache_arch or
3086
        get_frame_arch to get at the current architecture by regcache or by
3087
        frame, respectively.
3088
        * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
3089
        (hppa_hpux_unwind_adjust_stub): Likewise.
3090
        * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
3091
        (hppa_hpux_fetch_inferior_registers)
3092
        (hppa_hpux_store_inferior_registers): Likewise.
3093
 
3094
2007-10-08  Markus Deuling  
3095
 
3096
        * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
3097
        (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
3098
        (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
3099
        or get_frame_arch to get at the current architecture by regcache or by
3100
        frame, respectively.
3101
        * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
3102
        (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
3103
        (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
3104
        current_gdbarch by gdbarch.
3105
 
3106
2007-10-08  Markus Deuling  
3107
 
3108
        * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
3109
        (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
3110
        (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
3111
        get at the current architecture by regcache or by·frame, respectively.
3112
        (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
3113
        gdbarch.
3114
 
3115
2007-10-08  Markus Deuling  
3116
 
3117
        * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
3118
        Use get_regcache_arch or get_frame_arch to get at the current
3119
        architecture by regcache or by frame, respectively.
3120
        * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
3121
        * amd64-nat.c (amd64_supply_native_gregset)
3122
        (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
3123
 
3124
2007-10-08  Markus Deuling  
3125
 
3126
        * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
3127
        gdbarch.
3128
        * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3129
        (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
3130
        (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
3131
        get_frame_arch to get at the current architecture by regcache or by
3132
        frame, respectively.
3133
        * alpha-nat.c (fetch_osf_core_registers): Likewise.
3134
 
3135
2007-10-08  Markus Deuling  
3136
 
3137
        * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
3138
        (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
3139
        current_gdbarch by gdbarch.
3140
        * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
3141
 
3142
2007-10-08  Markus Deuling  
3143
 
3144
        * regcache.c (init_regcache_descr, register_type, read_pc_pid)
3145
        (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
3146
        * regcache.c (regcache_raw_write): Use get_regcache_arch or
3147
        get_frame_arch to get at the current architecture by regcache or by
3148
        frame, respectively.
3149
 
3150
2007-10-08  Markus Deuling  
3151
 
3152
        * findvar.c (value_of_register, locate_var_value): Use
3153
        get_regcache_arch or get_frame_arch to get at the current architecture
3154
        by regcache or by frame, respectively.
3155
        * findvar.c (default_value_from_register, value_from_register): Replace
3156
        current_gdbarch by gdbarch.
3157
 
3158
2007-10-08  Pierre Muller  
3159
 
3160
        * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
3161
 
3162
2007-10-08  Pierre Muller  
3163
 
3164
        * linux-fork.c: ARI fix: include "gdb_wait.h" instead of .
3165
        Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
3166
 
3167
2007-10-05  Daniel Jacobowitz  
3168
 
3169
        * remote.c (get_offsets): Only call free_symfile_segment_data if
3170
        data was allocated.
3171
 
3172
2007-10-03  Pierre Muller  
3173
 
3174
        * objc-exp.y: ARI fix: remove 4 PARAMS.
3175
 
3176
2007-10-03  Daniel Jacobowitz  
3177
 
3178
        * NEWS: Use uniform spacing.  Correct version number for GDB 6.7
3179
        news.  Mention XML support for M68K in GDB 6.7.
3180
 
3181
2007-10-03  Daniel Jacobowitz  
3182
 
3183
        * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
3184
        bounds.
3185
        (init_vector_type): Use builtin_type_int32.
3186
 
3187
2007-10-02  Ulrich Weigand  
3188
 
3189
        * s390-tdep.c (s390_regset_from_core_section): Allow excess section
3190
        size to enable bi-arch generate-core-file support.
3191
 
3192
2007-10-02  Markus Deuling  
3193
 
3194
        * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
3195
 
3196
2007-10-02  Carlos Eduardo Seo  
3197
 
3198
        * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
3199
        signal handler.
3200
        * tui/tui-win.c (tui_initialize_win): New function for
3201
        initializing tui's SIGWINCH signal handler.
3202
        * tui/tui-win.h (tui_initialize_win): Declare.
3203
 
3204
2007-10-02  Ulrich Weigand  
3205
 
3206
        * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
3207
        pointer to uintptr_t before casting to CORE_ADDR.
3208
 
3209
2007-10-02  Markus Deuling  
3210
 
3211
        * linux-nat.c (PTRACE_GETSIGINFO): Add define.
3212
 
3213
2007-10-02  Mark Mitchell  
3214
 
3215
        * mingw-hdep.c (gdb_select): Stop helper threads before returning.
3216
        * ser-mingw.c (enum select_thread_state): New type.
3217
        (struct ser_console_state): Add have_started and thread_state.
3218
        (select_thread_wait): New function.
3219
        (thread_fn_type): New type.
3220
        (create_select_thread): New function.
3221
        (destroy_select_thread): Likewise.
3222
        (start_select_thread): Likewise.
3223
        (stop_select_thread): Likewise.
3224
        (console_select_thread): Use new functions.
3225
        (pipe_select_thread): Likewise.
3226
        (file_select_thread): Likewise.
3227
        (ser_console_wait_handle): Likewise.
3228
        (ser_console_done_wait_handle): Likewise.
3229
        (ser_console_close): Likewise.
3230
        (free_pipe_state): Likewise.
3231
        (pipe_wait_handle): Likewise.
3232
        (pipe_done_wait_handle): Likewise.
3233
        (struct net_windows_state): Derive from ser_console_state.
3234
        (net_windows_select_thread): Use new functions.
3235
        (net_windows_wait_handle): Likewise.
3236
        (net_windows_done_wait_handle): Likewise.
3237
        (net_windows_close): Likewise.
3238
 
3239
2007-10-02  Daniel Jacobowitz  
3240
 
3241
        * inflow.c (terminal_ours_1): Remove useless line.
3242
 
3243
2007-10-02  Daniel Jacobowitz  
3244
 
3245
        * mips-tdep.c (mips_read_fp_register_double): Correct check for
3246
        odd FP registers.
3247
        (mips_print_fp_register): Correct check for even FP registers.
3248
        (mips_virtual_frame_pointer): New function.
3249
        (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3250
 
3251
2007-09-30  Mike Frysinger  
3252
 
3253
        * value.h (lookup_only_internalvar): New prototype.
3254
        (create_internalvar): Likewise.
3255
        * value.c (lookup_only_internalvar): New function.
3256
        (create_internalvar): Likewise.
3257
        (lookup_internalvar): Use new lookup_only_internalvar and
3258
        create_internalvar functions.
3259
        * parse.c (write_dollar_variable): Look up $ symbols in internal
3260
        table first rather than last.
3261
 
3262
2007-09-30  Daniel Jacobowitz  
3263
 
3264
        * linux-nat.c (linux_nat_new_thread): New variable.
3265
        (linux_child_follow_fork): Set inferior_ptid to include LWP ID.  Use
3266
        linux_nat_switch_fork.
3267
        (lwp_list): Make public.
3268
        (add_lwp): Call linux_nat_new_thread.
3269
        (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3270
        the new thread.
3271
        (resume_callback): Clear lp->siginfo.  Remove unused variable.
3272
        (linux_nat_resume): Assert that the LWP list is already initialized.
3273
        Clear lp->siginfo.
3274
        (save_siginfo): New.
3275
        (stop_wait_callback, linux_nat_wait): Call it.
3276
        (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3277
        * linux-nat.h (struct lwp_info): Add siginfo.
3278
        (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3279
        (ALL_LWPS): Define.
3280
 
3281
        * amd64-linux-nat.c (amd64_linux_dr): New.
3282
        (amd64_linux_dr_get): Take a PTID argument.  Correct typo.
3283
        (amd64_linux_dr_set): Take a PTID argument.
3284
        (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3285
        (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3286
        (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3287
        (amd64_linux_new_thread): New.
3288
        (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3289
        * i386-linux-nat.c (i386_linux_dr): New.
3290
        (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3291
        (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3292
        (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3293
        (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3294
        (i386_linux_new_thread): New.
3295
        (i386_linux_resume): Remove unnecessary PID check.
3296
        (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3297
        * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3298
        (fetch_debug_register, fetch_debug_register_pair): Delete.
3299
        (debug_registers): New.
3300
        (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3301
        ALL_LWPS and debug_registers.
3302
        (ia64_linux_new_thread): New.
3303
        (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3304
        (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3305
        * ppc-linux-nat.c (last_stopped_data_address): Delete.
3306
        (saved_dabr_value): New.
3307
        (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3308
        ALL_LWPS.
3309
        (ppc_linux_new_thread): New.
3310
        (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3311
        (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3312
        (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3313
        * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3314
        after reading it.
3315
        (s390_fix_watch_points): Take a PTID argument.
3316
        (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3317
        (_initialize_s390_nat): Call linux_nat_set_new_thread.
3318
 
3319
2007-09-30  Daniel Jacobowitz  
3320
            Jeff Johnston  
3321
 
3322
        * breakpoint.c (watchpoints_triggered): New.
3323
        (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3324
        Check watchpoint_triggered instead.  Combine handling for software
3325
        and hardware watchpoints.  Do not use target_stopped_data_address
3326
        here.  Always check a watchpoint if its scope breakpoint triggers.
3327
        Do not stop for thread or overlay events.  Improve check for
3328
        triggered watchpoints without a value change.
3329
        (watch_command_1): Insert the scope breakpoint first.  Link the
3330
        scope breakpoint to the watchpoint.
3331
        * breakpoint.h (enum watchpoint_triggered): New.
3332
        (struct breakpoint): Add watchpoint_triggered.
3333
        (bpstat_stop_status): Update prototype.
3334
        (watchpoints_triggered): Declare.
3335
        * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3336
        (stepped_after_stopped_by_watchpoint): Delete.
3337
        (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3338
        local.  Handle infwait_step_watch_state.  Update calls to
3339
        bpstat_stop_status.  Use watchpoints_triggered to check
3340
        watchpoints.
3341
        * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3342
        (remote_stopped_data_address): Do not check it.
3343
 
3344
2007-09-29  Daniel Jacobowitz  
3345
 
3346
        * configure.ac: Add $LIBINTL when testing libbfd.
3347
        * configure: Regenerated.
3348
 
3349
2007-09-28  Vladimir Prus  
3350
 
3351
        * NEW: Mention pending breakpoint changes and
3352
        support for breakpoints at multiple locations.
3353
 
3354
2007-09-27  Daniel Jacobowitz  
3355
 
3356
        * arm-linux-tdep.c (arm_linux_software_single_step): New.
3357
        (arm_linux_init_abi): Use it.
3358
        * arm-tdep.c (arm_get_next_pc): Make global.  Handle all-ones
3359
        condition correctly.
3360
        * arm-tdep.h (arm_get_next_pc): Declare.
3361
        * Makefile.in (arm-linux-tdep.o): Update.
3362
 
3363
2007-09-26  Vladimir Prus  
3364
 
3365
        * varobj.c (install_new_value): Don't
3366
        call value_get_print_value when a value is
3367
        lazy.  Update the print_value member in a
3368
        single place.
3369
 
3370
2007-09-26  Vladimir Prus  
3371
 
3372
        * breakpoint.c (create_breakpoint): Set
3373
        condition on each location, not on the first
3374
        location of breakpoint.
3375
 
3376
2007-09-26  Jim Blandy  
3377
 
3378
        * remote.c (getpkt_sane): Fix error message.  No animals were
3379
        harmed in the making of this debugger.
3380
 
3381
2007-09-26  Pierre Muller  
3382
 
3383
        * p-typeprint.c: Fix 11 ARI reported problems.
3384
        (pascal_print_type): Fix 4 operator at end of line.
3385
        (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3386
        using strncmp function.
3387
        (pascal_type_print_base): Fix 2 operator at end of line.
3388
        (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3389
        using strncmp function.
3390
 
3391
 
3392
2007-09-26  Pierre Muller  
3393
 
3394
        * Fix PR pascal/2231
3395
        dwarf2read.c (read_subroutine_type):
3396
        All pascal functions are prototyped.
3397
 
3398
2007-09-26  Pierre Muller  
3399
 
3400
        * Fix PR pascal/2283
3401
        p-valprint.c (pascal_val_print): correct current language check.
3402
        Also print array of char as strings.
3403
 
3404
 
3405
2007-09-26  David Ung  
3406
            Maciej W. Rozycki  
3407
 
3408
        * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3409
 
3410
2007-09-25  Pierre Muller  
3411
 
3412
        * p-exp.y: Fix 12 ARI reported problems.
3413
        (name_not_typename): Fix 2 operator at end of line issues.
3414
        (yylex): Fix 3 operator at end of line issues.
3415
        Replace 7 DEPRECATED_STREQ macros using strcmp function.
3416
 
3417
2007-09-25  David Ung  
3418
            Maciej W. Rozycki  
3419
 
3420
        * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3421
        rules return composite types in registers as appropriate.
3422
 
3423
2007-09-24  Jim Blandy  
3424
 
3425
        * symfile.h (struct symfile_segment_data): Doc fixes.
3426
        * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3427
        Assert that we were passed some loaded segment addresses,
3428
        and that sections' segment numbers are valid.
3429
        Simplify offset calculation.
3430
        * remote.c (get_offsets): Clarify selection of relocate-by-segment
3431
        strategy, and set num_segments correctly.  Delete redundant
3432
        assignments to do_sections.
3433
 
3434
2007-09-24  Daniel Jacobowitz  
3435
 
3436
        * frame.c (get_prev_frame_1): Also check for PC in the same register.
3437
 
3438
2007-09-24  Vladimir Prus  
3439
 
3440
        * breakpoint.c (remove_sal): New.
3441
        (expand_line_sal_maybe): New.
3442
        (create_breakpoints): Call expand_line_sal_maybe.
3443
        (clear_command): Add comment.
3444
        (breakpoint_re_set_one): Call expand_line_sal_maybe.
3445
        * linespec.c (decode_indirect): Set explicit_pc to 1.
3446
        (decode_all_digits): Set explicit_line to 1.
3447
        (append_expanded_sal): New.
3448
        (expand_line_sal): New.
3449
        * linespec.h (expand_line_sal): Declare.
3450
        * symtab.c (init_sal): Initialize explicit_pc
3451
        and explicit_line.
3452
        * symtab.h (struct symtab_and_line): New fields
3453
        explicit_pc and explicit_line.
3454
 
3455
2007-09-23  Daniel Jacobowitz  
3456
 
3457
        * infcall.c (call_function_by_hand): Handle language-specific
3458
        pass and return by reference.
3459
 
3460
        * cp-abi.c (cp_pass_by_reference): New.
3461
        * cp-abi.h (cp_pass_by_reference): Declare.
3462
        (struct cp_abi_ops): Add pass_by_reference.
3463
        * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3464
        (init_gnuv3_ops): Set pass_by_reference.
3465
 
3466
        * language.c (language_pass_by_reference): New.
3467
        (default_pass_by_reference): New.
3468
        (unknown_language_defn, auto_language_defn, local_language_defn): Add
3469
        default_pass_by_reference.
3470
        * langauge.h (struct language_defn): Add la_pass_by_reference.
3471
        (language_pass_by_reference, default_pass_by_reference): Declare.
3472
        * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3473
        * c-lang.c (c_language_defn, asm_language_defn)
3474
        (minimal_language_defn): Likewise.
3475
        (cplus_language_defn): Add cp_pass_by_reference.
3476
        * f-lang.c (f_language_defn): Add default_pass_by_reference.
3477
        * jv-lang.c (java_language_defn): Likewise.
3478
        * m2-lang.c (m2_language_defn): Likewise.
3479
        * objc-lang.c (objc_language_defn): Likewise.
3480
        * p-lang.c (pascal_language_defn): Likewise.
3481
        * scm-lang.c (scm_language_defn): Likewise
3482
 
3483
2007-09-23  Vladimir Prus  
3484
 
3485
        Allow a code breakpoint to have several locations
3486
        associated with it.
3487
        * breakpoint.h (enum enable_state): Remove the
3488
        bp_shlib_disabled enumerator.
3489
        (struct bp_location): New members shlib_disabled,
3490
        global_next, enabled and function_name.
3491
        Rename pending to condition_not_parsed.
3492
 
3493
        * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3494
        (ALL_BP_LOCATIONS_SAFE): Likewise.
3495
        (breakpoint_enabled): Don't check for pending.
3496
        (condition_command): Free and update all locations of
3497
        a breakpoint.
3498
        (insert_bp_location): Adjust.
3499
        (software_breakpoint_inserted_here_p): Don't care
3500
        if breakpoint is enabled, as soon as it's inserted.
3501
        (print_it_typical): Print bpstat's location, not
3502
        bpstat's breakpoint's location.
3503
        (bpstat_stop_status): Iterate over all locations, not
3504
        all breakpoints.
3505
        (print_breakpoint_location): New.
3506
        (print_one_breakpoint): Renamed to
3507
        (print_one_breakpoint_location): ...this. Take
3508
        parameters to describe which location is being
3509
        printed. Modify code to properly print header
3510
        for several locations and individual locations.
3511
        (print_one_breakpoint): Print all locations.
3512
        (breakpoint_has_pc): New.
3513
        (describe_other_breakpoints): Use the above.
3514
        (check_duplicates): Renamed to...
3515
        (check_duplicates_for): .. this.
3516
        (check_duplicates): Use check_duplicates_for.
3517
        (allocate_bp_location): Adjust.
3518
        (set_raw_breakpoint_without_location): New,
3519
        extracted from set_raw_breakpoint.
3520
        (set_breakpoint_location_function): New.
3521
        (set_raw_breakpoint): Use
3522
        set_raw_breakpoint_without_location.
3523
        (make_breakpoint_permanent): Mark all locations
3524
        as inserted.
3525
        (disable_breakpoints_in_shlibs): Iterate over
3526
        locations.
3527
        (disable_breakpoints_in_unloaded_shlib): Likewise.
3528
        (re_enable_breakpoints_in_shlibs): Likewise.
3529
        (mention): Say "pending" when breakpoint has
3530
        zero locations.  If breakpoint has more than one
3531
        location, say so.
3532
        (add_location_to_breakpoint): New.
3533
        (create_breakpoint): Accept symtabs_and_lines, not
3534
        symtab_and_line. Pass extra sals to
3535
        add_location_to_breakpoint.
3536
        (create_breakpoints): Pass symtabs_and_lines to
3537
        create_breakpoints.
3538
        (break_command_1): Make pending breakpoints
3539
        have zero locations.
3540
        (do_captured_breakpoint): Remove wrong allocation.
3541
        (clear_command): Iterate over all locations.
3542
        (unlink_locations_from_global_list): Renamed
3543
        from unlink_location_from_global_list. Remove
3544
        all locations.
3545
        (delete_breakpoint): Remove all locations.
3546
        Iterate over all locations when deciding which
3547
        other location to re-enable.
3548
        (all_locations_are_pending): New.
3549
        (update_breakpoint_locations): Renamed from
3550
        update_breakpoint_location. Try to match old
3551
        and new locations using names of containing
3552
        functions.
3553
        (breakpoint_re_set_one): Adjust.
3554
        (find_location_by_number): New.
3555
        (disable_command): Allow disabling individual location.
3556
        (enable_command): Allow enabling individual location.
3557
        * breakpoint.c: Adjust all uses of breakpoint's
3558
        enable state to for bp_shlib_disabled change.
3559
 
3560
2007-09-22  Vladimir Prus  
3561
 
3562
        * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3563
        (resolve_pending_breakpoint): Remove.
3564
        (re_enable_breakpoints_in_shlibs): Remove.
3565
        (unlink_locations_from_global_list): New.
3566
        (update_breakpoint_locations): New.
3567
        (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3568
        Use parse_condition and update_breakpoint_location to
3569
        reset breakpoint.  Ignore 'symbol not found' error from
3570
        decode_line_1.
3571
        (breakpoint_re_set): Don't emit newline before the
3572
        reason why breakpoint is not reset.
3573
        (do_enable_breakpoint): Don't specially process pending
3574
        breakpoints.
3575
        (free_bp_location): New.
3576
        (break_command_1): For pending breakpoints, initialize
3577
        all fields of a sal with zeroes.
3578
        * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3579
        * infcmd.c (post_create_inferior): Don't call
3580
        re_enable_breakpoints_in_shlibs.
3581
        * infrun.c (handle_inferior_event): Likewise.
3582
        * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3583
        * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3584
        * win32-nat.c (get_win32_debug_event): Likewise.
3585
 
3586
2007-09-22  Vladimir Prus  
3587
 
3588
        * breakpoint.c (create_breakpoint): Split from
3589
        create_breakpoints, implementing most of its logic.
3590
        Take just a single sal, single address string and
3591
        single condition.  Do not take parsed condition at
3592
        all.
3593
        (create_breakpoints): Just call create_breakpoint
3594
        for each sal.
3595
        (find_condition_and_thread): New.
3596
        (break_command_1): Use find_condition_and_thread.
3597
        Do not keep parsed conditions.
3598
        (do_captured_breakpoint): Don't convert
3599
        condition string to struct expression.
3600
 
3601
2007-09-22  Vladimir Prus  
3602
 
3603
        * breakpoint.h (struct breakpoint): Move the cond
3604
        field to...
3605
        (struct bp_location): Here.
3606
        * breakpoint.c (condition_command, bpstat_stop_status)
3607
        (print_one_breakpoint, allocate_bp_location)
3608
        (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3609
        (create_exec_event_catchpoint, create_breakpoints)
3610
        (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3611
        (create_ada_exception_breakpoint, set_breakpoint_sal)
3612
        (delete_breakpoint, breakpoint_re_set_one): Adjust.
3613
        * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3614
 
3615
2007-09-22  Vladimir Prus  
3616
 
3617
        Associate bp_stat with bp_location, not breakpoint.
3618
        * breakpoint.h (breakpoint_at): Change type
3619
        to bp_location*.
3620
        * breakpoint.c (bpstat_alloc): Take bp_location,
3621
        not breakpoint.
3622
        (bpstat_find_breakpoint): Look at bpstat's location's
3623
        owner, not at bpstat->breakpoint_at.
3624
        (bpstat_find_step_resume_breakpoint): Likewise.
3625
        (bpstat_num): Likewise.
3626
        (print_it_typical): Likewise.
3627
        (print_bp_stop_message): Likewise.
3628
        (watchpoint_check): Likewise.
3629
        (bpstat_what): Likewise.
3630
        (bpstat_get_triggered_catchpoints): Likewise.
3631
        (breakpoint_auto_delete): Likewise.
3632
        (delete_breakpoint): Likewise.
3633
        (bpstat_stop_status): Pass location, not breakpoint,
3634
        to bpstat_alloc.  Look at bpstat's location's
3635
        owner, not at bpstat->breakpoint_at.
3636
 
3637
2007-09-21  Jim Blandy  
3638
 
3639
        * macrotab.h (new_macro_table): Document that removing information
3640
        from an obstack/bcache-managed macro table leaks memory.
3641
        * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3642
        that data is never freed in obstack/bcache-managed macro tables,
3643
        just leak the storage.
3644
        (macro_undef): If we're undefining a macro at exactly the same
3645
        source location that we defined it, simply remove the definition
3646
        altogether.
3647
 
3648
2007-09-21  Joel Brobecker  
3649
 
3650
        * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3651
        * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3652
        Adjust the struct sym_fns object accordingly by setting
3653
        the new field to NULL.
3654
        * xcoffread.c (aix_process_linenos): Make static.
3655
        (xcoff_sym_fns): Set new field to aix_process_linenos.
3656
        * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3657
        by call to new the new sym_fns sym_read_linetable function.
3658
        * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3659
        * config/rs6000/tm-rs6000.h: Delete.
3660
 
3661
2007-09-21  David Ung  
3662
            Maciej W. Rozycki  
3663
 
3664
        * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3665
        rules do not treat composite types specially.
3666
 
3667
2007-09-20  Maciej W. Rozycki  
3668
 
3669
        * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3670
        (mips16_in_function_epilogue_p): Likewise.
3671
        (mips_in_function_epilogue_p): Likewise.
3672
        (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3673
 
3674
2007-09-19  Joel Brobecker  
3675
 
3676
        * configure.ac: Add check for "etext".
3677
        * configure, config.in: Regenerate.
3678
        * maint.c (TEXTEND): Only define if either _etext or etext
3679
        are available.
3680
        Disable the profiling functionality if TEXTEND is not defined.
3681
 
3682
2007-09-19  Daniel Jacobowitz  
3683
 
3684
        * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3685
        address register.  Correct the call to frame_id_build.
3686
        (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3687
        is invalid.
3688
 
3689
2007-09-18  Joel Brobecker  
3690
 
3691
        * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3692
        the linetable past the function end.
3693
 
3694
2007-09-18  James E. Wilson  
3695
 
3696
        * MAINTAINERS: Update my email address.
3697
 
3698
2007-09-18  Jerome Guitton  
3699
 
3700
        * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3701
        (inf_ttrace_delete_dying_threads_callback): New function.
3702
        (inf_ttrace_resume): After resuming the execution, iterate over
3703
        the dying threads to delete them for the thread list.
3704
        (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3705
        mark the corresponding thread as dying instead of removing it
3706
        from the thread list.
3707
        (inf_ttrace_thread_alive): return 0 for dying threads.
3708
 
3709
2007-09-17  Joel Brobecker  
3710
 
3711
        * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3712
        that return_frame is not null.
3713
 
3714
2007-09-17  Joel Brobecker  
3715
 
3716
        * solib-svr4.c: Add include of "auxv.h".
3717
        (enable_break): Use the AT_BASE auxiliary entry if available.
3718
        * Makefile.in (solib-svr4.o): Update dependencies.
3719
 
3720
2007-09-17  Joel Brobecker  
3721
 
3722
        * NEWS: Create a new section for the next release branch.
3723
        Rename the section of the current branch, now that it has
3724
        been cut.
3725
 
3726
2007-09-17  Jerome Guitton  
3727
 
3728
        * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3729
        * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3730
 
3731
2007-09-16  Vladimir Prus  
3732
 
3733
        * mi/mi-cmds.c (mi_cmds): Register -list-features.
3734
        * mi/mi-cmds.h (mi_cmd_list_features): New.
3735
        * mi/mi-main.c (mi_cmd_list_features): New.
3736
 
3737
2007-09-11  Joel Brobecker  
3738
 
3739
        GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3740
        * version.in: Bump version to 6.7.50-20070911-cvs.
3741
 
3742
2007-09-10  Daniel Jacobowitz  
3743
 
3744
        * thread.c (free_thread): Do not delete the step resume breakpoint
3745
        right away.
3746
 
3747
2007-09-10  Daniel Jacobowitz  
3748
 
3749
        * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3750
        * corelow.c (core_read_description): New.
3751
        (init_core_ops): Set to_read_description.
3752
        * gdbarch.sh: Add gdbarch_core_read_description.
3753
        * mips-linux-tdep.c (mips_linux_core_read_description): New.
3754
        (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3755
        * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3756
        (mips_register_g_packet_guesses): Use them.
3757
        (_initialize_mips_tdep): Initialize them.
3758
        * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3759
        * gdbarch.h, gdbarch.c: Regenerated.
3760
 
3761
2007-09-10  Ulrich Weigand  
3762
 
3763
        * infrun.c (stepping_past_breakpoint): New global variable.
3764
        (stepping_past_breakpoint_ptid): Likewise.
3765
        (prepare_to_proceed): Add STEP parameter.  Do not check for Ctrl-C.
3766
        Only switch threads if we need to single-step over a breakpoint hit
3767
        in the previously selected thread.  If stepping, remember previous
3768
        thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID].  Call
3769
        switch_to_thread instead of copying its contents.
3770
        (proceed): Pass STEP to prepare_to_proceed.  Always set ONEPROC if
3771
        prepare_to_proceed returns true.
3772
        (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3773
        (context_switch): Call switch_to_thread.
3774
        (handle_inferior_event): Switch back to previous thread if requested
3775
        in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3776
        * gdbthread.h (switch_to_thread): Add prototype.
3777
        * thread.c (switch_to_thread): Make global.
3778
 
3779
2007-09-07  Pierre Muller  
3780
 
3781
         * p-valprint.c: Fix 7 ARI reported problems.
3782
         (pascal_val_print): Fix one operator at end of line issue.
3783
         Use paddress function to remove use of
3784
         deprecated_print_address_numeric function (2 times).
3785
         Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3786
         (pascal_value_print): Fix 3 operator at end of line issues.
3787
 
3788
2007-09-07  Daniel Jacobowitz  
3789
 
3790
        PR gdb/2103
3791
        * arm-tdep.c (arm_in_call_stub): Delete.
3792
        (arm_skip_stub): Handle from_arm and from_thumb stubs.
3793
 
3794
2007-09-06  Daniel Jacobowitz  
3795
 
3796
        * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3797
        types.
3798
 
3799
2007-09-04  Daniel Jacobowitz  
3800
            Jim Blandy  
3801
 
3802
        * NEWS: Update description of string changes.  Mention print/s.
3803
        * c-valprint.c (textual_element_type): New.
3804
        (c_val_print): Use it.  Do not skip address printing for pointers
3805
        with a string format.
3806
        (c_value_print): Doc update.
3807
        * dwarf2read.c (read_array_type): Use make_vector_type.
3808
        * gdbtypes.c (make_vector_type): New.
3809
        (init_vector_type): Use it.
3810
        (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3811
        (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3812
        * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3813
        (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3814
        (make_vector_type): New.
3815
        * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3816
        Call the language print routine for string format.
3817
        (print_scalar_formatted): Call val_print for string format.  Handle
3818
        unsigned original types for char format.
3819
        (validate_format): Do not reject string format.
3820
        * stabsread.c (read_type): Use make_vector_type.
3821
        * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3822
 
3823
2007-09-04  Michael Snyder  
3824
 
3825
        * expprint.c (print_subexp_standard): Check strchr for null.
3826
        * Makefile.in (expprint.o): Depend on gdb_assert.h.
3827
 
3828
        * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3829
 
3830
        * stabsread.c (patch_block_status): Guard against null.
3831
        * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3832
 
3833
2007-09-04  Daniel Jacobowitz  
3834
 
3835
        * printcmd.c (printf_command): Handle ptr_arg.  Correct typo
3836
        in internal error message.
3837
 
3838
2007-09-04  Pedro Alves  
3839
            Daniel Jacobowitz  
3840
 
3841
        * infcmd.c (post_create_inferior): Update comment.
3842
        (run_command_1): Always call post_create_inferior with 0 as
3843
        from_tty.
3844
 
3845
        * i386-cygwin-tdep.h: New.
3846
        * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3847
        (win32_xfer_shared_library): Make it extern.
3848
 
3849
        * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3850
        i386-cygwin-tdep.h.
3851
        (win32_so_ops): Delete.
3852
        (get_relocated_section_addrs): Delete.
3853
        (solib_symbols_add): Delete.
3854
        (register_loaded_dll): Delete.
3855
        (win32_make_so): New.
3856
        (handle_load_dll): Use win32_make_so.
3857
        (win32_free_so): Free the passed in so.
3858
        (win32_relocate_section_addresses): Delete.
3859
        (win32_solib_create_inferior_hook): Delete.
3860
        (handle_unload_dll): Don't add PE offset here.  Free so with
3861
        win32_free_so instead of free_so.
3862
        (win32_special_symbol_handling): Delete.
3863
        (get_win32_debug_event): Remove unneeded calls.  Set state to
3864
        TARGET_WAITKIND_LOADED on a dll unload.
3865
        (do_initial_win32_stuff): Clear cygwin_load_start and
3866
        cygwin_load_end.
3867
        (map_code_section_args): Delete.
3868
        (dll_code_sections_add): Delete.
3869
        (core_section_load_dll_symbols): Delete.
3870
        (win32_xfer_shared_libraries): New.
3871
        (win32_current_sos): Delete.
3872
        (win32_xfer_partial): New.
3873
        (open_symbol_file_object): Delete.
3874
        (in_dynsym_resolve_code): Delete.
3875
        (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3876
        of win32_ops.  Remove win32_so_ops settings.  Don't set
3877
        current_target_so_ops here.
3878
 
3879
        * Makefile.in (i386_cygwin_tdep_h): New variable.
3880
        (i386-cygwin-tdep.o): Update dependencies.
3881
        (win32-nat.o): Update dependencies.
3882
 
3883
2007-09-04  Pedro Alves  
3884
            Daniel Jacobowitz  
3885
 
3886
        * gdbarch.sh (core_xfer_shared_libraries): New.
3887
 
3888
        * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3889
 
3890
        * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3891
 
3892
        * xml-support.c (gdb_xml_parse): Debug output tweaks.
3893
        (xml_escape_text): New.
3894
        * xml-support.h (xml_escape_text): Declare.
3895
 
3896
        * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3897
        * config/i386/cygwin.mt (TDEPFILES): ... here.
3898
 
3899
        * win32-nat.c: (fetch_elf_core_registers): Delete.
3900
        (win32_elf_core_fn): Delete.
3901
        (_initialize_core_win32): Delete.
3902
 
3903
        * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3904
        "xml-support.h" and "gdbcore.h".
3905
        (i386_win32_gregset_reg_offset): New.
3906
        (I386_WIN32_SIZEOF_GREGSET): New.
3907
        (i386_win32_regset_from_core_section): New.
3908
        (win32_xfer_shared_library): New.
3909
        (struct cpms_data): New.
3910
        (core_process_module_section): New.
3911
        (win32_core_xfer_shared_libraries): New.
3912
        (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3913
        gregset_num_regs, sizeof_gregset members of tdep.  Register
3914
        regset_from_core_section and core_xfer_shared_libraries callbacks.
3915
 
3916
        * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3917
        * gdbarch.h, gdbarch.c: Regenerate.
3918
 
3919
2007-09-03  Daniel Jacobowitz  
3920
 
3921
        * corelow.c (core_xfer_partial): Pass writebuf to
3922
        deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3923
 
3924
2007-09-03  Pedro Alves  
3925
 
3926
        * arm-tdep.h (arm_skip_stub): Declare.
3927
        * arm-wince-tdep.c: Don't include "solib-svr4.h".  Include
3928
        "gdbcore.h".
3929
        (arm_pe_skip_trampoline_code): New function.
3930
        (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3931
        gdbarch_skip_trampoline_code callback.
3932
        * Makefile.in (arm-wince-tdep.o): Update dependencies.
3933
 
3934
2007-09-03  Daniel Jacobowitz  
3935
 
3936
        * MAINTAINERS: Move Fred Fish to Past Maintainers.
3937
 
3938
2007-09-03  Daniel Jacobowitz  
3939
 
3940
        * configure.ac: Add --with-expat.
3941
        * configure: Regenerated.
3942
 
3943
2007-09-03  Andreas Schwab  
3944
 
3945
        * configure.ac: Accept --with-system-readline.
3946
        (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3947
        * configure: Regenerate.
3948
        * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3949
        substituted values.
3950
        (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3951
 
3952
2007-09-03  Maxim Grigoriev  
3953
            Daniel Jacobowitz  
3954
 
3955
        * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3956
 
3957
2007-09-02  Jan Kratochvil  
3958
 
3959
        * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3960
 
3961
2007-09-02  Daniel Jacobowitz  
3962
 
3963
        * top.c (print_gdb_version): Update for GPL version 3.
3964
 
3965
2007-09-02  Jan Kratochvil  
3966
 
3967
        * NEWS: Mention the build-id .debug files verification.
3968
 
3969
2007-09-02  Jan Kratochvil  
3970
 
3971
        * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3972
 
3973
2007-09-01  Jan Kratochvil  
3974
 
3975
        * Makefile.in (symfile.o): Update dependencies.
3976
        * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3977
        DEBUGFILE variable.  FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3978
        (struct build_id): New structure.
3979
        (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3980
        (find_separate_debug_file): New variable BUILD_ID.
3981
        Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3982
 
3983
2007-08-31  Vladimir Prus  
3984
 
3985
        * varobj.c (struct varobj): Fix comment
3986
        for the type member not to lie when it can be
3987
        NULL.
3988
 
3989
2007-08-31  Vladimir Prus  
3990
 
3991
        Implement -var-info-path-expression.
3992
 
3993
        * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3994
        Declare.
3995
        * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3996
        * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3997
        * varobj.c (struct varobj): New field 'path_expr'.
3998
        (c_path_expr_of_child, cplus_path_expr_of_child)
3999
        (java_path_expr_of_child): New.
4000
        (struct language_specific): New field path_expr_of_child.
4001
        (varobj_create): Initialize the path_expr field.
4002
        (varobj_get_path_expr): New.
4003
        (new_variable): Initialize the path_expr field.
4004
        (free_variable): Free the path_expr field.
4005
        (adjust_value_for_children_access): New parameter
4006
        WAS_TYPE.
4007
        (c_number_of_children): Adjust.
4008
        (c_describe_child): New parameter CFULL_EXPRESSION.
4009
        Compute full expression.
4010
        (c_value_of_child, c_type_of_child): Adjust.
4011
        (cplus_number_of_children): Adjust.
4012
        (cplus_describe_child): New parameter CFULL_EXPRESSION.
4013
        Compute full expression.
4014
        (cplus_name_of_child, cplus_value_of_child)
4015
        (cplus_type_of_child): Adjust.
4016
        * varobj.h (varobj_get_path_expr): Declare.
4017
 
4018
2007-08-31  Vladimir Prus  
4019
 
4020
        * mi/mi-cmd-var.c (print_varobj): If a varobj
4021
        type is NULL, don't try to print it.
4022
 
4023
2007-08-30  Alan Modra  
4024
 
4025
        * ppc-linux-nat.c (right_fill_reg): Delete.
4026
        (supply_gregset): Use ppc_supply_gregset.
4027
        (supply_fpregset): Use ppc_supply_fpregset.
4028
        (fill_gregset): Use ppc_collect_gregset.
4029
        (fill_fpregset): Use ppc_collect_fpregset.
4030
        * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
4031
        (right_supply_register, ppc_linux_supply_gregset): Delete.
4032
        (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
4033
        (ppc_linux_supply_fpregset): Delete.
4034
        (ppc_linux_collect_gregset): New function.
4035
        (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
4036
        (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
4037
        ppc_linux_supply_gregset, and ppc_collect_gregset.
4038
        (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
4039
        (ppc_linux_gregset, ppc_linux_fpregset): New functions.
4040
        (ppc_linux_regset_from_core_section): Update.
4041
        * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
4042
        (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
4043
        (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
4044
        * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
4045
        (ppcobsd_collect_gregset): Likewise.
4046
        (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
4047
        * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
4048
        * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
4049
        * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
4050
        (rs6000_aix64_reg_offsets): Likewise.
4051
        (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
4052
        ppc_floating_point_unit_p.
4053
        (rs6000_aix_collect_regset): Similarly.
4054
        * rs6000-tdep.c (ppc_supply_reg): Add regsize param.  Adjust offset
4055
        when regsize is larger than regcache register size.
4056
        (ppc_collect_reg): Similarly zero pad when regsize is larger than
4057
        regcache register size.
4058
        (ppc_greg_offset): New function, split out from..
4059
        (ppc_supply_gregset): ..here.  Separate code handling all regs from
4060
        single reg case.  Correct xer offset.
4061
        (ppc_fpreg_offset): New function, split out from..
4062
        (ppc_supply_fpregset): ..here.  Separate code handling all regs from
4063
        single reg case.
4064
        (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
4065
        (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
4066
        a fp unit, instead return if no fp.
4067
 
4068
2007-08-29  Jim Blandy  
4069
 
4070
        * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
4071
        this code has not been compiled for two years.
4072
 
4073
2007-08-29  Michael Snyder  
4074
 
4075
        * event-top.c (gdb_readline2): Return after EOF.
4076
 
4077
2007-08-29  Joel Brobecker  
4078
 
4079
        * symtab.c: Remove a function that has been commented out 3 years ago.
4080
 
4081
2007-08-29  Randolph Chung  
4082
 
4083
        * hppa-tdep.c (hppa32_cannot_fetch_register)
4084
        (hppa64_cannot_fetch_register): New functions.
4085
        (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
4086
        * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
4087
 
4088
2007-08-28  Michael Snyder  
4089
 
4090
        * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
4091
        check for null before calling check_typedef.
4092
 
4093
        * NEWS: Mention Coverity bug fixes.
4094
 
4095
2007-08-27  Markus Deuling  
4096
 
4097
        * spu-tdep.c (spu_pointer_to_address): New function.
4098
        (spu_integer_to_address): Likewise.
4099
        (spu_gdbarch_init): Add spu_pointer_to_address and
4100
        spu_integer_to_address to gdbarch.
4101
 
4102
2007-08-26  Pedro Alves  
4103
 
4104
        * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
4105
 
4106
2007-08-23  Joel Brobecker  
4107
 
4108
        * Makefile.in (copying.c): Use the top-level COPYING3 as the file
4109
        that contains the GDB license.
4110
        * copying.awk: Adjust to the GPLv3 wording.
4111
        * copying.c: Regenerate.
4112
 
4113
2007-08-23  Joel Brobecker  
4114
 
4115
        * copying.awk: Protoization, and i18n markup.
4116
 
4117
2007-08-23  Joel Brobecker  
4118
 
4119
        * config/djgpp/djconfig.sh: Switch license to GPLv3.
4120
        * copyright.sh: Likewise.
4121
        * gdb-events.sh: Likewise.
4122
        * gdb_gcore.sh: Likewise.
4123
        * gdb_mbuild.sh: Likewise.
4124
        * gdbarch.sh: Likewise.
4125
        * observer.sh: Likewise.
4126
        * features/feature_to_c.sh: Likewise.
4127
        * regformats/regdat.sh: Likewise.
4128
 
4129
2007-08-23  Joel Brobecker  
4130
 
4131
        Switch the license of all .c files to GPLv3.
4132
        Switch the license of all .h files to GPLv3.
4133
        Switch the license of all .cc files to GPLv3.
4134
 
4135
2007-08-23  Joel Brobecker  
4136
 
4137
        * configure.ac: Switch license to GPLv3.
4138
 
4139
2007-08-22  Daniel Jacobowitz  
4140
 
4141
        * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
4142
        determine the file's FPU type.
4143
 
4144
2007-08-22  Daniel Jacobowitz  
4145
 
4146
        * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
4147
        (mips_n32n64_push_dummy_call): Always increment float_argreg along
4148
        with argreg.  Use mips_n32n64_fp_arg_chunk_p.
4149
 
4150
2007-08-22  Daniel Jacobowitz  
4151
 
4152
        * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
4153
        Fix formatting.
4154
        (elf_locate_base): Look for DT_MIPS_RLD_MAP first.  Expand comments.
4155
        (elf_lookup_lib_symbol): Fix formatting.
4156
 
4157
2007-08-21  Michael Snyder  
4158
 
4159
        * dbxread.c (read_dbx_symtab): Guard null deref.
4160
        Break up long line.
4161
 
4162
        * valops.c (find_overload_match): Guard against NULL.
4163
 
4164
2007-08-21  Daniel Jacobowitz  
4165
 
4166
        * MAINTAINERS (Patch Champions): Remove self.
4167
 
4168
2007-08-21  Chris Smith  
4169
 
4170
        * cli/cli-script.c (read_command_lines): Call dont_repeat for each
4171
        line.
4172
 
4173
2007-08-18  Michael Snyder  
4174
 
4175
        * stabsread.c (dbx_lookup_type): Memory leak.
4176
 
4177
        * event-loop.c (delete_async_signal_handler): Move pointer null
4178
        test to before pointer dereference.
4179
 
4180
        * ui-out.c (append_header_to_list): Possible cut and paste error.
4181
 
4182
        * MAINTAINERS: white space tweak.
4183
 
4184
2007-08-17  Michael Snyder  
4185
 
4186
        * stack.c (print_frame): Memory leak.
4187
 
4188
        * completer.c (filename_completer): Avoid memory leak.
4189
        Remove unnecessary nested block.
4190
 
4191
        * c-exp.y (parse_number): Memory leak.
4192
 
4193
        * completer.c (location_completer): Must free 'fn_list', except
4194
        in the one case where it is returned (as 'list').
4195
 
4196
        * varobj.c (value_of_root): Memory leak.
4197
 
4198
        * gdbtypes.h (virtual_base_list): Remove export decl.
4199
        * gdbtypes.c (virtual_base_list): Make static.  Not called outside.
4200
        (virtual_base_index): Memory leak.
4201
        (virtual_base_index_skip_primaries): Ditto.
4202
 
4203
2007-08-17  Maxim Grigoriev  
4204
 
4205
        * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
4206
        (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
4207
        (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
4208
        (xtensa_read_register): New function.
4209
        (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
4210
        (xtensa_insn_kind): New types.
4211
        (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
4212
        (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
4213
        (xtensa_verify_config, xtensa_pseudo_register_read)
4214
        (xtensa_pseudo_register_write, xtensa_extract_return_value)
4215
        (xtensa_store_return_value)
4216
        (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
4217
        (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
4218
        (xtensa_frame_this_id, xtensa_frame_prev_register)
4219
        (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
4220
        (call0_frame_cache, call0_frame_get_reg_at_entry)
4221
        (call0_classify_opcode, call0_track_op)
4222
        (call0_analyze_prologue, call0_frame_cache): New functions.
4223
 
4224
2007-08-17  Vladimir Prus  
4225
 
4226
        * breakpoint.c (bpstat_free): New.
4227
        (bpstat_clear): Use bpstat_free.
4228
        (delete_breakpoint): Document why we cannot
4229
        remove bpstats from stop_bpstat.
4230
        * breakpoint.h (bpstat_free): Declare.
4231
 
4232
2007-08-16  Michael Snyder  
4233
 
4234
        * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4235
 
4236
2007-08-15  Paul Hilfinger  
4237
            Joel Brobecker  
4238
 
4239
        * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4240
 
4241
2007-08-15  Paul Hilfinger  
4242
            Joel Brobecker  
4243
 
4244
        * ada-lang.c (possible_user_operator_p): Alternative fix to last
4245
        checkin guarding against NULL.
4246
 
4247
2007-08-14  Michael Snyder  
4248
 
4249
        * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4250
        tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4251
        tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4252
        go at beginning of new line.
4253
 
4254
        * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4255
        tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4256
        tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4257
        tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4258
        tui-winsource.h, tui.c, tui.h: Function declarations and
4259
        definitions, wrap long lines.
4260
 
4261
        * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4262
        tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4263
        Reformat block comments to GNU standard.
4264
 
4265
        * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4266
        tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4267
        tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4268
        tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4269
        tui.c, tui.h: Comment reformatting to coding standard (capitals,
4270
        spaces after periods, etc).
4271
 
4272
        * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4273
        tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4274
        tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4275
        tui-winsource.h: Whitespace changes, fix pointer declarations
4276
        to be consistant.
4277
 
4278
2007-08-14  Joel Brobecker  
4279
            Michael Snyder  
4280
 
4281
        * ada-lang.c (field_alignment): Guard against NULL.
4282
 
4283
2007-08-14  Joel Brobecker  
4284
 
4285
        * MAINTAINERS (Global Maintainers): Add self.
4286
 
4287
2007-08-14  Michael Snyder  
4288
 
4289
        * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4290
 
4291
        * ada-lang.c (possible_user_operator_p): Guard against NULL.
4292
 
4293
        * varobj.c (cplus_describe_child): Guard against null.
4294
        Use "NULL" instead of "0" to initialize pointers.
4295
 
4296
2007-08-14  Daniel Jacobowitz  
4297
 
4298
        * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4299
        to match any gdbarch with matching OSABI.  Set default ABI and FPU
4300
        after running the OSABI handler.
4301
 
4302
2007-08-14  Daniel Jacobowitz  
4303
 
4304
        * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4305
        * config/i386/linux.mt (TDEPFILES): ...to here.
4306
 
4307
2007-08-14  Vladimir Prus  
4308
 
4309
        * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4310
        the 'silent' parameter and code to implement that.
4311
        * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4312
        prototype.
4313
        * win32-nat.c: Adjust.
4314
        * solib.c: Adjust.
4315
 
4316
2007-08-14  Vladimir Prus  
4317
 
4318
        * breakpoint.c (update_breakpoints_after_exec): Don't
4319
        set address to zero.
4320
 
4321
2007-08-13  Michael Snyder  
4322
 
4323
        * valops.c: Whitespace clean-up.
4324
 
4325
        * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4326
 
4327
        * event-top.c (command_line_handler): Memory leak.
4328
 
4329
        * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4330
        No need to make copy.
4331
 
4332
        * source.c (find_source_lines): Require symtab 's'.
4333
 
4334
2007-08-11  Michael Snyder  
4335
 
4336
        * completer.c: Spelling fix in comments.
4337
 
4338
2007-08-10  Michael Snyder  
4339
 
4340
        * gdbtypes.c: Coding standard cleanup.
4341
        * gdbtypes.c: Comment/whitespace cleanup.
4342
 
4343
        * stabsread.c (read_huge_number): Attempt to compute value before
4344
        values that it depends on.
4345
 
4346
        * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4347
        (decode_objc): Use "NULL" instead of 0.
4348
        (find_method): Ditto.
4349
        (decode_all_digits): Ditto.
4350
        (decode_dollar): Ditto.
4351
 
4352
        * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4353
 
4354
        * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4355
 
4356
        * solib-svr4.c (enable_break): Don't free tmp_pathname until
4357
        after closing bfd.
4358
 
4359
        * completer.c: Comment/whitespace cleanup.
4360
 
4361
2007-08-10  Joel Brobecker  
4362
 
4363
        * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4364
 
4365
2007-08-10  Maxim Grigoriev  
4366
 
4367
        * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4368
        allocated file descriptors.
4369
 
4370
2007-08-10  Joel Brobecker  
4371
 
4372
        * Makefile.in: Minor cleanup throughout; add some missing variables,
4373
        add some missing rules, remove some rules that are no longer needed,
4374
        and fix the dependencies in several rules.
4375
 
4376
2007-08-10  Ludovic Courtès  
4377
 
4378
        * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4379
        (scm_lang_h, scm_tags_h): New.
4380
        (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4381
        (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4382
        * defs.h (enum language): Add `language_scm'.
4383
 
4384
        * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4385
        opening.
4386
 
4387
2007-08-09  Ludovic Courtès  
4388
 
4389
        * MAINTAINERS (Write After Approval): Add myself.
4390
 
4391
2007-08-09  Michael Snyder  
4392
 
4393
        * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4394
 
4395
2007-08-09  Joel Brobecker  
4396
 
4397
        * solib-som.c (som_relocate_section_addresses): Stop saving
4398
        the $CODE$ section in the so_list structure.
4399
 
4400
2007-08-08  Maxim Grigoriev  
4401
 
4402
        * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4403
        (xtensa_register_group_t): Add entries for coprocessors.
4404
        * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4405
        (xtensa_add_reggroups): Likewise.
4406
        (xtensa_register_reggroup_p): Likewise.
4407
        (xtensa_coprocessor_register_group): New function.
4408
        (xtensa_cp): New.
4409
 
4410
2007-08-08  Jan Kratochvil  
4411
 
4412
        * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4413
 
4414
2007-08-08  Michael Snyder  
4415
 
4416
        * target.c (target_read_string): Guard against null.
4417
 
4418
        * varobj.c (value_of_root): Move alloc after return to avoid leak.
4419
 
4420
        * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4421
        (tui_set_layout_for_display_command): Mem leak.
4422
 
4423
        * top.c (command_line_input): Memory leak.
4424
 
4425
        * solib-svr4.c (open_symbol_file_object): Memory leak.
4426
        (svr4_current_sos): Ditto.
4427
        (enable_break): Ditto.
4428
 
4429
        * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4430
 
4431
        * dwarf2read.c (add_partial_symbol): Memory leak.
4432
 
4433
2007-08-06  Michael Snyder  
4434
 
4435
        * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4436
 
4437
2007-08-05  Jim Blandy  
4438
 
4439
        * macroexp.c (init_buffer): Remove testing code that overrides the
4440
        caller's length guess.
4441
        (gather_arguments): Use a larger initial size, now that the vector
4442
        growth code has been exercised.
4443
 
4444
2007-08-05  Pedro Alves  
4445
 
4446
        * solib-target.c (solib_target_relocate_section_addresses): Add
4447
        orig_delta to addr_high.
4448
 
4449
2007-08-04  Michael Snyder  
4450
 
4451
        * remote-fileio.c (remote_fileio_func_write): Memory leak.
4452
 
4453
        * breakpoint.c (print_one_breakpoint): Off by one error.
4454
 
4455
        * tracepoint.c (add_register): Off by one error.
4456
        (stringify_collection_list): Free malloc buffer.
4457
 
4458
2007-08-03  Michael Snyder  
4459
 
4460
        * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4461
        stop memory leak, straighten out cleanups.
4462
 
4463
        * jv-lang.c (java_link_class_type): Guard against NULL.
4464
 
4465
2007-08-02  Michael Snyder  
4466
 
4467
        * gdbtypes.c (create_set_type): Test should only be done within
4468
        the preceeding if block.  Otherwise, variable is uninitialized.
4469
 
4470
        * gdbtypes.c (check_typedef): Guard NULL.
4471
 
4472
2007-08-01  Michael Snyder  
4473
 
4474
        * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4475
        avoid dereference in lookup_cmd_1.
4476
 
4477
        * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4478
        clean up long lines.
4479
        (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4480
        (tui_alloc_win_info): Ditto.
4481
        (tui_add_content_elements): Ditto.
4482
        * tui/tui-file.c (tui_file_magic): Ditto.
4483
 
4484
2007-07-31  Michael Snyder  
4485
 
4486
        * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4487
        True and false paths are mutually exclusive.
4488
 
4489
        * event-top.c (command_line_handler): Add pedantic return.
4490
 
4491
        * f-valprint.c (info_common_command): Bail out to prevent null
4492
        pointer deref.  Break up a long line.
4493
 
4494
        * exec.c (xfer_memory): Remove redundant condition from 'if'.
4495
 
4496
        * symfile.c (reread_separate_symbols): Free xmalloced memory.
4497
 
4498
        * printcmd.c (build_address_symbolic): Remove dead code and dead
4499
        variable.
4500
 
4501
2007-07-31  Daniel Jacobowitz  
4502
 
4503
        * linespec.c (minsym_found): Advance to the next line if possible.
4504
 
4505
2007-07-31  Pedro Alves  
4506
 
4507
        * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4508
        * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4509
        solib-svr4.o, and add solib-target.o
4510
 
4511
2007-07-27  Michael Snyder  
4512
 
4513
        * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4514
 
4515
2007-07-26  Maciej W. Rozycki  
4516
 
4517
        * MAINTAINERS (Write After Approval): Add myself.
4518
 
4519
2007-07-26  Maciej W. Rozycki  
4520
 
4521
        * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4522
        for include files.
4523
 
4524
2007-07-25  Maciej W. Rozycki  
4525
 
4526
        * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4527
 
4528
2007-07-24  Michael Snyder  
4529
 
4530
        * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4531
        'buffer' must cover both branches that call strcmp (Coverity).
4532
 
4533
        * stack.c (print_frame_args): Check return value of lookup_symbol.
4534
 
4535
        * ax-gdb.c (find_field): Guard against null ptr.
4536
 
4537
2007-07-24  Ulrich Weigand  
4538
 
4539
        * regformats/reg-spu.dat: Fix order of npc, id registers.
4540
 
4541
2007-07-24  Ulrich Weigand  
4542
 
4543
        * target.c (memory_xfer_partial): Accesses to unmapped overlay
4544
        sections should always go to the executable file.
4545
 
4546
2004-07-20  Chris Dearman  
4547
 
4548
        * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4549
        prologue instructions.
4550
 
4551
2007-07-20  Maciej W. Rozycki  
4552
 
4553
        * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4554
        a direct test.
4555
 
4556
2007-07-20  Chris Dearman  
4557
            Maciej W. Rozycki  
4558
 
4559
        * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4560
        description.
4561
 
4562
2007-07-17  Pedro Alves  
4563
            Daniel Jacobowitz  
4564
 
4565
        * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4566
        * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4567
        printf.
4568
        * NEWS: Mention gdbserver DLL support.
4569
 
4570
2007-07-17  Daniel Jacobowitz  
4571
 
4572
        * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4573
 
4574
2007-07-16  H.J. Lu  
4575
 
4576
        * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4577
        warning bug.
4578
 
4579
2007-07-13  Kevin Buettner  
4580
 
4581
        * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4582
        instruction case.
4583
 
4584
2007-07-12  Kevin Buettner  
4585
 
4586
        * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4587
        (mep_analyze_prologue): Add case for BRA instruction.
4588
 
4589
2007-07-12  Ulrich Weigand  
4590
 
4591
        * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4592
 
4593
2007-07-10  Nick Roberts  
4594
 
4595
        * breakpoint.c: Include "top.h".
4596
        (breakpoint_1): Don't set convenience variable $_ if server prefix
4597
        is used.
4598
        (_initialize_breakpoint): Describe this behaviour in command help.
4599
 
4600
2007-07-08  Pedro Alves  
4601
 
4602
        * solib-target.c (library_list_start_segment): Cast address to
4603
        CORE_ADDR.
4604
 
4605
2007-07-06  Mark Kettenis  
4606
 
4607
        * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4608
        for terminated processes.
4609
 
4610
2007-07-05  Michael Snyder  
4611
 
4612
        * event-top.c (cli_command_loop): Prompt string can (and should)
4613
        be freed after call to readline (Coverity).  Also move local var
4614
        declarations into block where they are used.
4615
 
4616
        * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4617
        should) be freed after call to readline (Coverity).  Also move
4618
        local var declarations into block where they are used.
4619
 
4620
2007-07-03  Andreas Schwab  
4621
 
4622
        * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4623
        /proc/../stat.
4624
 
4625
2007-07-03  Paul Gilliam  
4626
            Thiago Bauermann  
4627
            Joseph S. Myers  
4628
            Daniel Jacobowitz  
4629
 
4630
        * remote.c (remote_check_symbols): Use
4631
        gdbarch_convert_from_func_ptr_addr.
4632
        * infcall.c (find_function_addr): Handle function descriptors
4633
        without debugging information.
4634
        * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4635
        from ppc64_linux_convert_from_func_ptr_addr.  Handle -msecure-plt.
4636
        (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4637
        * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4638
        (bfd_lookup_symbol): Do not take a SECT_FLAGS argument.  Always
4639
        allow SEC_CODE and SEC_DATA.
4640
        (enable_break): Update calls.  Pass current_target to solib_add.
4641
        Use gdbarch_convert_from_func_ptr_addr.
4642
 
4643
2007-07-03  Ilko Iliev  
4644
            Daniel Jacobowitz  
4645
 
4646
        * symfile.c (print_transfer_performance): Avoid integer overflow.
4647
        Use larger units.
4648
 
4649
2007-07-03  Markus Deuling  
4650
 
4651
        * cp-namespace.c (lookup_symbol_file): Add block to
4652
        lookup_symbol_global call.
4653
        * Makefile.in (solist_h): Add dependency on symtab header.
4654
        (symtab.o): Add dependency on solist header.
4655
        * solib.c (solib_global_lookup): New function.
4656
        * solib-svr4.c (scan_dyntag): Likewise.
4657
        (elf_locate_base): Call helper routine scan_dyntag.
4658
        (elf_lookup_lib_symbol): New function.
4659
        (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4660
        * solist.h (symtab.h): New include.
4661
        (struct target_so_ops): New member lookup_lib_global_symbol.
4662
        (solib_global_lookup): New prototype.
4663
        * symtab.c: New include solist.h.
4664
        (lookup_objfile_from_block): New function.
4665
        (lookup_global_symbol_from_objfile): New function.
4666
        (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4667
        (lookup_symbol_global): Call library-specific lookup procedure.
4668
        * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4669
 
4670
        * NEWS: Document framework.
4671
 
4672
2007-07-02  Daniel Jacobowitz  
4673
 
4674
        * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4675
        to NULL.
4676
 
4677
        * cli/cli-script.c (build_command_line): Update NULL check.
4678
 
4679
2007-07-02  Michael Snyder  
4680
 
4681
        * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4682
 
4683
2007-07-02  Daniel Jacobowitz  
4684
 
4685
        * Makefile.in (XMLFILES): Add library-list.dtd.
4686
        (ALLDEPFILES): Add solib-target.o.
4687
        (solib-target.o): New rule.
4688
        * remote.c (PACKET_qXfer_libraries): New constant.
4689
        (remote_protocol_features): Add qXfer:libraries:read.
4690
        (remote_wait): Recognize library stop replies.
4691
        (remote_async_wait): Likewise.  Fix typo.
4692
        (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4693
        (init_remote_async_ops): Fix typo.
4694
        (_initialize_remote): Register "set remote library-info-packet".
4695
        * solib-som.c (som_current_sos): Set addr_low and addr_high.
4696
        * solib-target.c: New file.
4697
        * solib.c (solib_map_sections): Use addr_low and addr_high instead
4698
        of textsection.
4699
        (info_sharedlibrary_command): Likewise.
4700
        (solib_add_library, solib_remove_library): New.
4701
        * solist.h (struct so_list): Replace textsection with addr_low and
4702
        addr_high.
4703
        * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4704
        * NEWS: Describe new qXfer:libraries:read and shared library
4705
        event support.
4706
        * features/library-list.dtd: New.
4707
 
4708
2007-07-02  Daniel Jacobowitz  
4709
 
4710
        * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4711
        (start_remote): Use STOP_QUIETLY_REMOTE.
4712
        (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4713
        support on a SOLIB_ADD definition.  Update breakpoints_inserted.
4714
        Update to match shared library event breakpoint support.  Only
4715
        resume if appropriate.  Handle STOP_QUIETLY_REMOTE.
4716
        (normal_stop): Handle TARGET_WAITKIND_LOADED.
4717
        * fork-child.c (startup_inferior): Do not set
4718
        inferior_ignoring_startup_exec_events
4719
        * inferior.h (inferior_ignoring_startup_exec_events): Delete
4720
        declaration.
4721
        (enum stop_kind): Improve documentation.  Add STOP_QUIETLY_REMOTE.
4722
 
4723
2007-07-02  Markus Deuling  
4724
 
4725
        * breakpoint.c (insert_bp_location): Remove dead code
4726
        (DISABLE_UNSETTABLE_BREAK).
4727
        (disable_breakpoints_in_shlibs)
4728
        (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4729
 
4730
2007-07-02  Daniel Jacobowitz  
4731
 
4732
        * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4733
        Call insert_bp_location.
4734
 
4735
2007-07-01  H.J. Lu  
4736
 
4737
        * core-regset.c (fetch_core_registers): Work around gcc 3.4
4738
        alias warning bug.
4739
 
4740
2007-07-01  Daniel Jacobowitz  
4741
 
4742
        * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4743
        objfiles.
4744
 
4745
2007-07-01  Daniel Jacobowitz  
4746
 
4747
        * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4748
        (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4749
        (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4750
        (gdb_readline_wrapper): Do not save the prompt.  Pass our prompt
4751
        to display_gdb_prompt.
4752
 
4753
2007-07-01  Daniel Jacobowitz  
4754
 
4755
        PR symtab/2161
4756
        * target.c (memory_xfer_partial): Do not continue past targets with
4757
        all memory.
4758
 
4759
2007-06-30  Andreas Schwab  
4760
 
4761
        * m68k-tdep.c (m68k_ps_type): New.
4762
        (m68k_init_types): New.
4763
        (m68k_register_type): Use m68k_ps_type for PS register.
4764
        (_initialize_m68k_tdep): Call m68k_init_types.
4765
 
4766
        * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4767
        from the generic m68k arch.
4768
 
4769
2007-06-28  Michael Snyder  
4770
 
4771
        * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4772
        (Coverity).
4773
 
4774
        * linux-thread-db.c (thread_db_get_thread_local_address): Add
4775
        gdb_assert before using return value of find_thread_pid (Coverity).
4776
 
4777
        * source.c (unset_substitute_path_command): Plug leak (Coverity).
4778
 
4779
        * cli/cli-script.c (build_command_line): Add null pointer guard
4780
        (Coverity).
4781
 
4782
2007-06-27  Daniel Jacobowitz  
4783
 
4784
        * linux-thread-db.c (thread_db_attach): Delete.
4785
        (thread_db_detach): Typo fix.  Call target_mourn_inferior
4786
        instead of fixing up proc_handle.
4787
        (have_threads_callback, have_threads): New functions.
4788
        (thread_db_wait): Remove dead proc_handle.pid check.  Only
4789
        translate PTIDs if we have registered threads.  Check for new
4790
        threads if we have none.
4791
        (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4792
        (find_new_threads_callback): Only enable event reporting if TID == 0.
4793
        (same_ptid_callback): New.
4794
        (thread_db_get_thread_local_address): Check for new threads.
4795
        (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4796
        or to_post_startup_inferior.
4797
 
4798
2007-06-22  Ulrich Weigand  
4799
 
4800
        * infrun.c (adjust_pc_after_break): Do not assume software single-step
4801
        is always active if SOFTWARE_SINGLE_STEP_P is true.
4802
        (resume): Use gdbarch_software_single_step[_p] instead of
4803
        SOFTWARE_SINGLE_STEP[_P].
4804
        (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4805
 
4806
        * gdbarch.sh (software_single_step): Remove target macro.
4807
        * gdbarch.h, gdbarch.c: Regenerate.
4808
 
4809
2007-06-22  Ulrich Weigand  
4810
 
4811
        * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4812
        DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4813
        (struct gdbarch_swap, struct gdbarch_swap_registration,
4814
        struct gdbarch_swap_registry, gdbarch_swap_registry,
4815
        current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4816
        current_gdbarch_swap_in_hack): Remove.
4817
        (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4818
        (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4819
        and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4820
        (deprecated_current_gdbarch_select_hack): Likewise.
4821
        * gdbarch.h, gdbarch.c: Regenerate.
4822
 
4823
2007-06-22  Ulrich Weigand  
4824
 
4825
        * infrun.c (clear_proceed_status): Clean up stop_registers.
4826
        (normal_stop): Allocate regcache for stop_registers.
4827
        (struct inferior_status): Remove stop_registers member.
4828
        (save_inferior_status): Do not save stop_registers.
4829
        (restore_inferior_status): Do not restore stop_registers.
4830
        (discard_inferior_status): Do not discard stop_registers.
4831
        (build_infrun): Remove.
4832
        (_initialize_infrun): Do not swap stop_registers.
4833
 
4834
2007-06-22  Ulrich Weigand  
4835
 
4836
        * remote.c (remote_address_masked): If remote_address_size is zero,
4837
        default to target address size.
4838
        (build_remote_gdbarch_data): Remove.
4839
        (_initialize_remote): Do not swap remote_address_size.
4840
 
4841
2007-06-22  Ulrich Weigand  
4842
 
4843
        * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4844
        builtin_type_char, builtin_type_short, builtin_type_int,
4845
        builtin_type_long, builtin_type_signed_char,
4846
        builtin_type_unsigned_char, builtin_type_unsigned_short,
4847
        builtin_type_unsigned_int, builtin_type_unsigned_long,
4848
        builtin_type_float, builtin_type_double, builtin_type_long_double,
4849
        builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4850
        builtin_type_bool, builtin_type_long_long,
4851
        builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4852
        builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4853
        variable declaration with compatibility macro.
4854
        * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4855
        builtin_type_char, builtin_type_short, builtin_type_int,
4856
        builtin_type_long, builtin_type_signed_char,
4857
        builtin_type_unsigned_char, builtin_type_unsigned_short,
4858
        builtin_type_unsigned_int, builtin_type_unsigned_long,
4859
        builtin_type_float, builtin_type_double, builtin_type_long_double,
4860
        builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4861
        builtin_type_bool, builtin_type_long_long,
4862
        builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4863
        builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4864
        (build_gdbtypes): Remove.
4865
        (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4866
        opaque-type-resolution command here.   Do not call
4867
        deprecated_register_gdbarch_swap.
4868
 
4869
2007-06-22  Ulrich Weigand  
4870
 
4871
        * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4872
        nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4873
        * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4874
 
4875
        * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4876
        (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4877
        (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4878
        (build_parse): Remove.
4879
        (_initialize_parse): Do not call build_parse.  Do not register
4880
        msym_ types for gdbarch-swapping.
4881
 
4882
        * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4883
        instead of creating private type.
4884
 
4885
        * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4886
        (_initialize_xcoffread): Do not initialized them.
4887
        (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4888
 
4889
        * mdebugread.c (nodebug_func_symbol_type): Remove.
4890
        (nodebug_var_symbol_type): Remove.
4891
        (_initialize_mdebugread): Do not initialize them.
4892
        (parse_symbol): Use builtin nodebug_ type instead of them.
4893
        (parse_procedure): Likewise.
4894
 
4895
2007-06-21  Chris Dearman  
4896
 
4897
        * printcmd.c (do_one_display): If display/i, start with an initial
4898
        line feed to avoid bad layout if there is a branch delay slot.
4899
 
4900
2007-06-21  Nigel Stephens  
4901
            Maciej W. Rozycki  
4902
 
4903
        * disasm.c (gdb_print_insn): Return the number of branch delay
4904
        slot instructions too.
4905
        * disasm.h (gdb_print_insn): Update prototype.
4906
        * printcmd.c (branch_delay_insns): New variable to record the
4907
        number of delay slot instructions after disassembling a branch.
4908
        (print_formatted): Record the number of branch delay slot
4909
        instructions.
4910
        (do_examine): When disassembling, if the last instruction
4911
        disassembled has any branch delay slots, then bump the count so
4912
        that they get disassembled too.
4913
        * tui/tui-disasm.c (tui_disassemble): Update the call to
4914
        gdb_print_insn().
4915
        * NEWS: Document the new behaviour.
4916
 
4917
2007-06-21  Andreas Schwab  
4918
 
4919
        * regcache.c (write_pc_pid): Restore missing else.
4920
 
4921
2007-06-20  Ulrich Weigand  
4922
 
4923
        * regcache.c (regcache_print): Use get_current_regcache ()
4924
        instead of current_regcache.
4925
 
4926
2007-06-20  H.J. Lu  
4927
 
4928
        PR 4606
4929
        * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4930
        instead of bfd_make_section_anyway.
4931
        (gcore_create_callback): Likewise.  Also set SEC_NEVER_LOAD
4932
        when clearing SEC_LOAD.
4933
 
4934
2007-06-19  Joseph Myers  
4935
 
4936
        * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4937
        registers for big-endian.
4938
 
4939
2007-06-19  Markus Deuling  
4940
 
4941
        * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4942
        * disasm.c (dump_insns, gdb_print_insn): Likewise.
4943
        * gdbarch.c, gdbarch.h: Regenerate.
4944
 
4945
2007-06-19  Markus Deuling  
4946
 
4947
        * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4948
        gdbarch_believe_pcc_promotion.
4949
        * stabsread.c (define_symbol): Likewise.
4950
        Remove unnecessary definition.
4951
        * coffread.c (process_coff_symbol): Remove unnecessary code.
4952
        * gdbarch.c, gdbarch.h: Regenerate.
4953
 
4954
2007-06-19  Daniel Jacobowitz  
4955
 
4956
        * configure.ac: Do not use ${objdir}.
4957
        * configure: Regenerated.
4958
 
4959
2007-06-18  Ulrich Weigand  
4960
 
4961
        * gdbarch.sh (deprecated_register_size): Remove.
4962
        * gdbarch.h, gdbarch.c: Regenerate.
4963
 
4964
        * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4965
        by INT_REGISTER_SIZE.
4966
        (thumb_get_next_pc, arm_return_in_memory): Likewise.
4967
        (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4968
        * ia64-tdep.c (ia64_gdbarch_init): Do not call
4969
        set_gdbarch_deprecated_register_size.
4970
 
4971
2007-06-18  Markus Deuling  
4972
 
4973
        * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4974
        gdbarch_deprecated_fp_regnum.
4975
        * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4976
        * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4977
        * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4978
        * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4979
        (comment).
4980
        * gdbarch.c, gdbarch.h: Regenerate.
4981
 
4982
2007-06-18  Markus Deuling  
4983
 
4984
        * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4985
        gdbarch_extract_return_value.
4986
        * value.c (generic_use_struct_convention): Likewise (comment).
4987
        * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4988
        * arch-utils.c (legacy_return_value): Likewise.
4989
        * arch-utils.h (legacy_return_value): Likewise (comment).
4990
        * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4991
        gdbarch_store_return_value.
4992
        * stack.c (return_command): Likewise (comment).
4993
        * arch-utils.h (legacy_return_value): Likewise (comment).
4994
        * arch-utils.c (legacy_return_value): Likewise.
4995
        * gdbarch.c, gdbarch.h: Regenerate.
4996
 
4997
2007-06-18  Markus Deuling  
4998
 
4999
        * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
5000
        gdbarch_deprecated_use_struct_convention.
5001
        * arch-utils.c (legacy_return_value): Likewise.
5002
        * gdbarch.c, gdbarch.h: Regenerate.
5003
 
5004
2007-06-18  Markus Deuling  
5005
 
5006
        * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
5007
        gdbarch_deprecated_function_start_offset.
5008
        * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
5009
        * linespec.c (minsym_found): Likewise.
5010
        * infrun.c (handle_inferior_event): Likewise.
5011
        * infcall.c (find_function_addr): Likewise.
5012
        * cli/cli-cmds.c (disassemble_command): Likewise.
5013
        * gdbarch.c, gdbarch.h: Regenerate.
5014
 
5015
2007-06-18  Markus Deuling  
5016
 
5017
        * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
5018
        gdbarch_deprecated_reg_struct_has_addr.
5019
        * infcall.c (call_function_by_hand): Likewise.
5020
        (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
5021
        * gdbarch_deprecated_reg_struct_has_addr_p.
5022
        * infcall.c (call_function_by_hand): Likewise.
5023
        * gdbarch.c, gdbarch.h: Regenerate.
5024
 
5025
2007-06-18  Markus Deuling  
5026
 
5027
        * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5028
        * sh-tdep.c (sh_extract_struct_value_address): Remove.
5029
        (sh_gdbarch_init): Remove
5030
        set_gdbarch_deprecated_extract_struct_value_address.
5031
        * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
5032
        (sh64_gdbarch_init): Remove
5033
        set_gdbarch_deprecated_extract_struct_value_address.
5034
        * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
5035
        (ia64_gdbarch_init): Remove
5036
        set_gdbarch_deprecated_extract_struct_value_address.
5037
        * frv-tdep.c (frv_extract_struct_value_address): Remove.
5038
        (frv_gdbarch_init): Remove
5039
        set_gdbarch_deprecated_extract_struct_value_address.
5040
        * gdbarch.c, gdbarch.h: Regenerate.
5041
 
5042
2007-06-18  Markus Deuling  
5043
 
5044
        * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
5045
        * v850-tdep.c (v850_unwind_sp): Likewise.
5046
        * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
5047
        * stack.c (frame_info): Likewise.
5048
        * stabsread.c (define_symbol): Likewise.
5049
        * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
5050
        (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
5051
        (sh_unwind_sp): Likewise.
5052
        * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
5053
        (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
5054
        * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
5055
        (rs6000_frame_cache): Likewise.
5056
        * rs6000-nat.c (store_register): Likewise.
5057
        * remote-mips.c (mips_wait): Likewise.
5058
        * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5059
        * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5060
        (ppc64_sysv_abi_push_dummy_call): Likewise.
5061
        * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5062
        * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5063
        * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5064
        * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5065
        * m32r-rom.c (m32r_supply_register): Likewise.
5066
        * frame.c (frame_sp_unwind): Likewise.
5067
        * mips-tdep.c (mips_insn16_frame_cache)
5068
        (mips_insn32_frame_cache): Likewise (comment).
5069
        * m68klinux-nat.c (supply_gregset): Likewise.
5070
        * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5071
        * ia64-tdep.c (ia64_frame_prev_register): Likewise.
5072
        * i386-tdep.c (i386_get_longjmp_target): Likewise.
5073
        * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5074
        * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
5075
        (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
5076
        (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
5077
        (cris_register_type, crisv32_register_type)
5078
        (cris_dwarf2_frame_init_reg): Likewise.
5079
        * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
5080
        * amd64-tdep.c (amd64_frame_prev_register): Likewise.
5081
        * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
5082
        * libunwind-frame.c (libunwind_frame_cache): Likewise.
5083
 
5084
        * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
5085
        * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
5086
        * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
5087
        (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
5088
        (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
5089
        * v850-tdep.c (v850_unwind_pc): Likewise.
5090
        * stack.c (frame_info): Likewise.
5091
        * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
5092
        (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
5093
        (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
5094
        (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
5095
        (sh_dsp_show_regs): Likewise.
5096
        * shnbsd-tdep.c (shnbsd_supply_gregset)
5097
        (shnbsd_collect_gregset): Likewise.
5098
        * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
5099
        * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
5100
        (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
5101
        * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5102
        (6000_register_reggroup_p, rs6000_unwind_pc)
5103
        (rs6000_frame_cache): Likewise.
5104
        * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
5105
        (rs6000_store_inferior_registers): Likewise.
5106
        * remote-mips.c (mips_wait, mips_load): Likewise.
5107
        * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5108
        * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5109
        * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5110
        * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5111
        * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
5112
        * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5113
        * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
5114
        (store_ppc_registers, fill_gregset): Likewise.
5115
        * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
5116
        * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
5117
        * mipsnbsd-nat.c (getregs_supplies): Likewise.
5118
        * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
5119
        * m68klinux-nat.c (supply_gregset): Likewise.
5120
        * irix5-nat.c (fill_gregset): Likewise.
5121
        * i386-tdep.c (i386_unwind_pc): Likewise.
5122
        * i386-linux-nat.c (i386_linux_resume): Likewise.
5123
        * frame.c (get_prev_frame_1): Likewise.
5124
        * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5125
        * dbug-rom.c (dbug_supply_register): Likewise.
5126
        * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
5127
        (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
5128
        (cris_register_type, crisv32_register_type, crisv32_register_name)
5129
        (cris_dwarf2_frame_init_reg, find_step_target)
5130
        (cris_software_single_step, cris_supply_gregset)
5131
        (cris_regnums): Likewise.
5132
        * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5133
        * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5134
        (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
5135
        * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
5136
        * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5137
 
5138
        * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
5139
        * dbug-rom.c (dbug_supply_register): Likewise.
5140
        * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
5141
        (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
5142
        * win32-nat.c (win32_resume): Likewise.
5143
        * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
5144
        * m68k-tdep.c (m68k_register_type): Likewise.
5145
        * m68klinux-nat.c (supply_gregset): Likewise.
5146
 
5147
        * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
5148
        * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
5149
        (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
5150
        (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
5151
        (fv_reg_base_num, dr_reg_base_num): Likewise.
5152
        * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
5153
        (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
5154
        (sh64_extract_return_value, sh64_store_return_value)
5155
        (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
5156
        (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
5157
        * procfs.c (procfs_fetch_registers, procfs_store_registers)
5158
        (invalidate_cache): Likewise.
5159
        * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5160
        * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
5161
        (mipsnbsd_fill_fpreg): Likewise.
5162
        * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5163
        (mipsnbsd_store_inferior_registers): Likewise.
5164
        * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
5165
        (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
5166
        * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
5167
        * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
5168
        * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
5169
        (fill_fpregset): Likewise.
5170
        * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
5171
        * i386-tdep.h (struct_return): Likewise (comment).
5172
        * i386-nto-tdep.c (i386nto_register_area): Likewise.
5173
        * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
5174
        (go32_store_registers): Likewise.
5175
        * alpha-tdep.c (alpha_next_pc): Likewise.
5176
        * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5177
        * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
5178
        (alphabsd_store_inferior_registers): Likewise.
5179
        * core-regset.c (fetch_core_registers): Likewise.
5180
        * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
5181
 
5182
        * gdbarch.c, gdbarch.h: Regenerate.
5183
 
5184
2007-06-18  Daniel Jacobowitz  
5185
 
5186
        * coffread.c (coff_sym_fns): Add default_symfile_segments.
5187
        * dbxread.c (start_psymtab): Check HAVE_ELF.
5188
        (aout_sym_fns): Likewise.
5189
        * elfread.c (elf_symfile_segments): New.
5190
        (elf_sym_fns): Add elf_symfile_segments.
5191
        * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
5192
        * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
5193
        Skip if there is no symfile_objfile.  Handle TextSeg and DataSeg.
5194
        * somread.c (som_sym_fns): Use default_symfile_segments.
5195
        * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
5196
        (init_objfile_sect_indices): Call symfile_find_segment_sections.
5197
        (default_symfile_segments): New function.
5198
        (syms_from_objfile): Update call to find_sym_fns.
5199
        (symfile_get_segment_data, free_symfile_segment_data): New.
5200
        (symfile_map_offsets_to_segments): New.
5201
        (symfile_find_segment_sections): New.
5202
        * symfile.h (struct symfile_segment_data): New.
5203
        (struct sym_fns): Add sym_segments.
5204
        (default_symfile_segments, symfile_get_segment_data)
5205
        (free_symfile_segment_data): New prototypes.
5206
        (symfile_map_offsets_to_segments): Likewise.
5207
        * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
5208
        * Makefile.in (COMMON_OBS): Remove elfread.o.
5209
        (elf_internal_h): New.
5210
        (elfread.o): Update.
5211
        * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
5212
        compiled.
5213
        * config.in, configure: Regenerated.
5214
        * NEWS: Mention qOffsets changes.
5215
 
5216
2007-06-16  Ulrich Weigand  
5217
 
5218
        * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
5219
        builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5220
        Replace global variable declaration with compatibility macro.
5221
        (struct builtin_m2_type): New data type.
5222
        (builtin_m2_type): Add prototype.
5223
        * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
5224
        builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5225
        Remove global variables.
5226
        (m2_language_arch_info): Use builtin_m2_type instead of variables.
5227
        (build_m2_types): New function.
5228
        (m2_type_data): New variable.
5229
        (builtin_m2_type): New function.
5230
        (_initialize_m2_language): Do not build data types.  Register
5231
        m2_type_data per-gdbarch data.
5232
 
5233
2007-06-16  Ulrich Weigand  
5234
 
5235
        * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5236
        builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5237
        builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5238
        builtin_type_f_real_s8, builtin_type_f_real_s16,
5239
        builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5240
        builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5241
        variable declaration with compatibility macro.
5242
        (struct builtin_f_type): New data type.
5243
        (builtin_f_type): Add prototype.
5244
        * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5245
        builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5246
        builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5247
        builtin_type_f_real_s8, builtin_type_f_real_s16,
5248
        builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5249
        builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5250
        (f_language_arch_info): Use builtin_f_type instead of variables.
5251
        (build_fortran_types): Build builtin_f_type structure instead of
5252
        setting global type variables.
5253
        (f_type_data): New variable.
5254
        (builtin_f_type): New function.
5255
        (_initialize_f_language): Do not call build_fortran_types.  Do not
5256
        swap global type variables.  Register f_type_data per-gdbarch data.
5257
 
5258
2007-06-16  Ulrich Weigand  
5259
 
5260
        * f-lang.c (_initialize_f_language): Do not initialize or
5261
        swap builtin_type_string.
5262
 
5263
2007-06-16  Ulrich Weigand  
5264
 
5265
        * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5266
        value_of_builtin_frame_reg): Remove.
5267
        (_initialize_frame_reg): Do not swap builtin_type_frame_reg.  Remove
5268
        inactive call to value_of_builtin_frame_reg.
5269
 
5270
2007-06-16  Ulrich Weigand  
5271
 
5272
        * gdbarch.sh (bfd_vma_bit): Remove.
5273
        * gdbarch.c, gdbarch.h: Regenerate.
5274
 
5275
        * gdbtypes.h (builtin_bfd_vma_type): Remove.
5276
        * gdbtypes.h (builtin_bfd_vma_type): Remove.
5277
        (build_gdbtypes): Do not initialize it.
5278
        (_initialize_gdbtypes): Do not swap it.
5279
 
5280
2007-06-16  Ulrich Weigand  
5281
 
5282
        * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5283
        builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5284
        builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5285
        builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5286
        builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5287
        builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5288
        builtin_type_vec64, builtin_type_vec128): Remove.
5289
        (init_simd_type): Remove.
5290
        (init_vector_type): Make global.
5291
        (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5292
        (build_gdbtypes): Do not build vector types.
5293
        (_initialize_gdbtypes): Do not swap vector types.
5294
        * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5295
        builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5296
        builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5297
        builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5298
        builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5299
        builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5300
        builtin_type_vec64, builtin_type_vec128): Remove declarations.
5301
        (init_vector_type): Add prototype.
5302
 
5303
        * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5304
        i386_sse_type members.
5305
        (i386_mmx_type, i386_sse_type): Change from variables to functions.
5306
        * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5307
        (i386_init_types): Do not build vector types.
5308
        (i386_mmx_type, i386_sse_type): New functions.
5309
        (i386_register_type): Call them instead of using global variables.
5310
        (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5311
        * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5312
        of using global variable.
5313
 
5314
        * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5315
        and ppc_builtin_type_vec128 members.
5316
        * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5317
        (rs6000_builtin_type_vec128): Likewise.
5318
        (rs6000_register_type): Call them instead of using builtin_type_vec64
5319
        and builtin_type_vec128.
5320
        (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5321
 
5322
        * spu-tdep.c (struct gdbarch_tdep): New data type.
5323
        (spu_builtin_type_vec128): Remove variable.
5324
        (spu_builtin_type_vec128): New function.
5325
        (spu_register_type): Call it instead of using global variable.
5326
        (spu_gdbarch_init): Allocate tdep structure.
5327
        (spu_init_vector_type): Remove function.
5328
        (_initialize_spu_tdep): Do not call it.
5329
 
5330
2007-06-16  Ulrich Weigand  
5331
 
5332
        * amd64-tdep.c (struct amd64_register_info): Remove.
5333
        (amd64_register_info): Remove.
5334
        (amd64_register_names): New static variable.
5335
        (AMD64_NUM_REGS): Use amd64_register_names instead of
5336
        amd64_register_info.
5337
        (amd64_register_name): Likewise.
5338
        (amd64_register_type): Do not refer to amd64_register_info.
5339
 
5340
        * s390-tdep.c (struct s390_register_info): Remove.
5341
        (s390_register_info): Remove.
5342
        (s390_register_name): Do not refer to s390_register_info.
5343
        (s390_register_type): Likewise.
5344
 
5345
        * sparc64-tdep.c (struct sparc64_register_info): Remove.
5346
        (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5347
        (sparc64_register_names, sparc64_pseudo_register_names): New.
5348
        (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5349
        sparc64_register_names and sparc64_pseudo_register_names instead of
5350
        sparc64_register_info and sparc64_pseudo_register_info.
5351
        (sparc64_register_name): Likewise.
5352
        (sparc64_register_type): Do not refer to sparc64_register_info
5353
        and sparc64_pseudo_register_info.
5354
 
5355
2007-06-16  Ulrich Weigand  
5356
 
5357
        * c-lang.c (cplus_builtin_types): Remove.
5358
        (enum cplus_primitive_types): New data type.
5359
        (cplus_language_arch_info): New function.
5360
        (cplus_language_defn): Set la_language_arch_info member.  Do not set
5361
        la_builtin_type_vector and string_char_type members.
5362
 
5363
        * f-lang.c (f_builtin_types): Remove.
5364
        (enum f_primitive_types): New data type.
5365
        (f_language_arch_info): New function.
5366
        (f_language_de): Set la_language_arch_info member.  Do not set
5367
        la_builtin_type_vector and string_char_type members.
5368
 
5369
        * m2-lang.c (m2_builtin_types): Remove.
5370
        (enum m2_primitive_types): New data type.
5371
        (m2_language_arch_info): New function.
5372
        (m2_language_defn): Set la_language_arch_info member.  Do not set
5373
        la_builtin_type_vector and string_char_type members.
5374
 
5375
        * objc-lang.c (objc_builtin_types): Remove.
5376
        (objc_language): Set la_language_arch_info member.  Do not set
5377
        la_builtin_type_vector and string_char_type members.
5378
 
5379
        * p-lang.c (pascal_builtin_types): Remove.
5380
        (enum pascal_primitive_types): New data type.
5381
        (pascal_language_arch_info): New function.
5382
        (pascal_language_defn): Set la_language_arch_info member.  Do not set
5383
        la_builtin_type_vector and string_char_type members.
5384
 
5385
2007-06-16  Ulrich Weigand  
5386
 
5387
        * regcache.c (struct regcache): Add ptid_t member.
5388
        (regcache_xmalloc): Initialize it.
5389
        (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5390
        (regcache_dup): Likewise.
5391
        (regcache_dup_no_passthrough): Likewise.
5392
        (current_regcache): Make static.
5393
        (registers_ptid): Remove variable.
5394
        (get_thread_regcache): New function.
5395
        (get_current_regcache): New function.
5396
        (registers_changed): Implement by freeing current regcache.
5397
        (regcache_raw_read): Do not refer to current_regcache.  Set
5398
        inferior_ptid to regcache->ptid while calling target routines.
5399
        (regcache_raw_write): Likewise.
5400
        (regcache_raw_supply): Do not refer to current_regcache.
5401
        (read_pc_pid): Use thread regcache.  Do not modify inferior_ptid.
5402
        (write_pc_pid): Likewise.
5403
        (build_regcache): Remove.
5404
        (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5405
        or deprecated_register_gdbarch_swap.  Do not initialize
5406
        registers_ptid.
5407
        * regcache.h (get_current_regcache): Add prototype.
5408
        (get_thread_regcache): Likewise.
5409
        (current_regcache): Remove declaration.
5410
 
5411
        * corelow.c (core_open): Replace current_regcache by
5412
        get_current_regcache ().
5413
        * frame.c (frame_pop): Likewise.
5414
        (put_frame_register): Likewise.
5415
        (get_current_frame, create_new_frame): Likewise.
5416
        * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5417
        * stack.c (return_command): Likewise.
5418
        * infcall.c (call_function_by_hand): Likewise.
5419
        * infrun.c (resume): Likewise.
5420
        (save_inferior_status, restore_inferior_status): Likewise.
5421
        * linux-fork.c (fork_load_infrun_state): Likewise.
5422
        (fork_save_infrun_state): Likewise.
5423
        * win32-nat.c (win32_resume): Likewise.
5424
        * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5425
        * monitor.c (monitor_wait): Likewise.
5426
        * remote.c (remote_wait): Likewise.
5427
        * remote-mips.c (mips_wait): Likewise.
5428
 
5429
        * bsd-kvm.c (bsd_kvm_open): Likewise
5430
        (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5431
        * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5432
        * i386-linux-nat.c (i386_linux_resume): Likewise.
5433
        * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5434
        (ia64_linux_stopped_data_address): Likewise.
5435
 
5436
        * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5437
        * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5438
        * mep-tdep.c (current_me_module, current_options): Likewise.
5439
        * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5440
 
5441
        * linux-nat.c (linux_nat_do_thread_registers): Use thread
5442
        regcache instead of current_regcache.  Call target_fetch_registers.
5443
        (linux_nat_corefile_thread_callback): Update call site.
5444
        (linux_nat_do_registers): Likewise.
5445
        * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5446
        of current_regcache.
5447
        (procfs_make_note_section): Likewise.
5448
        * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5449
        (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5450
        * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5451
        (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5452
 
5453
2007-06-15  Ulrich Weigand  
5454
 
5455
        * regcache.c (read_register, read_register_pid): Remove.
5456
        (write_register, write_register_pid): Likewise.
5457
        * regcache.h (read_register, read_register_pid): Remove prototype.
5458
        (write_register, write_register_pid): Likewise.
5459
 
5460
2007-06-15  Ulrich Weigand  
5461
 
5462
        * gdbarch.sh (read_pc): Add REGCACHE argument.  Remove PTID argument.
5463
        (write_pc): Likewise.  Remove default implementation, add predicate.
5464
        * gdbarch.c, gdbarch.h: Regenerate.
5465
        * regcache.c (read_pc_pid): Use current regcache instead of calling
5466
        read_register_pid.
5467
        (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5468
        case inline.
5469
        (generic_target_write_pc): Remove.
5470
        * inferior.h (generic_target_write_pc): Remove.
5471
        * frv-tdep.c (frv_gdbarch_init): Do not install it.
5472
        * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5473
        * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5474
        * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5475
        * sh-tdep.c (sh_gdbarch_init): Likewise.
5476
        * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5477
 
5478
        * avr-tdep.c (avr_read_pc): Add REGCACHE argument.  Remove PTID
5479
        argument.  Use REGCACHE instead of calling read_register_pid.
5480
        * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5481
        * hppa-tdep.c (hppa_read_pc): Likewise.
5482
        * hppa-tdep.h (hppa_read_pc): Likewise.
5483
        * ia64-tdep.c (ia64_read_pc): Likewise.
5484
        * m32r-tdep.c (m32r_read_pc): Likewise.
5485
        * mep-tdep.c (mep_read_pc): Likewise.
5486
        * mn10300-tdep.c (mn10300_read_pc): Likewise.
5487
        * spu-tdep.c (spu_read_pc): Likewise.
5488
 
5489
        * arm-tdep.c (arm_write_pc): Add REGCACHE argument.  Remove PTID
5490
        argument.  Use REGCACHE instead of calling write_register_pid.
5491
        * avr-tdep.c (avr_write_pc): Likewise.
5492
        * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5493
        * hppa-tdep.c (hppa_write_pc): Likewise.
5494
        * hppa-tdep.h (hppa_write_pc): Likewise.
5495
        * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5496
        * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5497
        * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5498
        * ia64-tdep.c (ia64_write_pc): Likewise.
5499
        * ia64-tdep.h (ia64_write_pc): Likewise.
5500
        * m32r-tdep.c (m32r_write_pc): Likewise.
5501
        * m88k-tdep.c (m88k_write_pc): Likewise.
5502
        * mep-tdep.c (mep_write_pc): Likewise.
5503
        * mips-tdep.c (mips_write_pc): Likewise.
5504
        * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5505
        * mn10300-tdep.c (mn10300_write_pc): Likewise.
5506
        * sparc-tdep.c (sparc_write_pc): Likewise.
5507
        * spu-tdep.c (spu_write_pc): Likewise.
5508
 
5509
        * mips-tdep.c (read_signed_register): Remove.
5510
        (read_signed_register_pid): Likewise.
5511
        (mips_read_pc): Add REGCACHE argument.  Remove PTID argument.
5512
        Use REGCACHE instead of calling read_signed_register_pid.
5513
 
5514
2007-06-15  Ulrich Weigand  
5515
 
5516
        * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5517
        * gdbarch.c, gdbarch.h: Regenerate.
5518
        * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5519
        (push_dummy_code): Likewise.  Pass it to callee.
5520
        (call_function_by_hand): Pass current regcache to push_dummy_code.
5521
 
5522
        * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5523
        argument.  Use it instead of current_regcache.
5524
 
5525
        * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5526
        * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5527
 
5528
2007-06-15  Ulrich Weigand  
5529
 
5530
        * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5531
        * gdbarch.c, gdbarch.h: Regenerate.
5532
        * infrun.c (handle_inferior_event): Pass current frame to
5533
        gdbarch_get_longjmp_target.
5534
 
5535
        * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5536
        Read registers from FRAME instead of using read_register.
5537
        Use get_frame_arch instead of current_gdbarch.
5538
        * arm-tdep.c (arm_get_longjmp_target): Likewise.
5539
        * i386-tdep.c (i386_get_longjmp_target): Likewise.
5540
        * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5541
        * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5542
        (mips64_linux_get_longjmp_target): Likewise.
5543
        * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5544
 
5545
2007-06-15  Ulrich Weigand  
5546
 
5547
        * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5548
        * gdbarch.c, gdbarch.h: Regenerate.
5549
        * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5550
        * arch-utils.h (generic_skip_trampoline_code): Likewise.
5551
        * infrun.c (handle_inferior_event): Pass current frame to
5552
        gdbarch_skip_trampoline_code and skip_language_trampoline.
5553
 
5554
        * language.c (unk_lang_trampoline): Add FRAME argument.
5555
        (skip_language_trampoline): Add FRAME argument.  Pass it to
5556
        skip_trampoline callback.
5557
        * language.h: Add forward declaration of struct frame_info.
5558
        (struct language_defn): Add FRAME argument to skip_trampoline.
5559
        (skip_language_trampoline): Add FRAME argument.
5560
        * cp-abi.c (cplus_skip_trampoline): Add FRAME argument.  Pass it
5561
        to skip_trampoline callback.
5562
        * cp-abi.h: Add forward declaration of struct frame_info.
5563
        (cplus_skip_trampoline): Add FRAME argument.
5564
        (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5565
        * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument.  Pass it
5566
        to gdbarch_skip_trampoline_code.
5567
        * objc-lang.c (objc_skip_trampoline): Add FRAME argument.  Pass it
5568
        to gdbarch_skip_trampoline_code.
5569
 
5570
        * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5571
        * symtab.h (find_solib_trampoline_target): Likewise.
5572
        * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5573
        find_solib_trampoline_target.
5574
 
5575
        * arm-tdep.c (arm_skip_stub): Add FRAME argument.  Read registers
5576
        from FRAME instead of calling read_register.
5577
 
5578
        * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5579
        argument.  Read registers from FRAME instead of using read_register.
5580
        * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5581
        * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5582
 
5583
        * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5584
        argument.
5585
 
5586
        * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5587
 
5588
        * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument.  Read
5589
        registers from FRAME instead of using read_signed_register.
5590
 
5591
        * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5592
        argument.
5593
        (ppc64_standard_linkage_target): Likewise.  Read registers from FRAME
5594
        instead of using read_register.
5595
        (ppc64_skip_trampoline_code): Add FRAME argument.  Pass it to
5596
        ppc64_standard_linkage_target.
5597
        * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5598
        Pass it to find_solib_trampoline_target.  Read registers from FRAME
5599
        instead of using read_register.
5600
 
5601
        * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5602
        argument.
5603
 
5604
2007-06-15  Ulrich Weigand  
5605
 
5606
        * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5607
        FRAME argument.
5608
        * gdbarch.c, gdbarch.h: Regenerate.
5609
        * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5610
 
5611
        * alpha-tdep.c (alpha_next_pc): Add FRAME argument.  Retrieve
5612
        registers from FRAME instead of using read_register.
5613
        (alpha_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
5614
        to alpha_next_pc.  Use get_frame_pc instead of read_pc.
5615
        * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5616
        argument by FRAME.
5617
 
5618
        * arm-tdep.c (shifted_reg_val): Add FRAME argument.  Read registers
5619
        from FRAME instead of using read_register.
5620
        (thumb_get_next_pc): Likewise.
5621
        (arm_get_next_pc): Likewise.
5622
        (arm_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
5623
        to arm_get_next_pc.  Use get_frame_pc instead of read_register.
5624
        * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5625
        argument by FRAME.
5626
 
5627
        * cris-tdep.c (find_step_target): Add FRAME argument.  Read registers
5628
        from FRAME instead of using read_register.
5629
        (cris_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
5630
        to find_step_target.
5631
 
5632
        * mips-tdep.c (mips32_next_pc): Add FRAME argument.  Read registers
5633
        from FRAME instead of using read_register / read_signed_register.
5634
        (extended_mips16_next_pc): Likewise.
5635
        (mips16_next_pc): Likewise.
5636
        (mips_next_pc): Likewise.
5637
        (mips_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
5638
        to mips_next_pc.  Use get_frame_pc instead of read_pc.
5639
        * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5640
        argument by FRAME.
5641
 
5642
        * rs6000-tdep.c (branch_dest): Add FRAME argument.  Use it instead
5643
        of current frame.  Read registers from FRAME.
5644
        (deal_with_atomic_sequence): Add FRAME argument.  Pass it to
5645
        branch_dest.  Use get_frame_pc instead of read_pc.
5646
        (rs6000_software_single_step): Likewise.
5647
        (bl_to_blrl_insn_p): Do not call branch_dest.
5648
        * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5649
        argument by FRAME.
5650
 
5651
        * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5652
        Read registers from FRAME instead of current regcache.
5653
        * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5654
        * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5655
        * sparc-tdep.c (sparc_address_from_register): Remove.
5656
        (sparc_analyze_control_transfer): Pass FRAME argument instead of
5657
        GDBARCH.  Pass FRAME to step_trap callback.
5658
        (sparc_step_trap): Add FRAME argument.
5659
        (space_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
5660
        to sparc_analyze_control_transfer.  Read registers from FRAME instead
5661
        of calling sparc_address_from_register.
5662
        * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5663
        step_trap callback.
5664
        (sparc_address_from_register): Remove prototype.
5665
        (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5666
        (sparcnbsd_step_trap): Add FRAME argument.
5667
 
5668
        * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5669
        by FRAME.  Read registers from FRAME instead of REGCACHE.
5670
 
5671
2007-06-15  Ulrich Weigand  
5672
 
5673
        * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5674
        instead of calling read_register.
5675
 
5676
        * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5677
        calling write_register.
5678
 
5679
        * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5680
        calling write_register.
5681
 
5682
        * ia64-tdep.c (find_func_descr): Add REGCACHE parameter.  Use it
5683
        instead of calling read_register.
5684
        (ia64_push_dummy_call): Update call to find_func_descr.  Use REGCACHE
5685
        instead of calling read_register and write_register.
5686
 
5687
        * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5688
        instead of current_regcache.
5689
 
5690
        * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5691
        of calling write_register.
5692
        * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5693
        parameter instead of current_regcache.
5694
 
5695
        * mips-tdep.c (mips2_fp_compat): Add FRAME parameter.  Use it
5696
        instead of calling read_register.
5697
        (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5698
        (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5699
        (mips_n32n64_push_dummy_call): Likewise.
5700
        (mips_o32_push_dummy_call): Likewise.
5701
        (mips_o64_push_dummy_call): Likewise.
5702
 
5703
        * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5704
        parameter instead of current_regcache.
5705
 
5706
        * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5707
        Use it instead of read_register and write_register.
5708
        (xtensa_register_read_masked): Likewise.
5709
        (xtensa_pseudo_register_read): Update call.
5710
        (xtensa_pseudo_register_write): Likewise.
5711
        (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5712
        instead of calling read_register.
5713
        (xtensa_push_dummy_call): Update comment.
5714
 
5715
2007-06-15  Ulrich Weigand  
5716
 
5717
        * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5718
        by frame_unwind_register_signed calls.
5719
        (mips32_scan_prologue): Likewise.  Skip analysis of alloca stack
5720
        frame allocations when called with NULL NEXT_FRAME parameter.
5721
        (read_next_frame_reg): Remove.
5722
 
5723
        * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter.  Use it
5724
        instead of reading the FPSCR register.
5725
        (sh_frame_cache): Pass unwound FPSCR register value to
5726
        sh_analyze_prologue.
5727
        (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5728
 
5729
        * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter.  Use it
5730
        instead of reading the CTBP register.
5731
        (v850_frame_cache): Pass unwound CTBP register value to
5732
        v850_analyze_prologue.
5733
 
5734
2007-06-15  Ulrich Weigand  
5735
 
5736
        * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5737
        * sh-tdep.c (sh_show_regs): Likewise.
5738
        (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5739
        (sh_generic_show_regs): Add FRAME parameter.  Use register
5740
        values from that frame instead of calling read_register.
5741
        (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5742
        sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5743
        sh_dsp_show_regs): Likewise.
5744
        * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5745
        sh64_show_regs): Likewise.
5746
 
5747
2007-06-15  Ulrich Weigand  
5748
 
5749
        * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5750
        current regcache instead of calling read_register.
5751
 
5752
2007-06-15  Ulrich Weigand  
5753
 
5754
        * mep-tdep.c (current_me_module): Read from current regcache
5755
        instead of calling read_register.
5756
        (current_options): Likewise.
5757
 
5758
2007-06-15  Ulrich Weigand  
5759
 
5760
        * cris-tdep.c (cris_stopped_data_address): Read register values
5761
        from current frame instead of calling read_register.
5762
        * frv-tdep.c (frv_stopped_data_address): Likewise.
5763
 
5764
2007-06-15  Ulrich Weigand  
5765
 
5766
        * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5767
        instead of write_register (PC_REGNUM, ...).
5768
 
5769
2007-06-15  Ulrich Weigand  
5770
 
5771
        * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5772
        explaining why the PC adjustment code is necessary.
5773
 
5774
2007-06-15  Vladimir Prus  
5775
 
5776
        * m68k-tdep.h (enum m68k_flavour): New.
5777
        (struct gdbarch_tdep): New fields
5778
        float_return, flavour and fpregs_present.
5779
        * m68k-tdep.c (m68k_register_type): Use
5780
        fpregs_present and conditionalize floating
5781
        registers type on flavour.
5782
        (m68k_register_names): New.
5783
        (m68k_register_name): Use the above.
5784
        (m68k_convert_register_p): Consult fpregs_present.
5785
        (m68k_register_to_value, m68k_value_to_register):
5786
        Use register_type to obtain the type of floating
5787
        point registers.
5788
        (m68k_svr4_extract_return_value): Check tdep->float_return.
5789
        Use register_type to get the type of floating
5790
        point regiters.
5791
        (m68k_svr4_store_return_value): Likewise.
5792
        (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5793
        (m68k_analyze_register_saves): Likewise.
5794
        (m68k_gdbarch_init): Extract infromation
5795
        from XML description, if present.  Guess coldfire by
5796
        looking at the file, if present. Conditionalize
5797
        setting of long double format.  Set decr_pc_after_break
5798
        to 2 on coldfire and fido.  Enable XML-driven
5799
        register description.
5800
        * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5801
        size of tdep->fpreg_type, as opposed to hardcoded value.
5802
        * Makefile.in (m68k-tdep.o): Update dependencies.
5803
 
5804
2007-06-15  Ulrich Weigand  
5805
 
5806
        * NEWS: Mention "info spu" commands and qXfer:spu:read and
5807
        qXfer:spu:write remote packet types.
5808
 
5809
2007-06-13  Daniel Jacobowitz  
5810
 
5811
        * xml-tdesc.c (tdesc_start_target): New.
5812
        (target_attributes): New.
5813
        (tdesc_elements): Use it.
5814
        * features/gdb-target.dtd: Add #FIXED version attribute for
5815
        .
5816
 
5817
2007-06-13  Arthur Huillet  
5818
 
5819
        * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5820
 
5821
2007-06-13  Claudio Fontana 
5822
 
5823
        * fork-child.c (fork_inferior): Update comment.
5824
 
5825
2007-06-13  Daniel Jacobowitz  
5826
 
5827
        * features/Makefile: Generate regformats for mips-linux and
5828
        mips64-linux.
5829
        * features/sort-regs.xsl: Correct typo.
5830
        * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5831
        * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5832
        files.
5833
 
5834
2007-06-13  Daniel Jacobowitz  
5835
 
5836
        * config/mips/linux.mh (TDEP_XML): New.
5837
        * features/mips-linux.xml, features/mips64-linux.xml: New files.
5838
        * mips-linux-nat.c (mips_linux_register_addr): Handle
5839
        MIPS_RESTART_REGNUM.
5840
        (mips64_linux_register_addr): Likewise.
5841
        (super_xfer_partial, mips_linux_xfer_partial): New.
5842
        (_initialize_mips_linux_nat): Add them to the target_ops.
5843
        * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5844
        (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5845
        (mips_linux_o32_sigframe_init)
5846
        (mips_linux_n32n64_sigframe_init): Likewise.
5847
        (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5848
        (mips_linux_init_abi): Use mips_linux_write_pc.  Check for the
5849
        "org.gnu.gdb.mips.linux" feature.
5850
        * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5851
        (mips_linux_restart_reg_p): New prototype.
5852
        * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5853
        initialization routine.
5854
        * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5855
 
5856
2007-06-13  Daniel Jacobowitz  
5857
 
5858
        * Makefile.in (mips-tdep.o): Update.
5859
        * mips-tdep.c (struct register_alias, mips_o32_aliases)
5860
        (mips_n32_n64_aliases, mips_register_aliases): New.
5861
        (mips_register_name): Call tdesc_register_name.
5862
        (mips_tdesc_register_reggroup_p): New.
5863
        (mips_pseudo_register_type, value_of_mips_user_reg): New.
5864
        (mips_gdbarch_init): Add target-described register support.
5865
        Register aliases for register names.
5866
        * target-descriptions.c (tdesc_register_name): Make global.
5867
        (tdesc_register_in_reggroup_p): New function, broken out from
5868
        tdesc_register_reggroup_p.
5869
        (tdesc_register_reggroup_p): Use it.
5870
        * target-descriptions.h (tdesc_register_name)
5871
        (tdesc_register_in_reggroup_p): New prototypes.
5872
        * NEWS: Correct formatting.  Mention MIPS register support.
5873
        * features/mips-cp0.xml, features/mips-fpu.xml,
5874
        features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5875
        features/mips64-cpu.xml: New files.
5876
 
5877
2007-06-13  Markus Deuling  
5878
 
5879
        * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5880
        * valops.c (value_cast): Likewise.
5881
        * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5882
        * ui-out.c (ui_out_field_core_addr): Likewise.
5883
        * tracepoint.c (tracepoints_info): Likewise.
5884
        * symtab.c (print_msymbol_info): Likewise.
5885
        * solib-irix.c (irix_current_sos)
5886
        (irix_open_symbol_file_object): Likewise.
5887
        * remote.c (build_remote_gdbarch_data): Likewise.
5888
        * prologue-value.c (make_pv_area): Likewise.
5889
        * procfs.c (info_mappings_callback): Likewise.
5890
        * printcmd.c (print_scalar_formatted)
5891
        (deprecated_print_address_numeric): Likewise.
5892
        * memattr.c (mem_info_command): Likewise.
5893
        * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5894
        * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5895
        * exec.c (print_section_info): Likewise.
5896
        * dwarf2read.c (read_subrange_type): Likewise.
5897
        * dwarf2loc.c (find_location_expression): Likewise.
5898
        * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5899
        (signed_address_type, execute_stack_op): Likewise.
5900
        * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5901
        * gdbarch.c, gdbarch.h: Regenerate.
5902
 
5903
2007-06-13  Markus Deuling  
5904
 
5905
        * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5906
        * arch-utils.c (show_architecture): Likewise.
5907
        * remote-mips.c (mips_open): Likewise
5908
        * nto-tdep.c (nto_find_and_open_solib)
5909
        (nto_init_solib_absolute_prefix): Likewise.
5910
        * nto-procfs (procfs_open): Likewise.
5911
        * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5912
        * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5913
        * gdbarch.c, gdbarch.h: Regenerate.
5914
 
5915
2007-06-13  Markus Deuling  
5916
 
5917
        * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5918
        * gdbtypes.c (build_flt): Likewise.
5919
        * gdbarch.c, gdbarch.h: Regenerate.
5920
 
5921
2007-06-13  Markus Deuling  
5922
 
5923
        * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5924
        gdbarch_breakpoint_from_pc.
5925
        * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5926
        * remote.c (remote_insert_breakpoint)
5927
        (remote_insert_hw_breakpoint): Likewise.
5928
        * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5929
        * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5930
        * breakpoint.h (bp_target_info): Likewise (comment).
5931
        * breakpoint.c (read_memory_nobpt): Likewise.
5932
        * mem-break.c (default_memory_insert_breakpoint): Likewise.
5933
        (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5934
        * gdbarch.c, gdbarch.h: Regenerate.
5935
 
5936
2007-06-13  Markus Deuling  
5937
 
5938
        * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5939
        * solib-svr4.c (svr4_truncate_ptr): Likewise.
5940
        * solib-pa64.c (read_dynamic_info): Likewise.
5941
        * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5942
        * solib.c (info_sharedlibrary_command): Likewise.
5943
        * s390-nat.c (SUBOFF): Likewise.
5944
        * p-valprint.c (pascal_val_print): Likewise.
5945
        * procfs.c (info_proc_mappings): Likewise.
5946
        * printcmd.c (decode_format): Likewise.
5947
        * nto-tdep.c (nto_truncate_ptr): Likewise.
5948
        * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5949
        (mips64_linux_get_longjmp_target): Likewise.
5950
        * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5951
        * jv-valprint.c (java_value_print): Likewise.
5952
        * jv-lang.c (get_java_object_header_size): Likewise.
5953
        * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5954
        * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5955
        (hppa_hpux_unwind_adjust_stub): Likewise.
5956
        * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5957
        * gdbtypes.c (make_pointer_type, make_reference_type)
5958
        (smash_to_memberptr_type): Likewise.
5959
        * gdbarch.c, gdbarch.h: Regenerate.
5960
 
5961
2007-06-13  Daniel Jacobowitz  
5962
 
5963
        * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5964
        (print_gp_register_row): Stop before printing a register bigger
5965
        than the ABI register size.
5966
        (mips_print_registers_info): Update call to mips_print_register.
5967
 
5968
2007-06-13  Daniel Jacobowitz  
5969
 
5970
        * expression.h (enum exp_opcode): Document a register name for
5971
        OP_REGISTER.
5972
        * parse.c (write_dollar_variable): Write the register name for
5973
        OP_REGISTER.
5974
        (operator_length_standard): Expect the register name following
5975
        OP_REGISTER.
5976
        * ada-lang.c (resolve_subexp): Likewise.
5977
        * ax-gdb.c (gen_expr): Likewise.
5978
        * eval.c (evaluate_subexp_standard): Likewise.
5979
        * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5980
        Likewise.
5981
        * tracepoint.c (encode_actions): Likewise.
5982
 
5983
2007-06-13  Daniel Jacobowitz  
5984
 
5985
        * utils.c (set_screen_size): Use INT_MAX for default columns.
5986
 
5987
2007-06-13  Ulrich Weigand  
5988
 
5989
        * remote.c (remote_protocol_features): Add qXfer:spu:read and
5990
        qXfer:spu:write packet types.
5991
 
5992
2007-06-12  Markus Deuling  
5993
 
5994
        * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5995
        * gdbarch.c, gdbarch.h: Regenerate.
5996
 
5997
2007-06-12  Markus Deuling  
5998
 
5999
        * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
6000
        gdbarch_stab_reg_to_regnum.
6001
        * stabsread.c (define_symbol): Likewise.
6002
        * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
6003
        gdbarch_ecoff_reg_to_regnum.
6004
        * mdebugread.c (parse_symbol): Likewise.
6005
        * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
6006
        * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
6007
        gdbarch_dwarf_reg_to_regnum.
6008
        * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
6009
        * coffread.c (process_coff_symbol): Likewise.
6010
        * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
6011
        gdbarch_dwarf2_reg_to_regnum.
6012
        * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
6013
        (locexpr_describe_location): Likewise.
6014
        * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
6015
        (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
6016
        * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
6017
        * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
6018
        * gdbarch.c, gdbarch.h: Regenerate.
6019
 
6020
2007-06-12  Markus Deuling  
6021
 
6022
        * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
6023
        gdbarch_smash_text_address.
6024
        * somread.c (som_symtab_read): Likewise.
6025
        * elfread.c (record_minimal_symbol): Likewise.
6026
        * dbxread.c (process_one_symbol): Likewise.
6027
        * coffread.c (coff_symtab_read): Likewise.
6028
        * gdbarch.c, gdbarch.h: Regenerate.
6029
 
6030
2007-06-12  Markus Deuling  
6031
 
6032
        * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
6033
        * findvar.c (value_from_register): Likewise.
6034
        * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
6035
        * valops.c (value_assign): Likewise.
6036
        * gdbarch.sh (CONVERT_REGISTER_P): Replace by
6037
        gdbarch_convert_register_p.
6038
        * findvar.c (value_from_register): Likewise.
6039
        * valops.c (value_assign): Likewise.
6040
        * gdbarch.c, gdbarch.h: Regenerate.
6041
 
6042
2007-06-12  Markus Deuling  
6043
 
6044
        * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
6045
        gdbarch_register_sim_regno.
6046
        * sim-regno.h (sim_regno): Likewise (comment).
6047
        * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
6048
        * gdbarch.c, gdbarch.h: Regenerate.
6049
 
6050
2007-06-12  Markus Deuling  
6051
 
6052
        * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
6053
        gdbarch_virtual_frame_pointer.
6054
        * tracepoint.c (encode_actions): Likewise.
6055
        * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
6056
        * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
6057
        * gdbarch.c, gdbarch.h: Regenerate.
6058
 
6059
2007-06-12  Markus Deuling  
6060
 
6061
        * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
6062
        * p-lang.c (pascal_create_fundamental_type): Likewise.
6063
        * objc-lang.c (objc_create_fundamental_type): Likewise.
6064
        * mdebugread.c (_initialize_mdebugread): Likewise.
6065
        * m2-lang.c (m2_create_fundamental_type)
6066
        (_initialize_m2_language): Likewise.
6067
        * gdbtypes.c (build_gdbtypes): Likewise.
6068
        * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6069
        * doublest.c (floatformat_from_length): Likewise.
6070
        * c-lang.c (c_create_fundamental_type): Likewise.
6071
        * ada-lang.c (ada_create_fundamental_type)
6072
        (ada_language_arch_info): Likewise.
6073
        * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
6074
        * value.c (unpack_double): Likewise (comment).
6075
        * gdbtypes.c (build_gdbtypes): Likewise.
6076
        * doublest.c (floatformat_from_length): Likewise.
6077
        * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
6078
        * valarith.c (value_binop): Likewise.
6079
        * p-lang.c (pascal_create_fundamental_type): Likewise.
6080
        * objc-lang.c (objc_create_fundamental_type): Likewise.
6081
        * mdebugread.c (_initialize_mdebugread): Likewise.
6082
        * m2-lang.c (m2_create_fundamental_type): Likewise.
6083
        * gdbtypes.c (build_gdbtypes): Likewise.
6084
        * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6085
        * doublest.c (floatformat_from_length): Likewise.
6086
        * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
6087
        * c-lang.c (c_create_fundamental_type): Likewise.
6088
        * ada-lex.l (processReal): Likewise.
6089
        * ada-lang.c (ada_create_fundamental_type)
6090
        (ada_language_arch_info): Likewise.
6091
        * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
6092
        * value.c (unpack_double): Likewise (comment).
6093
        * gdbtypes.c (build_gdbtypes): Likewise.
6094
        * doublest.c (floatformat_from_length): Likewise.
6095
        * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
6096
        gdbarch_long_double_bit.
6097
        * p-lang.c (pascal_create_fundamental_type): Likewise.
6098
        * objc-lang.c (objc_create_fundamental_type): Likewise.
6099
        * m2-lang.c (m2_create_fundamental_type): Likewise.
6100
        * gdbtypes.c (build_gdbtypes): Likewise.
6101
        * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6102
        * doublest.c (floatformat_from_length): Likewise.
6103
        * c-lang.c (c_create_fundamental_type): Likewise.
6104
        * ada-lex.l (processReal): Likewise.
6105
        * ada-lang.c (ada_create_fundamental_type)
6106
        (ada_language_arch_info): Likewise.
6107
        * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
6108
        gdbarch_long_double_format.
6109
        * gdbtypes.c (build_gdbtypes): Likewise.
6110
        * doublest.c (floatformat_from_length): Likewise.
6111
        * gdbarch.c, gdbarch.h: Regenerate.
6112
 
6113
2007-06-12  Markus Deuling  
6114
 
6115
        * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
6116
        * ada-lang.c (ada_create_fundamental_type)
6117
        (ada_language_arch_info): Likewise.
6118
        * c-lang.c (c_create_fundamental_type): Likewise.
6119
        * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6120
        * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6121
        * m2-lang.c (m2_create_fundamental_type): Likewise.
6122
        * objc-lang.c (objc_create_fundamental_type): Likewise.
6123
        * p-lang.c (pascal_create_fundamental_type): Likewise.
6124
        * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
6125
        * c-exp.y (parse_number): Likewise.
6126
        * objc-exp.y (parse_number): Likewise.
6127
        * ada-lex.l (processInt): Likewise.
6128
        * f-exp.y (parse_number): Likewise.
6129
        * p-exp.y (parse_number): Likewise.
6130
        * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
6131
        (gdbtypes_post_init, build_gdbtypes): Likewise.
6132
        * p-lang.c (pascal_create_fundamental_type): Likewise.
6133
        * parse.c (build_parse): Likewise.
6134
        * xcoffread.c (_initialize_xcoffread): Likewise.
6135
        * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
6136
        (read_range_type): Likewise.
6137
        * objc-lang.c (objc_create_fundamental_type): Likewise.
6138
        * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
6139
        * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
6140
        (m2_create_fundamental_type): Likewise.
6141
        * c-lang.c (c_create_fundamental_type): Likewise.
6142
        * coffread.c (coff_read_enum_type): Likewise.
6143
        * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
6144
        * dwarf2read.c (new_symbol): Likewise.
6145
        * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
6146
        * c-exp.y (parse_number): Likewise.
6147
        * objc-exp.y (parse_number): Likewise.
6148
        * ada-lex.l (processInt): Likewise.
6149
        * f-exp.y (parse_number): Likewise.
6150
        * p-exp.y (parse_number): Likewise.
6151
        * valarith.c (value_binop): Likewise.
6152
        * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
6153
        * ada-lang.c (ada_create_fundamental_type)
6154
        (ada_language_arch_info): Likewise.
6155
        * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6156
        * symfile.c (TARGET_LONG_BYTES): Likewise.
6157
        * p-lang.c (pascal_create_fundamental_type): Likewise.
6158
        * objc-lang.c (objc_create_fundamental_type): Likewise.
6159
        * m2-lang.c (m2_create_fundamental_type): Likewise.
6160
        * f-lang.c (f_create_fundamental_type): Likewise.
6161
        * c-lang.c (c_create_fundamental_type): Likewise.
6162
        * coffread.c (decode_base_type): Likewise.
6163
        * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
6164
        * c-exp.y (parse_number): Likewise.
6165
        * objc-exp.y (parse_number): Likewise.
6166
        * p-exp.y (parse_number): Likewise.
6167
        * ada-lang.c (ada_create_fundamental_type)
6168
        (ada_language_arch_info): Likewise.
6169
        * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
6170
        * stabsread.c (read_range_type): Likewise.
6171
        * p-lang.c (pascal_create_fundamental_type): Likewise.
6172
        * objc-lang.c (objc_create_fundamental_type): Likewise.
6173
        * m2-lang.c (m2_create_fundamental_type): Likewise.
6174
        * f-lang.c (f_create_fundamental_type): Likewise.
6175
        * c-lang.c (c_create_fundamental_type): Likewise.
6176
        * gdbarch.c, gdbarch.h: Regenerate.
6177
 
6178
2007-06-12  Andreas Schwab  
6179
 
6180
        * frame-unwind.h (frame_dealloc_cache_ftype): Define.
6181
        (struct frame_unwind): Add dealloc_cache.
6182
        * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
6183
 
6184
        * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
6185
        * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
6186
        (libunwind_frame_unwind): Set dealloc_cache.
6187
        * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
6188
 
6189
2007-06-12  Ulrich Weigand  
6190
            Markus Deuling  
6191
 
6192
        * remote.c (remote_write_qxfer): New function.
6193
        (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
6194
        (remote_read_qxfer): Do not cache empty objects.
6195
        (_initialize_remote): Add PACKET_qXfer_spu_read and
6196
        PACKET_qXfer_spu_write.
6197
 
6198
2007-06-12  Ulrich Weigand  
6199
 
6200
        * target.h (enum target_object): Add TARGET_OBJECT_SPU.
6201
        * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
6202
 
6203
        * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
6204
        (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
6205
        SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
6206
        * spu-tdep.c (infospucmdlist): New variable.
6207
        (spu_register_name): Handle additional pseudo registers.
6208
        (spu_register_type): Likewise.
6209
        (spu_pseudo_register_read): Likewise.
6210
        (spu_pseudo_register_write): Likewise.
6211
        (spu_pseudo_register_read_spu): New function.
6212
        (spu_pseudo_register_write_spu): Likewise.
6213
        (info_spu_event_command): New function.
6214
        (info_spu_signal_command): Likewise.
6215
        (info_spu_mailbox_list): Likewise.
6216
        (info_spu_mailbox_command): Likewise.
6217
        (spu_mfc_get_bitfield): Likewise.
6218
        (info_spu_dma_cmdlist): Likewise.
6219
        (info_spu_dma_command): Likewise.
6220
        (info_spu_proxydma_command): Likewise.
6221
        (info_spu_command): Likewise.
6222
        (_initialize_spu_tdep): Install "info spu" commands.
6223
 
6224
2007-06-12  Ulrich Weigand  
6225
 
6226
        * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
6227
        accessing non-seekable spufs files.
6228
 
6229
2007-06-09  Markus Deuling  
6230
 
6231
        * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
6232
        gdbarch_skip_trampoline_code.
6233
        * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6234
        * objc-lang.c (objc_skip_trampoline)
6235
        (objc_submethod_helper_data): Likewise.
6236
        * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6237
        * infrun.c (handle_inferior_event): Likewise.
6238
        * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6239
        * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6240
        gdbarch_in_solib_return_trampoline.
6241
        * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6242
        * infrun.c (handle_inferior_event): Likewise.
6243
        * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6244
        * gdbarch.c, gdbarch.h: Regenerate.
6245
 
6246
2007-06-09  Markus Deuling  
6247
 
6248
        * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6249
        * symtab.c (find_function_start_sal, in_prologue): Likewise.
6250
        * linespec.c (minsym_found): Likewise.
6251
        * infrun.c (step_into_function): Likewise.
6252
        * gdbarch.c, gdbarch.h: Regenerate.
6253
 
6254
2007-06-09  Markus Deuling  
6255
 
6256
        * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6257
        * valops.c (value_allocate_space_in_inferior): Likewise.
6258
        * gdbarch.c, gdbarch.h: Regenerate.
6259
 
6260
2007-06-09  Markus Deuling  
6261
 
6262
        * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6263
        gdbarch_memory_insert_breakpoint.
6264
        * mem-break.c (memory_insert_breakpoint): Likewise.
6265
        * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6266
        gdbarch_memory_remove_breakpoint.
6267
        * mem-break.c (memory_remove_breakpoint): Likewise.
6268
        * gdbarch.c, gdbarch.h: Regenerate.
6269
 
6270
2007-06-09  Markus Deuling  
6271
 
6272
        * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6273
        gdbarch_fetch_tls_load_module_address.
6274
        * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6275
        gdbarch_fetch_tls_load_module_address_p.
6276
        * gdbarch.c, gdbarch.h: Regenerate.
6277
 
6278
2007-06-09  Markus Deuling  
6279
 
6280
        * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6281
        gdbarch_decr_pc_after_break.
6282
        * tracepoint.c (trace_dump_command): Likewise.
6283
        * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6284
        * linux-thread-db.c (check_event): Likewise.
6285
        * linux-nat.c (cancel_breakpoints_callback): Likewise.
6286
        * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6287
        * frame.h: Likewise (comment).
6288
        * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6289
        * aix-thread.c (aix_thread_wait): Likewise.
6290
        * gdbarch.c, gdbarch.h: Regenerate.
6291
 
6292
2007-06-09  Markus Deuling  
6293
 
6294
        * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6295
        gdbarch_address_class_type_flags.
6296
        * dwarf2read.c (read_tag_pointer_type): Likewise.
6297
        * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6298
        gdbarch_address_class_type_flags_p.
6299
        * dwarf2read.c (read_tag_pointer_type): Likewise.
6300
        * gdbarch.c, gdbarch.h: Regenerate.
6301
 
6302
2007-06-09  Markus Deuling  
6303
 
6304
        * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6305
        * value.c (value_as_address): Likewise (comment).
6306
        * remote-mips.c (common_breakpoint): Likewise.
6307
        * regcache.c (read_pc_pid): Likewise.
6308
        * printcmd.c (do_one_display): Likewise.
6309
        * monitor.c (monitor_write_memory, monitor_read_memory)
6310
        (monitor_insert_breakpoint): Likewise.
6311
        * mips-tdep.c (heuristic_proc_start): Likewise.
6312
        * infrun.c (insert_step_resume_breakpoint_at_frame)
6313
        (insert_step_resume_breakpoint_at_caller): Likewise.
6314
        * buildsym.c (record_line): Likewise.
6315
        * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6316
        (arm_get_next_pc): Likewise.
6317
        * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6318
        (store_regs): Likewise.
6319
        * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6320
        * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6321
        * gdbarch.c, gdbarch.h: Regenerate.
6322
 
6323
2007-06-09  Markus Deuling  
6324
 
6325
        * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6326
        * tracepoint.c (scope_info): Likewise.
6327
        * target.c (debug_print_register): Likewise.
6328
        * stack.c (frame_info): Likewise.
6329
        * sh-tdep.c (sh_register_reggroup_p): Likewise.
6330
        * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6331
        (sh64_media_print_registers_info)
6332
        (sh64_compact_print_registers_info): Likewise.
6333
        * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6334
        * remote-sim.c (gdbsim_fetch_register): Likewise.
6335
        * remote.c (packet_reg): Likewise (comment).
6336
        * reggroups.c (default_register_reggroup_p): Likewise.
6337
        * regcache.c (regcache_dump): Likewise.
6338
        * printcmd.c (address_info): Likewise.
6339
        * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6340
        * mt-dep.c (mt_registers_info): Likewise.
6341
        * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6342
        * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6343
        (mips_read_fp_register_double, mips_print_fp_register)
6344
        (mips_print_register, print_gp_register_row, mips_print_registers_info)
6345
        (mips_register_sim_regno): Likewise.
6346
        * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6347
        * inf-ptrace.c (inf_ptrace_fetch_register)
6348
        (inf_ptrace_store_register): Likewise.
6349
        * infcmd.c (default_print_registers_info): Likewise.
6350
        * ia64-linux-nat.c (ia64_linux_fetch_register)
6351
        (ia64_linux_store_register): Likewise.
6352
        * i386-linux-nat.c (fetch_register, store_register): Likewise.
6353
        * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6354
        * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6355
        * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6356
        (hppa_hpux_store_register): Likewise.
6357
        * findvar.c (locate_var_value): Likewise.
6358
        * dwarf2loc.c (locexpr_describe_location): Likewise.
6359
        * dwarf2-frame.c (execute_cfa_program): Likewise.
6360
        * arm-tdep.c (arm_push_dummy_call): Likewise.
6361
        * arch-utils.c (legacy_register_sim_regno): Likewise.
6362
        * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6363
        * alpha-nat.c (fetch_osf_core_registers): Likewise.
6364
        * mi/mi-main.c (mi_cmd_data_list_register_names)
6365
        (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6366
        (mi_cmd_data_write_register_values): Likewise.
6367
        * gdbarch.c, gdbarch.h: Regenerate.
6368
 
6369
2007-06-07  Daniel Jacobowitz  
6370
 
6371
        * target-memory.c (blocks_to_erase): Correct off-by-one error.
6372
 
6373
2007-06-06  Vladimir Prus  
6374
 
6375
        * remote.c (process_g_packet): Don't check size.
6376
        * gdbarch.sh: Remove register_bytes_ok.
6377
        * gdbarch.c: Regenerated.
6378
        * gdbarch.h: Regenerated.
6379
        * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6380
        (m68k_register_bytes_ok): Remove.
6381
        (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6382
 
6383
2007-06-06  Andreas Schwab  
6384
 
6385
        * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6386
        (destroy_addr_space_name): Define.
6387
        (libunwind_load): Get address of destroy_addr_space function.
6388
        (libunwind_frame_cache): Destroy unw_addr_space_t object before
6389
        returning unsuccessfully.
6390
        (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6391
        returning.
6392
        (libunwind_sigtramp_frame_sniffer): Likewise.
6393
        (libunwind_get_reg_special): Likewise.
6394
 
6395
2007-06-06  Markus Deuling  
6396
 
6397
        * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6398
        gdbarch_fetch_pointer_argument.
6399
        * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6400
        * gdbarch.c, gdbarch.h: Regenerate.
6401
 
6402
2007-06-06  Markus Deuling  
6403
 
6404
        * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6405
        gdbarch_have_nonsteppable_watchpoint.
6406
        * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6407
        * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6408
        gdbarch_cannot_step_breakpoint.
6409
        * infrun.c (resume): Likewise.
6410
        * gdbarch.c, gdbarch.h: Regenerate.
6411
 
6412
2007-06-06  Markus Deuling  
6413
 
6414
        * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6415
        * stack.c (print_frame_args): Likewise.
6416
        * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6417
        * stack.c (print_args_stub, frame_info): Likewise.
6418
        * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6419
        * stack.c (print_args_stub, frame_info): Likewise.
6420
        * gdbarch.c, gdbarch.h: Regenerate.
6421
 
6422
2007-06-06  Markus Deuling  
6423
 
6424
        * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6425
        gdbarch_coff_make_msymbol_special.
6426
        * coffread.c (coff_symtab_read): Likewise.
6427
        * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6428
        gdbarch_elf_make_msymbol_special.
6429
        * elfread.c (elf_symtab_read): Likewise.
6430
        * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6431
        * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6432
        * gdbarch.c, gdbarch.h: Regenerate.
6433
 
6434
2007-06-06  Markus Deuling  
6435
 
6436
        * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6437
        gdbarch_frame_red_zone_size.
6438
        * gdbarch.c, gdbarch.h: Regenerate.
6439
 
6440
2007-06-06  Markus Deuling  
6441
 
6442
        * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6443
        * infcall.c (call_function_by_hand): Likewise.
6444
        * gcore.c (derive_stack_segment): Likewise.
6445
        * frame.c (frame_id_inner): Likewise.
6446
        * arch-utils.c (core_addr_lessthan): Likewise (comment).
6447
        * ada-lang.c (ensure_lval): Likewise.
6448
        * gdbarch.c, gdbarch.h: Regenerate.
6449
 
6450
2007-06-06  Markus Deuling  
6451
 
6452
        * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6453
        gdbarch_address_to_pointer.
6454
        * findvar.c (store_typed_address): Likewise.
6455
        * gdbtypes.c (make_pointer_type): Likewise (comment).
6456
        * procfs.c (procfs_address_to_host_pointer): Likewise.
6457
        * std-regs.c (value_of_builtin_frame_reg): Likewise.
6458
        (value_of_builtin_frame_fp_reg): Likewise.
6459
        (value_of_builtin_frame_pc_reg): Likewise.
6460
        * utils.c (paddress): Likewise (comment).
6461
        * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6462
        gdbarch_pointer_to_address.
6463
        * findvar.c (extract_typed_address): Likewise.
6464
        * gdbtypes.c (make_pointer_type): Likewise (comment).
6465
        * valops.c (value_cast): Likewise (comment).
6466
        * gdbarch.c, gdbarch.h: Regenerate.
6467
 
6468
2007-06-06  Markus Deuling  
6469
 
6470
        * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6471
        * infrun.c (handle_inferior_event): Likewise.
6472
        * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6473
        gdbarch_get_longjmp_target_p.
6474
        * breakpoint.c (breakpoint_re_set): Likewise.
6475
        * infrun.c (handle_inferior_event): Likewise.
6476
        * gdbarch.c, gdbarch.h: Regenerate.
6477
 
6478
2007-06-06  Ulrich Weigand  
6479
 
6480
        * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6481
        HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6482
        HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6483
        hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6484
        eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6485
        eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6486
        find_stub_with_shl_get, cover_find_stub_with_shl_get,
6487
        initialize_hp_cxx_exception_support, child_enable_exception_callback,
6488
        current_ex_event, child_get_current_exception_event): Remove.
6489
        (hppa_hpux_inferior_created): Remove.
6490
        (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6491
 
6492
        * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6493
        (deprecated_exception_support_initialized): Remove.
6494
        * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6495
        (deprecated_exception_support_initialized): Remove.
6496
        (breakpoint_init_inferior): Remove handling of non-zero
6497
        deprecated_exception_catchpoints_are_fragile.
6498
 
6499
        * symtab.h (deprecated_hp_som_som_object_present): Remove.
6500
        * symtab.c (deprecated_hp_som_som_object_present): Remove.
6501
        * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6502
        deprecated_hp_som_som_object_present.
6503
        * eval.c (evaluate_subexp_standard): Likewise.
6504
        * valops.c (value_cast): Likewise.
6505
 
6506
        * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6507
        * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6508
        * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6509
 
6510
2007-06-06  Ulrich Weigand  
6511
 
6512
        * objfiles.h (ImportEntry, ExportEntry): Remove types.
6513
        (struct objfile): Remove import_list, import_list_size,
6514
        export_list, export_list_size members.
6515
        (is_in_import_list): Remove prototype.
6516
        * objfiles.c (is_in_import_list): Remove.
6517
        * somread.c (init_import_symbols, init_export_symbols): Remove.
6518
        (som_symfile_read): Do not call init_import_symbols.  Do not
6519
        set objfile->export_list and objfile->export_list_size.
6520
 
6521
2007-06-05  Daniel Jacobowitz  
6522
 
6523
        * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6524
        Use the original objfile if necessary.
6525
 
6526
2007-06-04  Daniel Jacobowitz  
6527
 
6528
        * defs.h (ldirname): New prototype.
6529
        * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6530
        missing.
6531
        * utils.c (ldirname): New function.
6532
        * xml-tdesc.c (file_read_description_xml): Use ldirname.
6533
 
6534
2007-06-01  Ulrich Weigand  
6535
 
6536
        * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6537
 
6538
2007-06-01  Joel Brobecker  
6539
 
6540
        * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6541
 
6542
2007-06-01  Ulrich Weigand  
6543
 
6544
        * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6545
 
6546
2007-06-01  Ulrich Weigand  
6547
 
6548
        * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6549
        INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6550
        (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6551
        PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6552
        (ppc_linux_in_sigtramp, insn_is_sigreturn,
6553
        ppc_linux_at_sigtramp_return_path): Remove.
6554
 
6555
2007-05-31  Markus Deuling  
6556
 
6557
        * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6558
        (xtensa_register_write_masked, xtensa_register_read_masked)
6559
        (xtensa_extract_return_value, xtensa_store_return_value
6560
        (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6561
        TARGET_BYTE_ORDER by gdbarch_byte_order.
6562
        * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6563
        (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6564
        (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6565
        * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6566
        (sh64_push_dummy_call, sh64_extract_return_value)
6567
        (sh64_store_return_value, sh64_register_convert_to_virtual)
6568
        (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6569
        (sh64_pseudo_register_write, sh64_do_fp_register)
6570
        (sh64_frame_prev_register): Likewise.
6571
        * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6572
        (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6573
        * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6574
        (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6575
        * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6576
        * ppc-linux-nat.c (store_register): Likewise.
6577
        * nto-tdep.c (nto_find_and_open_solib)
6578
        (nto_init_solib_absolute_prefix): Likewise.
6579
        * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6580
        (mips_convert_register_p, mips_eabi_push_dummy_call)
6581
        (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6582
        (mips_o32_push_dummy_call, mips_o32_return_value)
6583
        (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6584
        (mips_read_fp_register_single, mips_read_fp_register_double)
6585
        (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6586
        (mips_breakpoint_from_pc): Likewise.
6587
        * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6588
        * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6589
        (mips_linux_o32_sigframe_init): Likewise.
6590
        * m32r-tdep.c (m32r_memory_insert_breakpoint)
6591
        (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6592
        * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6593
        (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6594
        * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6595
        * coffread.c (process_coff_symbol): Likewise.
6596
        * arm-tdep.c (convert_from_extended, convert_to_extended)
6597
        (gdb_print_insn_arm): Likewise.
6598
 
6599
2007-05-31  Markus Deuling  
6600
 
6601
        * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6602
        * i386-tdep.c (i386_dbx_reg_to_regnum)
6603
        (i386_svr4_reg_to_regnum): Likewise.
6604
        * inf-ptrace.c (inf_ptrace_fetch_registers)
6605
        (inf_ptrace_store_registers): Likewise.
6606
        * corelow.c (get_core_registers): Likewise.
6607
        * i386-linux-nat.c (supply_gregset, fill_gregset)
6608
        (i386_linux_fetch_inferior_registers)
6609
        (i386_linux_store_inferior_registers): Likewise.
6610
        * remote.c (init_remote_state,packet_reg_from_regnum)
6611
        (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6612
        (remote_prepare_to_store,store_registers_using_G)
6613
        (remote_store_registers,remote_arch_state): Likewise.
6614
        * tracepoint.c (encode_actions): Likewise.
6615
        * mi/mi-main.c (mi_cmd_data_list_register_names)
6616
        (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6617
        (mi_cmd_data_write_register_values): Likewise.
6618
        * tui/tui-regs.c (tui_show_register_group)
6619
        (tui_show_register_group): Likewise.
6620
        * xtensa-tdep.h (FP_ALIAS): Likewise.
6621
        * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6622
        (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6623
        (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6624
        * win32-nat.c (do_win32_fetch_inferior_registers)
6625
        (do_win32_store_inferior_registers,fetch_elf_core_registers
6626
        * user-regs.h: Likewise (comment).
6627
        * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6628
        * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6629
        * target-descriptions.h: Likewise (comment).
6630
        * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6631
        * target.c (debug_print_register): Likewise.
6632
        * stack.c (frame_info): Likewise.
6633
        * stabsread.c (define_symbol): Likewise.
6634
        * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6635
        (sh64_media_print_registers_info)
6636
        (sh64_compact_print_registers_info): Likewise.
6637
        * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6638
        * rs6000-nat.c (fetch_register,store_register): Likewise.
6639
        * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6640
        (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6641
        * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6642
        * remote-m32r-sdi.c (m32r_fetch_registers)
6643
        (m32r_store_registers): Likewise.
6644
        * reggroups.c (default_register_reggroup_p): Likewise.
6645
        * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6646
        (regcache_restore,regcache_dump): Likewise.
6647
        * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6648
        * mips-tdep.c (mips_xfer_register,mips_register_name)
6649
        (mips_register_reggroup_p,mips_pseudo_register_read)
6650
        (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6651
        (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6652
        (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6653
        (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6654
        (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6655
        (print_gp_register_row,mips_print_registers_info)
6656
        (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6657
        (mips_register_sim_regno): Likewise.
6658
        * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6659
        (mips_linux_n32n64_sigframe_init): Likewise.
6660
        * mips-linux-nat.c (mips_linux_register_addr)
6661
        (mips64_linux_register_addr): Likewise.
6662
        * findvar.c (value_of_register): Likewise.
6663
        * infcmd.c (default_print_registers_info,registers_info)
6664
        (print_vector_info,print_float_info): Likewise.
6665
        * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6666
        * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6667
        * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6668
        * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6669
        * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6670
        * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6671
        (ia64_cannot_store_register,ia64_linux_fetch_registers)
6672
        (ia64_linux_store_registers): Likewise.
6673
        * hpux-thread.c (hpux_thread_fetch_registers)
6674
        (hpux_thread_store_registers): Likewise.
6675
        * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6676
        (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6677
        (h8300_register_type): Likewise.
6678
        * dwarf2-frame.c (dwarf2_frame_cache)
6679
        (dwarf2_frame_state_alloc_regs): Likewise.
6680
        * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6681
        (cris_cannot_store_register,crisv32_cannot_fetch_register)
6682
        (crisv32_cannot_store_register,cris_register_name): Likewise.
6683
        * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6684
        * arch-utils.c (legacy_register_sim_regno)
6685
        (legacy_virtual_frame_pointer): Likewise.
6686
        * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6687
        * arm-tdep.h: Likewise (comment).
6688
        * frv-tdep.c (frv_register_sim_regno): Likewise.
6689
        * m68klinux-nat.c (old_fetch_inferior_registers)
6690
        (old_store_inferior_registers): Likewise.
6691
        * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6692
        * irix5-nat.c (fetch_core_registers): Likewise.
6693
        * hppa-tdep.c (hppa_frame_cache): Likewise.
6694
        * hppa-linux-nat.c (hppa_linux_register_addr)
6695
        (hppa_linux_fetch_inferior_registers)
6696
        (hppa_linux_store_inferior_registers): Likewise.
6697
        * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6698
        (hppa_hpux_store_inferior_registers): Likewise.
6699
        * amd64-nat.c (amd64_native_gregset_reg_offset)
6700
        (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6701
        * dbug-rom.c (dbug_regname): Likewise.
6702
        * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6703
        (HARD_PAGE_REGNUM (comment)): Likewise.
6704
        * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6705
        * i386-tdep.c (i386_dbx_reg_to_regnum)
6706
        (i386_svr4_reg_to_regnum): Likewise.
6707
        * mi/mi-main.c (mi_cmd_data_list_register_names)
6708
        (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6709
        (mi_cmd_data_write_register_values): Likewise.
6710
        * gdbarch.c, gdbarch.h: Regenerate.
6711
        * tui/tui-regs.c (tui_show_register_group): Likewise.
6712
        * xtensa-tdep.h (FP_ALIAS): Likewise.
6713
        * user-regs.h: Likewise (comment).
6714
        * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6715
        * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6716
        * target-descriptions.h: Likewise (comment).
6717
        * target.c (debug_print_register): Likewise.
6718
        * stack.c (frame_info): Likewise.
6719
        * stabsread.c (define_symbol): Likewise.
6720
        * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6721
        (sh64_compact_print_registers_info): Likewise.
6722
        * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6723
        * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6724
        (regcache_restore,regcache_dump): Likewise.
6725
        * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6726
        (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6727
        (mips_stab_reg_to_regnum): Likewise.
6728
        * findvar.c (value_of_register): Likewise.
6729
        * infcmd.c (default_print_registers_info,registers_info)
6730
        (print_vector_info,print_float_info): Likewise.
6731
        * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6732
        * h8300-tdep.c (h8300_register_type): Likewise.
6733
        * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6734
        * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6735
        * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6736
        (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6737
        * parse.c: Remove comment.
6738
        * gdbarch.c, gdbarch.h: Regenerate
6739
 
6740
2007-05-31  Markus Deuling  
6741
 
6742
        * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6743
        gdbarch_cannot_fetch_register.
6744
        * alpha-nat.c (fetch_osf_core_registers): Likewise.
6745
        * hppa-linux-nat.c (fetch_register): Likewise.
6746
        * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6747
        * m68klinux-nat.c (fetch_register): Likewise.
6748
        * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6749
        Likewise.
6750
        * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6751
        gdbarch_cannot_store_register.
6752
        * hppa-linux-nat.c (store_register): Likewise.
6753
        * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6754
        * regcache.c (regcache_raw_write): Likewise.
6755
        * m68klinux-nat.c (store_register): Likewise.
6756
        * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6757
        * gdbarch.c, gdbarch.h: Regenerate.
6758
 
6759
2007-05-31  Markus Deuling  
6760
 
6761
        * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6762
        * gdbarch.c, gdbarch.h: Regenerate.
6763
 
6764
2007-05-31  Markus Deuling  
6765
 
6766
        * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6767
        * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6768
        * gdbarch.c, gdbarch.h: Regenerate.
6769
 
6770
2007-05-31  Markus Deuling  
6771
 
6772
        * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6773
        * ax-gdb.c (gen_bitfield_ref): Likewise.
6774
        * mi/mi-main.c (get_register): Likewise.
6775
        * findvar.c (default_value_from_register, extract_signed_integer)
6776
        (extract_unsigned_integer, extract_long_unsigned_integer)
6777
        (store_signed_integer, store_unsigned_integer): Likewise.
6778
        * regcache.c (regcache_dump): Likewise.
6779
        * value.c (lookup_internalvar, value_of_internalvar)
6780
        (set_internalvar): Likewise.
6781
        * defs.h: Likewise.
6782
        * valprint.c (print_binary_chars, print_octal_chars)
6783
        (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6784
        * infcmd.c (default_print_registers_info): Likewise.
6785
        * arch-utils.c (selected_byte_order, show_endian): Likewise.
6786
        * stabsread.c (define_symbol): Likewise.
6787
        * doublest.c (floatformat_from_length, floatformat_from_type)
6788
        (extract_typed_floating, store_typed_floating): Likewise.
6789
        * gdbarch.c, gdbarch.h: Regenerate.
6790
 
6791
2007-05-31  Markus Deuling  
6792
 
6793
        * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6794
        gdbarch_call_dummy_location.
6795
        * infcall.c (call_function_by_hand): Likewise.
6796
        * inferior.h: Change comment.
6797
        * arch-utils.c: Change comment.
6798
        * gdbarch.c, gdbarch.h: Regenerate.
6799
 
6800
2007-05-28  Joel Brobecker  
6801
 
6802
        * solib-aix5.c: Delete.
6803
        * Makefile.in (solib-aix5.o): Delete rule.
6804
 
6805
2007-05-23  Daniel Jacobowitz  
6806
 
6807
        * breakpoint.h (enum bpstat_what_main_action): Remove
6808
        BPSTAT_WHAT_THROUGH_SIGTRAMP.
6809
        * infrun.c (process_event_stop_test): Do not check for it.
6810
 
6811
2007-05-22  Chris Dearman  
6812
            Maciej W. Rozycki  
6813
 
6814
        * ser-unix.c (show_serial_hwflow): New function.
6815
        (hardwire_raw): Add hardware flow control support.
6816
        (_initialize_ser_hardwire): Add "set/show remoteflow".
6817
        * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6818
        * NEWS: Document the new command.
6819
 
6820
2007-05-21  Ulrich Weigand  
6821
 
6822
        * config/i386/tm-linux.h (sys_quotactl): Do not define.
6823
        * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6824
        define for i[[3456]]86-*-linux* native configurations.
6825
        * config.in, configure: Regenerate.
6826
 
6827
2007-05-19  Joel Brobecker  
6828
 
6829
        * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6830
        a core file. Add comment in the function description.
6831
 
6832
2007-05-18  Caroline Tice  
6833
 
6834
        * c-valprint.c (c_value_print):  If the initialized field of the
6835
        value struct is 0, print out "[uninitialized]" before the value.
6836
        * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6837
        allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6838
        DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6839
        ctx->initialized appropriately. Verify no location op follows
6840
        DW_OP_GNU_uninit.
6841
        * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6842
        * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6843
        set_value_initialized.
6844
        * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6845
        (decode_locdesc): Add case for DW_OP_GNU_uninit.
6846
        * value.c (struct value):  New field, initialized.
6847
        (allocate_value): Initialize new field.
6848
        (set_value_initialized): New function.
6849
        (value_initialized): New function.
6850
        * value.h (value_initialized): New extern declaration.
6851
        (set_value_initialized): Likewise.
6852
 
6853
2007-05-18  Caroline Tice  
6854
 
6855
        * MAINTAINERS (Write After Approval): Add self.
6856
 
6857
2007-05-17  Joel Brobecker  
6858
 
6859
        * gdbtypes.c (make_reference_type): Preserve the type chain
6860
        and set the length of all the variants of the pointer type.
6861
 
6862
2007-05-17  Joel Brobecker  
6863
 
6864
        * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6865
        and set the length of all the variants of the pointer type.
6866
 
6867
2007-05-17  Maciej W. Rozycki  
6868
 
6869
        * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6870
        comment.
6871
        (mips_o64_push_dummy_call): Reformat a comment.
6872
 
6873
2007-05-17  Qinwei  
6874
 
6875
        * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6876
        (score_prologue_frame_base_address): Return fp to keep gdb print
6877
        local variables correctly when debugging information is stabs.
6878
 
6879
        (score_analyze_prologue): For software watchpoint, fetch all the
6880
        instructions from range [startaddr, pc] once and identify them locally
6881
        to reduce memory access.
6882
        (score_malloc_and_get_memblock, score_free_memblock)
6883
        (score_adjust_memblock_ptr): New functions.
6884
        (score_fetch_inst): Fetch single instruction or mutiple instructions.
6885
 
6886
        (score_target_can_use_watch, score_stopped_by_watch)
6887
        (score_target_insert_watchpoint, score_target_remove_watchpoint)
6888
        (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6889
        New functions for remote & local hw-watchpoint and hw-breakpoint.
6890
 
6891
2007-05-16  Alfred M. Szmidt  
6892
 
6893
        * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6894
        declarations as well.
6895
 
6896
2007-05-16  Ulrich Weigand  
6897
 
6898
        * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6899
        * config/arm/tm-embed.h: Delete file.
6900
 
6901
        * arm-tdep.h (arm_software_single_step): Declare.
6902
        * arm-tdep.c (arm_software_single_step): Make global.
6903
        (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6904
        from here to ...
6905
        * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6906
        * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6907
        * armobsd-tdep.c (armobsd_init_abi): ... here ...
6908
        * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6909
 
6910
        * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6911
        allow defines to be overriden by TM file.
6912
        (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise.  Also,
6913
        change default to {0xbe,0xbe}.
6914
        * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6915
        arm_obsd_thumb_be_breakpoint): New global variables.
6916
        (armobsd_init_abi): Override tdep->thumb_breakpoint and
6917
        tdep->thumb_breakpoint_size.
6918
        * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6919
        (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6920
        tdep->thumb_breakpoint_size.
6921
 
6922
        * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6923
 
6924
2007-05-16  Daniel Jacobowitz  
6925
 
6926
        * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6927
        saved-gpreg-size".
6928
 
6929
        * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6930
        (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6931
        (mips_stack_argsize_string, mips_stack_argsize): Delete.
6932
        (mips_abi_regsize): Simplify.
6933
        (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6934
        (mips_n32n64_return_value, mips_o32_push_dummy_call)
6935
        (mips_o32_return_value, mips_o64_push_dummy_call)
6936
        (mips_o64_return_value): Propogate constant register sizes.  Use the
6937
        ABI register size instead of mips_stack_argsize.
6938
        (mips_dump_tdep): Don't print mips_stack_argsize.
6939
        (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6940
        settings.
6941
 
6942
2007-05-16  Daniel Jacobowitz  
6943
 
6944
        * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6945
        * config/mips/tm-linux.h: Delete.
6946
        * mips-linux-tdep.c (mips_svr4_so_ops): New.
6947
        (mips_linux_in_dynsym_resolve_code): Make static.  Use
6948
        svr4_in_dynsym_resolve_code.
6949
        (mips_linux_init_abi): Initialize mips_svr4_so_ops.  Call
6950
        set_solib_ops.
6951
        * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6952
        global.
6953
        * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6954
        * Makefile.in (mips-linux-tdep.o): Update.
6955
        * solib.c (set_solib_ops): New.
6956
        (current_target_so_ops): Update comment.
6957
        * solib.h (set_solib_ops): New prototype.
6958
 
6959
2007-05-16  Chris Dearman  
6960
 
6961
        * printcmd.c (do_examine): Fix typos in a comment.
6962
 
6963
2007-05-16  Richard Sandiford  
6964
 
6965
        * configure.ac: Allow sysroots to be relocated under $prefix as
6966
        well as $exec_prefix.
6967
        * configure: Regenerate.
6968
 
6969
2007-05-14  Ulrich Weigand  
6970
 
6971
        * hppa-hpux-tdep.c: Do not include  or .
6972
        (offsetof): Do not define.
6973
        (find_stub_with_shl_get): Use numerical value 3 instead of
6974
        symbolic value TYPE_PROCEDURE.
6975
 
6976
2007-05-14  Daniel Jacobowitz  
6977
 
6978
        * gdb_proc_service.h (paddr_t): Delete typedef.
6979
        * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6980
        (ps_xfer_memory): Take a psaddr_t.  Use ps_addr_to_core_addr.
6981
        (ps_pglobal_lookup): Take a psaddr_t *.  Use core_addr_to_ps_addr.
6982
        (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6983
        * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6984
        * Makefile.in (proc-service.o): Update.
6985
 
6986
2007-05-14  Daniel Jacobowitz  
6987
 
6988
        * Makefile.in (mips-tdep.o): Update.
6989
        * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6990
        unwinder.
6991
 
6992
2007-05-14  Daniel Jacobowitz  
6993
 
6994
        * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6995
        instead of store_typed_address.
6996
        * value.c (pack_long): New.
6997
        (value_from_longest): Use it.
6998
        * value.h (pack_long): New prototype.
6999
 
7000
2007-05-14  Daniel Jacobowitz  
7001
 
7002
        * dwarf2-frame.c (read_encoded_value): Correct typo.  Use
7003
        DW_EH_PE_signed if appropriate.
7004
 
7005
2007-05-14  Paul Brook  
7006
            Daniel Jacobowitz  
7007
 
7008
        * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
7009
        function.
7010
        (dwarf_decode_lines): Check for line info without a file.
7011
 
7012
2007-05-14  Daniel Jacobowitz  
7013
 
7014
        * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
7015
        as hexadecimal.
7016
 
7017
2007-05-14  Daniel Jacobowitz  
7018
 
7019
        * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
7020
        STRUCTOP_STRUCT.
7021
        * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
7022
        STRUCTOP_STRUCT.
7023
        * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
7024
 
7025
2007-05-14  Ulrich Weigand  
7026
 
7027
        * gdbarch.sh (read_sp): Remove.
7028
        * gdbarch.c, gdbarch.h: Regenerate.
7029
        * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
7030
 
7031
        * avr-tdep.c (avr_read_sp): Remove.
7032
        (avr_unwind_sp): New function.
7033
        (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
7034
        * mips-tdep.c (mips_read_sp): Remove.
7035
        (mips_unwind_sp): New function.
7036
        (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
7037
        * score-tdep.c (score_read_unsigned_register): Remove.
7038
        (score_read_sp): Remove.
7039
        (score_unwind_sp): New function.
7040
        (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
7041
 
7042
2007-05-14  Maxim Grigoriev  
7043
 
7044
        * buildsym.c (start_subfile): Handle absolute pathnames
7045
        while comparing subfile names.
7046
 
7047
2007-05-13  Ulrich Weigand  
7048
 
7049
        * hppa-hpux-tdep.c: Include "regcache.h".
7050
        * hppa-linux-tdep.c: Likewise.
7051
        * hppa-tdep.c: Include "gdb_stdint.h".
7052
        (find_unwind_entry): Cast host pointer to uintptr_t before passing
7053
        it to paddr_nz.
7054
        * Makefile.in: Update dependencies.
7055
 
7056
2007-05-13  Ulrich Weigand  
7057
 
7058
        * blockframe.c: Remove obsolete comments.
7059
        * alpha-nat.c (fetch_osf_core_registers): Update comment.
7060
        * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
7061
        * hppa-tdep.h (enum hppa_regnum): Likewise.
7062
        * mips-tdep.h: Likewise.
7063
        * m68hc11-tdep.c: Likewise.
7064
 
7065
2007-05-13  Ulrich Weigand  
7066
 
7067
        * inferior.h (read_sp): Remove prototype.
7068
        * regcache.c (read_sp): Remove.
7069
        * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
7070
        * infcall.c (call_function_by_hand): Likewise.
7071
        * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
7072
        of calling read_sp.
7073
        * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7074
 
7075
2007-05-11  Ulrich Weigand  
7076
 
7077
        * i386-linux-nat.c (i386_linux_resume): Use regcache functions
7078
        instead of read_register and read_register_pid.
7079
 
7080
        * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
7081
        argument instead of PTID.  Use regcache functions instead of
7082
        read_register_pid.
7083
        (ia64_linux_insert_watchpoint): Update call.
7084
        (ia64_linux_stopped_data_address): Use regcache functions
7085
        instead of read_register_pid and write_register_pid.
7086
 
7087
2007-05-11  Ulrich Weigand  
7088
 
7089
        * libunwind-frame.h (struct regcache): Add forward declaration.
7090
        (libunwind_get_reg_special): Add REGCACHE argument.
7091
        * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
7092
        argument.  Pass it to unw_init_remote_p.
7093
 
7094
        * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
7095
        libunwind_get_reg_special.
7096
        (ia64_access_reg): Remove "write" case.
7097
        (ia64_access_fpreg): Likewise.  Read from next_frame passed
7098
        as callback argument instead of from current_regcache.
7099
        (ia64_access_rse_reg): Remove "write" case.  Read from regcache
7100
        passed as callback argument instead of from current_regcache.
7101
        (ia64_access_rse_fpreg): New function.
7102
        (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
7103
 
7104
2007-05-11  Ulrich Weigand  
7105
 
7106
        * NEWS: Mention SPU overlay support.
7107
 
7108
2007-05-11  Ulrich Weigand  
7109
 
7110
        * spu-tdep.c (spu_frame_unwind_cache): Add comment.
7111
 
7112
2007-05-11  Ulrich Weigand  
7113
 
7114
        * breakpoint.c (remove_breakpoint): Do not remove software
7115
        breakpoints in unmapped overlay sections.
7116
 
7117
2007-05-11  Ulrich Weigand  
7118
 
7119
        * spu-tdep.c: Include "observer.h".
7120
        (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
7121
        (spu_overlay_data): New variable.
7122
        (struct spu_overlay_table): New type.
7123
        (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
7124
        spu_overlay_new_objfile): New functions.
7125
        (spu_gdbarch_init): Install spu_overlay_update.
7126
        (_initialize_spu_tdep): Register spu_overlay_new_objfile,
7127
        allocate spu_overlay_data objfile data.
7128
 
7129
2007-05-11  Ulrich Weigand  
7130
 
7131
        * gdbarch.sh (overlay_update): New gdbarch function.
7132
        (struct obj_section): Add forward declaration.
7133
        * gdbarch.c, gdbarch.h: Regenerate.
7134
 
7135
        * symfile.c (simple_overlay_update): Make global.
7136
        (target_overlay_update): Remove variable.
7137
        (overlay_is_mapped): Call gdbarch_overlay_update instead of
7138
        target_overlay_update.
7139
        (overlay_load_command): Likewise.
7140
        * symfile.h (struct obj_section): Add forward declaration.
7141
        (simple_overlay_update): Add prototype.
7142
 
7143
        * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
7144
 
7145
2007-05-11  Ulrich Weigand  
7146
 
7147
        * observer.sh: Add "struct objfile" forward declaration.
7148
        * target.h (deprecated_target_new_objfile_hook): Remove.
7149
        * symfile.c (deprecated_target_new_objfile_hook): Remove.
7150
        (clear_symtab_users): Call observer_notify_new_objfile.
7151
        (symbol_file_add_with_addrs_or_offsets): Likewise.
7152
        * rs6000-nat.c: Include "observer.h".
7153
        (vmap_ldinfo): Call observer_notify_new_objfile.
7154
        (xcoff_relocate_core): Likewise.
7155
        * remote.c (remote_new_objfile_chain): Remove.
7156
        (remote_new_objfile): Do not call remote_new_objfile_chain.
7157
        (_initialize_remote): Use observer_attach_new_objfile.
7158
        * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
7159
        (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
7160
        (_initialize_tui_hooks): Use observer_attach_new_objfile.
7161
        * aix-thread.c: Include "observer.h".
7162
        (target_new_objfile_chain): Remove.
7163
        (new_objfile): Do not call target_new_objfile_chain.
7164
        (_initialize_aix_thread): Use observer_attach_new_objfile.
7165
        * hpux-thread.c: Include "observer.h"
7166
        (target_new_objfile_chain): Remove.
7167
        (hpux_thread_new_objfile): Make static.  Do not call
7168
        target_new_objfile_chain.
7169
        (_initialize_hpux_thread): Use observer_attach_new_objfile.
7170
        * linux-thread-db.c: Include "observer.h".
7171
        (target_new_objfile_chain): Remove.
7172
        (thread_db_new_objfile): Do not call target_new_objfile_chain.
7173
        (_initialize_thread_db): Use observer_attach_new_objfile.
7174
        * sol-thread.c: Include "observer.h".
7175
        (target_new_objfile_chain): Remove.
7176
        (sol_thread_new_objfile): Make static.  Do not call
7177
        target_new_objfile_chain.
7178
        (_initialize_sol_thread): Use observer_attach_new_objfile.
7179
        * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
7180
        rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
7181
        $(observer_h).
7182
 
7183
2007-05-11  Ulrich Weigand  
7184
 
7185
        * gdbarch.sh (remote_translate_xfer_address): Remove.
7186
        * gdbarch.h, gdbarch.c: Regenerate.
7187
        * arch-utils.c (generic_remote_translate_xfer_address): Remove.
7188
        * arch-utils.h (generic_remote_translate_xfer_address): Remove.
7189
        * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
7190
        call gdbarch_remote_translate_xfer_address.
7191
        * frv-tdep.c (frv_gdbarch_init): Do not call
7192
        set_gdbarch_remote_translate_xfer_address.
7193
        * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
7194
        (ia64_gdbarch_init): Do not install it.
7195
 
7196
2007-05-11  Bob Wilson  
7197
 
7198
        * NEWS: Mention change in handling the -tui option.
7199
 
7200
2007-05-11  Daniel Jacobowitz  
7201
 
7202
        * linux-thread-db.c (enable_thread_event_reporting): Fix comment
7203
        typo.
7204
 
7205
2007-05-11  Ulrich Weigand  
7206
 
7207
        * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
7208
        (breakpoint_inserted_here_p): Call it.
7209
        (software_breakpoint_inserted_here_p): Likewise.
7210
 
7211
2007-05-10  Ulrich Weigand  
7212
 
7213
        * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
7214
        (inf_ptrace_fetch_register): Add register_u_offset callback parameters
7215
        GDBARCH and STORE_P.  Handle callback (CORE_ADDR) -1 return value.
7216
        (inf_ptrace_store_register): Likewise.
7217
        (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
7218
        * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
7219
 
7220
        * vax-nat.c (vax_register_u_offset): Adapt parameter list.
7221
 
7222
        * linux-nat.c (linux_trad_target): Adapt parameter list.
7223
        * linux-nat.h (linux_trad_target): Likewise.
7224
 
7225
        * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
7226
 
7227
        * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
7228
        (mips_linux_cannot_store_register): Likewise.
7229
        (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
7230
        Return (CORE_ADDR) -1 for registers that cannot be fetched or
7231
        stored via ptrace.  Use GDBARCH instead of current_gdbarch.
7232
        (mips64_linux_register_addr): Likewise.
7233
        (mips_linux_register_u_offset): Adapt parameter list.  Pass
7234
        GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7235
 
7236
        * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7237
        * config/mips/nm-linux.h: Delete file.
7238
 
7239
2007-05-10  Pedro Alves  
7240
 
7241
        * remote.c (remote_detach): Error out if remote can't detach.
7242
 
7243
2007-05-10  Luis Machado  
7244
 
7245
        * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7246
        instruction's opcode in the "opcode" variable and declares new
7247
        variable "closing_insn".
7248
 
7249
2007-05-10  Chris Dearman  
7250
            Maciej W. Rozycki  
7251
 
7252
        * cli/cli-setshow.c (do_setshow_command): Remove trailing
7253
        whitespace when setting a var_filename.
7254
 
7255
2007-05-09  Bob Wilson  
7256
 
7257
        * main.c (captured_main): Recognize -tui option and print an error
7258
        message when the TUI is not configured.
7259
 
7260
2007-05-09  Andreas Schwab  
7261
 
7262
        * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7263
        set removed members.
7264
        (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7265
 
7266
2007-05-08  Ulrich Weigand  
7267
 
7268
        * gdbarch.sh (deprecated_store_struct_return): Remove.
7269
        * gdbarch.c, gdbarch.h: Regenerate.
7270
        * frv-tdep.c (frv_store_struct_return): Remove.
7271
        (frv_gdbarch_init): Do not install it.
7272
 
7273
2007-05-08  Ulrich Weigand  
7274
 
7275
        * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7276
        * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7277
        * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7278
 
7279
2007-05-08  Ulrich Weigand  
7280
 
7281
        * spu-linux-nat.c: Include "gdb_stdint.h".
7282
        (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7283
        (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7284
        (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7285
        (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7286
        (spu_child_wait): Mark up string for translation.
7287
 
7288
2007-05-08  Paul Gilliam  
7289
            Luis Machado  
7290
 
7291
        * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7292
        STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7293
        BC_INSTRUCTION): Define.
7294
        (deal_with_atomic_sequence): New function.
7295
        (rs6000_software_single_step): Call deal_with_atomic_sequence.
7296
        (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7297
        gdbarch_software_single_step routine.
7298
 
7299
2007-05-07  Ulrich Weigand  
7300
 
7301
        * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7302
        store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7303
        parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7304
        spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7305
        spu_child_post_attach, spu_fetch_inferior_registers,
7306
        spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7307
        memory addresses as ULONGEST, not CORE_ADDR.
7308
 
7309
2007-05-07  Ulrich Weigand  
7310
 
7311
        * gdbarch.sh: Add skip_permanent_breakpoint callback.
7312
        * gdbarch.h, gdbarch.c: Regenerate.
7313
 
7314
        * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7315
        (resume): Call gdbarch_skip_permanent_breakpoint instead of
7316
        SKIP_PERMANENT_BREAKPOINT.  Inline default case.
7317
 
7318
        * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7319
        Add REGCACHE argument.  Use it instead of read/write_register.
7320
        (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7321
 
7322
        * config/pa/tm-hppah.h: Delete file.
7323
        * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7324
        * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7325
 
7326
2007-05-07  Daniel Jacobowitz  
7327
 
7328
        * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7329
        * NEWS: Mention improved C++ thunk support.
7330
        * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7331
        * cp-abi.c (cplus_skip_trampoline): New.
7332
        * cp-abi.h (cplus_skip_trampoline): New prototype.
7333
        (struct cp_abi_ops): Add skip_trampoline member.
7334
        * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7335
        (init_gnuv3_ops): Set skip_trampoline.
7336
 
7337
2007-05-06  Daniel Jacobowitz  
7338
 
7339
        * rs6000-tdep.c (struct frame_extra_info): Delete.
7340
 
7341
2007-05-06  Daniel Jacobowitz  
7342
 
7343
        * linux-thread-db.c: Update some FIXME comments.
7344
        (thread_db_xfer_partial): Delete.
7345
        (init_thread_db_ops): Do not set to_xfer_partial.
7346
 
7347
2007-05-06  Ulrich Weigand  
7348
 
7349
        * inftarg.c, infptrace.c: Remove files.
7350
        * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7351
        (inftarg.o, infptrace.o): Remove rules.
7352
        * gdbcore.h (register_addr): Remove prototype.
7353
        * inferior.h (kill_inferior, store_inferior_registers,
7354
        fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7355
        call_ptrace, pre_fork_inferior): Remove prototypes.
7356
        * target.h (child_xfer_memory, child_pid_to_exec_file,
7357
        child_core_file_to_sym_file, child_post_attach,
7358
        child_post_startup_inferior, child_acknowledge_created_inferior,
7359
        child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7360
        child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7361
        child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7362
        child_follow_fork, child_reported_exec_events_per_exec_call,
7363
        child_has_exited, child_thread_alive): Remove prototypes.
7364
 
7365
2007-05-06  Ulrich Weigand  
7366
 
7367
        * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7368
        (sparc_store_inferior_registers): Likewise.
7369
        * sparc-nat.c (fetch_inferior_registers): Rename to ...
7370
        (sparc_fetch_inferior_registers): ... this.
7371
        (store_inferior_registers): Rename to ...
7372
        (sparc_store_inferior_registers): ... this.
7373
        (sparc_target): Update callback names.
7374
        * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7375
        * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7376
 
7377
2007-05-06  Ulrich Weigand  
7378
 
7379
        * linux-nat.c (child_post_attach): Rename to ...
7380
        (linux_child_post_attach): ... this.  Make static.
7381
        (child_follow_fork): Rename to ...
7382
        (linux_child_follow_fork): ... this.  Make static.
7383
        (child_insert_fork_catchpoint): Rename to ...
7384
        (linux_child_insert_fork_catchpoint): ... this.  Make static.
7385
        (child_insert_vfork_catchpoint): Rename to ...
7386
        (linux_child_insert_vfork_catchpoint): ... this.  Make static.
7387
        (child_insert_exec_catchpoint): Rename to ...
7388
        (linux_child_insert_exec_catchpoint): ... this.  Make static.
7389
        (child_pid_to_exec_file): Rename to ...
7390
        (linux_child_pid_to_exec_file): ... this.  Make static.
7391
        Add prototype.
7392
        (linux_handle_extended_wait): Update call.
7393
        (linux_xfer_partial): Update callback routine names.
7394
 
7395
2007-05-06  Ulrich Weigand  
7396
 
7397
        * configure.host (alpha*-*-osf[12]*): Remove support.
7398
        * NEWS: Mention removed configurations.
7399
 
7400
        * config/alpha/alpha-osf1.mh: Delete file.
7401
        * config/alpha/alpha-osf2.mh: Delete file.
7402
        * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7403
        and infptrace.o.
7404
        * config/alpha/nm-osf.h: Delete file.
7405
        * config/alpha/nm-osf2.h: Delete file.
7406
        * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7407
        (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7408
        (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7409
 
7410
        * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7411
        (register_addr, kernel_u_size): Remove.
7412
        Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7413
 
7414
2007-05-06  Ulrich Weigand  
7415
 
7416
        * regcache.c (regcache_invalidate): New function.
7417
        (register_cached): Remove.
7418
        (set_register_cached): Remove.
7419
        (deprecated_registers_fetched): Remove.
7420
        (registers_changed): Use regcache_invalidate instead
7421
        of set_register_cached.
7422
        (regcache_raw_read): Update comment.
7423
 
7424
        * regcache.h (regcache_invalidate): Add prototype.
7425
        (register_cached): Remove.
7426
        (set_register_cached): Remove.
7427
        (deprecated_registers_fetched): Remove.
7428
 
7429
        * findvar.c (value_of_register): Do not call register_cached.
7430
        * frame.c (frame_register): Likewise.
7431
        * tui/tui-regs.c (tui_get_register): Likewise.
7432
 
7433
        * remote.c (fetch_register_using_p): Do not call set_register_cached.
7434
        (process_g_packet): Likewise.
7435
        (remote_fetch_registers): Likewise.
7436
        * remote-sim.c (gdbsim_fetch_register): Likewise.
7437
        * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7438
        by regcache_invalidate.
7439
        (mt_pseudo_register_write): Likewise.
7440
        * sh-tdep.c (sh_pseudo_register_write): Likewise.
7441
 
7442
        * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7443
        call by loop over regcache_raw_supply (..., NULL).
7444
 
7445
2007-05-06  Ulrich Weigand  
7446
 
7447
        * target.h (struct target_ops): Add REGCACHE parameter to
7448
        to_prepare_to_store.
7449
        (target_prepare_to_store): Likewise.
7450
        * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7451
        (update_current_target): Adapt prepare_to_store de_fault rule.
7452
 
7453
        * regcache.c (regcache_raw_write): Pass regcache to
7454
        target_prepare_to_store.
7455
 
7456
        * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7457
        Do not call CHILD_PREPARE_TO_STORE.
7458
        * gnu-nat.c (gnu_prepare_to_store): Likewise.
7459
        * procfs.c (procfs_prepare_to_store): Likewise.
7460
 
7461
        * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7462
        * go32-nat.c (go32_prepare_to_store): Likewise.
7463
        * monitor.c (monitor_prepare_to_store): Likewise.
7464
        * nto-procfs.c (procfs_prepare_to_store): Likewise.
7465
        * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7466
        * remote-mips.c (mips_prepare_to_store): Likewise.
7467
        * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7468
        * win32-nat.c (win32_prepare_to_store): Likewise.
7469
 
7470
        * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7471
        Use it instead of current_regcache.
7472
 
7473
        * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7474
        parameter.  Pass it on to next target.
7475
        * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7476
 
7477
2007-05-06  Ulrich Weigand  
7478
 
7479
        * target.h (struct regcache): Add forward declaration.
7480
        (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7481
        and to_store_registers target operations.
7482
        (target_fetch_registers, target_store_registers): Update.
7483
 
7484
        * regcache.c (regcache_raw_read): Replace register_cached by
7485
        regcache_valid_p.  Pass regcache to target_fetch_registers.
7486
        (regcache_raw_write): Pass regcache to target_store_registers.
7487
 
7488
        * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7489
        store_regs, store_wmmx_regs): Replace register_cached by
7490
        regcache_valid_p.
7491
 
7492
        * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7493
        to target_fetch_registers calls.
7494
        * corelow.c (core_open): Likewise.
7495
        * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7496
        * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7497
        ps_lsetfpregs): Likewise.
7498
        * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7499
        ps_lsetfpregs): Likewise.
7500
        * win32-nat.c (win32_resume): Likewise.
7501
        * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7502
        to target_store_registers call.
7503
        * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7504
 
7505
        * inferior.h (store_inferior_registers): Update prototype.
7506
        (fetch_inferior_registers): Likewise.
7507
        * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7508
        * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7509
        Update function pointer signatures.
7510
 
7511
        * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7512
        use it instead of current_regcache, update calls.
7513
        (aix_thread_store_registers): Likewise.
7514
        * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7515
        (alphabsd_store_inferior_registers): Likewise.
7516
        * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7517
        (amd64bsd_store_inferior_registers): Likewise.
7518
        * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7519
        (amd64_linux_store_inferior_registers): Likewise.
7520
        * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7521
        store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7522
        fetch_wmmx_regs, store_wmmx_regs): Likewise.
7523
        (arm_linux_fetch_inferior_registers): Likewise.
7524
        (arm_linux_store_inferior_registers): Likewise.
7525
        * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7526
        fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7527
        (store_register, store_regs, store_fp_register, store_fp_regs,
7528
        armnbsd_store_registers): Likewise.
7529
        * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7530
        * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7531
        (bsd_uthread_store_registers): Likewise.
7532
        * corelow.c (get_core_registers): Likewise.
7533
        * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7534
        go32_store_registers): Likewise.
7535
        * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7536
        (hppabsd_store_registers): Likewise.
7537
        * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7538
        (hppa_hpux_fetch_inferior_registers): Likewise.
7539
        (hppa_hpux_store_register): Likewise.
7540
        (hppa_hpux_store_inferior_registers): Likewise.
7541
        * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7542
        (hppa_linux_fetch_inferior_registers): Likewise.
7543
        (hppa_linux_store_inferior_registers): Likewise.
7544
        * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7545
        (hpux_thread_store_registers): Likewise.
7546
        * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7547
        (i386bsd_store_inferior_registers): Likewise.
7548
        * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7549
        gnu_store_registers): Likewise.
7550
        * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7551
        store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7552
        Likewise.
7553
        (i386_linux_fetch_inferior_registers): Likewise.
7554
        (i386_linux_store_inferior_registers): Likewise.
7555
        * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7556
        (ia64_linux_fetch_registers): Likewise.
7557
        (ia64_linux_store_register): Likewise.
7558
        (ia64_linux_store_registers): Likewise.
7559
        * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7560
        (inf_child_store_inferior_registers): Likewise.
7561
        * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7562
        (inf_ptrace_fetch_registers): Likewise.
7563
        (inf_ptrace_store_register): Likewise.
7564
        (inf_ptrace_store_registers): Likewise.
7565
        * infptrace.c (fetch_register, store_register): Likewise.
7566
        (fetch_inferior_registers, store_inferior_registers): Likewise.
7567
        * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7568
        (m32r_linux_fetch_inferior_registers): Likewise.
7569
        (m32r_linux_store_inferior_registers): Likewise.
7570
        * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7571
        (m68kbsd_store_inferior_registers): Likewise.
7572
        * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7573
        store_register, old_store_inferior_registers, fetch_regs, store_regs,
7574
        fetch_fpregs, store_fpregs): Likewise.
7575
        (m68k_linux_fetch_inferior_registers): Likewise.
7576
        (m68k_linux_store_inferior_registers): Likewise.
7577
        * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7578
        (m88kbsd_store_inferior_registers): Likewise.
7579
        * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7580
        (mips64obsd_store_inferior_registers): Likewise.
7581
        * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7582
        (mips64_linux_regsets_store_registers): Likewise.
7583
        (mips64_linux_fetch_registers): Likewise.
7584
        (mips64_linux_store_registers): Likewise.
7585
        * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7586
        (mipsnbsd_store_inferior_registers): Likewise.
7587
        * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7588
        (monitor_fetch_registers, monitor_store_registers): Likewise.
7589
        * nto-procfs.c (procfs_fetch_registers): Likewise.
7590
        (procfs_store_registers): Likewise.
7591
        * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7592
        fetch_register, supply_vrregset, fetch_altivec_registers,
7593
        fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7594
        (store_altivec_register, store_spe_register, store_register,
7595
        fill_vrregset, store_altivec_registers, store_ppc_registers,
7596
        ppc_linux_store_inferior_registers): Likewise.
7597
        * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7598
        (ppcnbsd_store_inferior_registers): Likewise.
7599
        * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7600
        (ppcobsd_store_registers): Likewise.
7601
        * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7602
        * remote.c (fetch_register_using_p, process_g_packet,
7603
        fetch_registers_using_g, remote_fetch_registers): Likewise.
7604
        (store_register_using_P, store_registers_using_G,
7605
        remote_store_registers): Likewise.
7606
        * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7607
        m32r_store_register, m32r_store_register): Likewise.
7608
        * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7609
        * remote-sim.c (gdbsim_fetch_register): Likewise.
7610
        (gdbsim_store_register): Likewise.
7611
        * rs6000-nat.c (fetch_register, store_register): Likewise.
7612
        (rs6000_fetch_inferior_registers): Likewise.
7613
        (rs6000_store_inferior_registers): Likewise.
7614
        * s390-nat.c (fetch_regs, store_regs): Likewise.
7615
        (fetch_fpregs, store_fpregs): Likewise.
7616
        (s390_linux_fetch_inferior_registers): Likewise.
7617
        (s390_linux_store_inferior_registers): Likewise.
7618
        * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7619
        (shnbsd_store_inferior_registers): Likewise.
7620
        * sol-thread.c (sol_thread_fetch_registers): Likewise.
7621
        (sol_thread_store_registers): Likewise.
7622
        * sparc-nat.c (fetch_inferior_registers): Likewise.
7623
        (store_inferior_registers): Likewise.
7624
        * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7625
        (spu_store_inferior_registers): Likewise.
7626
        * target.c (debug_print_register): Likewise.
7627
        (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7628
        * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7629
        (vaxbsd_store_inferior_registers): Likewise.
7630
        * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7631
        (win32_fetch_inferior_registers): Likewise.
7632
        (win32_store_inferior_registers): Likewise.
7633
 
7634
2007-05-06  Ulrich Weigand  
7635
 
7636
        * gdbcore.h (struct regcache): Add forward declaration.
7637
        (struct core_fns): Add REGCACHE argument to core_read_registers
7638
        callback.
7639
        * corelow.c (get_core_register_section): Add REGCACHE argument,
7640
        use it instead of current_regcache, pass it to core_read_registers
7641
        callback.
7642
        (get_core_registers): Add current_regcache as parameter to
7643
        get_core_register_section calls.
7644
 
7645
        * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7646
        use it instead of current_regcache.
7647
        * armnbsd-nat.c (fetch_core_registers): Likewise.
7648
        (fetch_elfcore_registers): Likewise.
7649
        * core-regset.c (fetch_core_registers): Likewise.
7650
        * cris-tdep.c (fetch_core_registers): Likewise.
7651
        * irix5-nat.c (fetch_core_registers): Likewise.
7652
        * m68klinux-nat.c (fetch_core_registers): Likewise.
7653
        * mips-linux-tdep.c (fetch_core_registers): Likewise.
7654
        * win32-nat.c (fetch_elf_core_registers): Likewise.
7655
 
7656
2007-05-06  Ulrich Weigand  
7657
 
7658
        * gregset.h (struct regcache): Add forward declaration.
7659
        (supply_gregset): Add REGCACHE parameter, make GREGS const.
7660
        (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7661
        (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7662
        (fill_gregset): Add REGCACHE parameter.
7663
        (fill_fpregset): Likewise.
7664
        (fill_fpxregset): Likewise.
7665
 
7666
        Update all definitions accordingly:
7667
        * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7668
        arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7669
        i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7670
        m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7671
        s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7672
        (supply_gregset): Add REGCACHE parameter, use it instead of
7673
        current_regcache.  Make GREGSETP parameter const, adapt casts.
7674
        (supply_fpregset): Add REGCACHE parameter, use it instead of
7675
        current_regcache.  Make FPREGSETP parameter const, adapt casts.
7676
        (fill_gregset): Add REGCACHE parameter, use it instead of
7677
        current_regcache.
7678
        (fill_fpregset): Likewise.
7679
 
7680
        Update all callers to pass in current_regcache as the new argument:
7681
        * core-regset.c: Include "regcache.h".
7682
        (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7683
        * procfs.c: Include "regcache.h".
7684
        (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7685
        (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7686
        (procfs_do_thread_registers): Likewise.
7687
        (procfs_make_note_section): Likewise.
7688
        * proc-service.c: Include "regcache.h".
7689
        (ps_lgetregs): Update fill_gregset call.
7690
        (ps_lsetregs): Update supply_gregset call.
7691
        (ps_lgetfpregs): Update fill_fpregset call.
7692
        (ps_lsetfpregs): Update supply_fpregset call.
7693
        * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7694
        supply_fpregset calls.
7695
        (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7696
        (ps_lgetregs): Update fill_gregset call.
7697
        (ps_lsetregs): Update supply_gregset call.
7698
        (ps_lgetfpregs): Update fill_fpregset call.
7699
        (ps_lsetfpregs): Update supply_fpregset call.
7700
 
7701
        * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7702
        fill_fpregset, and fill_fpxregset calls.
7703
        * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7704
        (store_regs): Update fill_gregset call.
7705
        (fetch_fpregs): Update supply_fpregset call.
7706
        (store_fpregs): Update fill_fpregset call.
7707
        (fetch_fpxregs): Update supply_fpxregset call.
7708
        (store_fpxregs): Update fill_fpxregset call.
7709
        * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7710
        (store_regs): Update fill_gregset call.
7711
        * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7712
        (store_regs): Update fill_gregset call.
7713
        (fetch_fpregs): Update supply_fpregset call.
7714
        (store_fpregs): Update fill_fpregset call.
7715
        (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7716
        * s390-nat.c (fetch_regs): Update supply_gregset call.
7717
        (store_regs): Update fill_gregset call.
7718
        (fetch_fpregs): Update supply_fpregset call.
7719
        (store_fpregs): Update fill_fpregset call.
7720
 
7721
        * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7722
        dependencies.
7723
 
7724
2007-05-06  Ulrich Weigand  
7725
 
7726
        * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7727
        it instead of current_regcache.
7728
        (parse_register_dump): Add REGCACHE parameter, pass it to
7729
        supply_register callback.
7730
        (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7731
        parse_register_dump.
7732
        (monitor_dump_regs): Add REGCACHE parameter, pass it to
7733
        parse_register_dump and dumpregs callback.
7734
        (monitor_wait): Pass current_regcache to parse_register_dump and
7735
        monitor_dump_regs.
7736
        (monitor_fetch_register): Pass current_regcache to
7737
        monitor_supply_register.
7738
        (monitor_fetch_registers): Pass current_regcache to
7739
        monitor_dump_regs.
7740
        * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7741
        supply_register and dumpregs callbacks.
7742
        (monitor_supply_register, monitor_dump_reg_block): Update
7743
        prototypes.
7744
        * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter.  Pass
7745
        it to monitor_supply_register.
7746
        * dink32-rom.c (dink32_supply_register): Likewise.
7747
        * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7748
        * m32r-rom.c (m32r_supply_register): Likewise.  Also, use REGCACHE
7749
        instead of current_regcache.
7750
 
7751
2007-05-06  Ulrich Weigand  
7752
 
7753
        * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7754
        Add REGCACHE parameter.  Use it instead of current_regcache.
7755
        (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7756
        i386nto_supply_gregset and i386nto_supply_fpregset.
7757
        (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7758
        of current_regcache.
7759
 
7760
        * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7761
        nto_supply_ helper functions.
7762
        (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7763
 
7764
        * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7765
 
7766
        * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7767
        supply_greget, supply_fpregset, supply_altregset, supply_regset,
7768
        and regset_fill member function pointers.
7769
        (nto_dummy_supply_regset): Adapt prototype.
7770
 
7771
2007-05-06  Ulrich Weigand  
7772
 
7773
        * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7774
        instead of current_regcache.  Make REGS const.
7775
        (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7776
        * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7777
        prototypes.
7778
        * shnbsd-nat.c: Include "regcache.h".
7779
        (shnbsd_fetch_inferior_registers): Pass current_regcache to
7780
        shnbsd_supply_reg.
7781
        (shnbsd_store_inferior_registers): Pass current_regcache to
7782
        shnbsd_fill_reg.
7783
        * Makefile.in (shbsd-nat.o): Update dependencies.
7784
 
7785
2007-05-06  Ulrich Weigand  
7786
 
7787
        * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter.  Use it
7788
        instead of current_regcache.
7789
        (mips_supply_gregset): Likewise.  Pass REGCACHE to supply_32bit_reg.
7790
        Make GREGSETP const, remove superfluous casts.
7791
        (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7792
        (mips_supply_fpregset): Likewise.  Make FPREGSETP const, remove
7793
        superfluous casts.
7794
        (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7795
        (supply_64bit_reg): Likewise
7796
        (mips64_supply_gregset): Likewise.  Pass REGCACHE to supply_64bit_reg.
7797
        Make GREGSETP const, adapt casts accordingly.
7798
        (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7799
        (mips64_supply_fpregset): Likewise.  Make FPREGSET const, adapt
7800
        casts accordingly.
7801
        (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7802
        (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7803
        helper routines.
7804
        * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7805
        mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7806
        mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7807
        Adapt prototypes.
7808
        * mips-linux-nat.c: Include "regcache.h".
7809
        (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7810
        current_regcache to mips{64}_(supply|fill)_ helper routines.
7811
        (mips64_linux_regsets_fetch_registers): Likewise.
7812
        (mips64_linux_regsets_store_registers): Likewise.
7813
 
7814
        * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7815
        REGCACHE argument; replace current_regcache.  Make REGS const.
7816
        (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7817
        replace current_regcache.
7818
        * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7819
        mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7820
        * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7821
        mipsnbsd_store_inferior_registers): Pass current_regcache to
7822
        mipsnbsd_(supply|fill)_... helper routines.
7823
 
7824
        * Makefile.in (mips-linux-nat.o): Update dependencies.
7825
 
7826
2007-05-06  Ulrich Weigand  
7827
 
7828
        * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7829
        * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7830
        * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7831
        i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7832
        * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7833
        * i386gnu-nat.c (store_fpregs): Likewise.
7834
        * i386v4-nat.c (fill_fpregset): Likewise.
7835
        * go32-nat.c (store_register, go32_store_registers): Likewise.
7836
 
7837
2007-05-06  Ulrich Weigand  
7838
 
7839
        * cris-tdep.c (supply_gregset): Rename to ...
7840
        (cris_supply_gregset): ... this.  Add REGCACHE parameter.  Use it
7841
        instead of current_regcache.
7842
        (fetch_core_registers): Update call.  Pass current_regcache.
7843
 
7844
2007-05-06  Ulrich Weigand  
7845
 
7846
        * arnmnbsd-nat.c (supply_gregset): Rename to ...
7847
        (arm_supply_gregset): ... this.  Add REGCACHE parameter.
7848
        Use it instead of current_regcache.
7849
        (supply_fparegset): Rename to ...
7850
        (arm_supply_fparegset): ... this.  Add REGCACHE parameter.
7851
        Use it instead of current_regcache.
7852
        (fetch_regs, fetch_fp_regs): Update calls.  Pass current_regcache.
7853
        (fetch_core_registers, fetch_elfcore_registers): Likewise.
7854
 
7855
2007-05-06  Ulrich Weigand  
7856
 
7857
        * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7858
        alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7859
        use it instead of current_regcache.
7860
        * alpha-tdep.h (struct regcache): Add forward declaration.
7861
        (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7862
        alpha_fill_fp_regs): Update prototypes.
7863
 
7864
        * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7865
        fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7866
        * alpha-linux-nat.c: Include "regcache.h".
7867
        (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7868
        current_regcache to alpha_supply/fill_ routines.
7869
 
7870
        * alphabsd-tdep.c: Include "regcache.h".
7871
        (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7872
        pass it to alpha_supply_ routines.  Make REGS const.
7873
        (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7874
        pass it to alpha_fill_ routines.
7875
        * alphabsd-tdep.h (struct regcache): Add forward declaration.
7876
        (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7877
        alphabsd_fill_fpreg): Update prototypes.
7878
 
7879
        * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7880
        fill_fpregset, alphabsd_fetch_inferior_registers,
7881
        alphabsd_store_inferior_registers): Pass current_regcache to
7882
        alphabsd_supply/fill_ routines.
7883
 
7884
        * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7885
        dependencies.
7886
 
7887
2007-05-06  Ulrich Weigand  
7888
 
7889
        * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7890
        supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7891
        instead of current_regcache.
7892
        (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7893
        REGCACHE parameter, pass it to supply_ routines.
7894
        (aix_thread_fetch_registers): Pass current_regcache to
7895
        fetch_regs_user_thread and fetch_regs_kernel_thread.
7896
 
7897
        (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7898
        Add REGCACHE parameter, use it instead of current_regcache.
7899
        Call regcache_valid_p instead of register_cached.
7900
        (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7901
        Also, pass REGCACHE to fill_ routines.
7902
        (aix_thread_store_registers): Pass current_regcache to
7903
        store_regs_user_thread and store_regs_kernel_thread.
7904
 
7905
2007-05-06  Ulrich Weigand  
7906
 
7907
        * m32r-linux-nat.c (supply_gregset): Do not modify contents
7908
        pointed to by GREGSETP.
7909
 
7910
2007-05-06  Ulrich Weigand  
7911
 
7912
        * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7913
        of regcache_raw_read_signed.
7914
        (fill_fpregset): Use regcache_raw_collect instead of
7915
        regcache_raw_read.
7916
 
7917
2007-05-03  Kevin Buettner  
7918
 
7919
        * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7920
        point arguments, test explicitly for use of the EABI32 ABI
7921
        instead of inferring this condition from tests on register
7922
        sizes.
7923
 
7924
2007-05-03  Kevin Buettner  
7925
 
7926
        * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7927
        prior to allocating its location.
7928
 
7929
2007-05-02  Maciej W. Rozycki  
7930
 
7931
        * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7932
        based on mips_abi_regsize() whose result is known in advance.
7933
        (mips_o64_push_dummy_call): Likewise.
7934
 
7935
2007-04-29  Ulrich Weigand  
7936
 
7937
        * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7938
        * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7939
 
7940
        * mips-linux-nat.c: Include "gregset.h".
7941
        (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7942
        from mips-linux-tdep.c.  Change parameter type to gdb_gregset_t.
7943
        * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7944
        fill_fpregset): Move to mips-linux-nat.c.
7945
 
7946
        * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7947
 
7948
2007-04-28  Ulrich Weigand  
7949
 
7950
        * regcache.c (deprecated_read_register_gen): Remove, inline ...
7951
        (read_register): ... here.
7952
        (deprecated_write_register_gen): Remove, inline ...
7953
        (write_register): ... here.
7954
        * regcache.h (deprecated_read_register_gen): Remove prototype.
7955
        (deprecated_write_register_gen): Likewise.
7956
 
7957
        * remote-sim.c (gdbsim_store_register): Replace call to
7958
        deprecated_read_register_gen with regcache_cooked_read.
7959
        * target.c (debug_print_register): Replace calls to
7960
        deprecated_read_register_gen and read_register with
7961
        regcache_cooked_read.
7962
 
7963
2007-04-28  Ulrich Weigand  
7964
 
7965
        * hpux-thread.c (hpux_thread_store_registers): Use
7966
        regcache_raw_collect, not regcache_raw_read.
7967
        * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7968
        not regcache_raw_write.
7969
 
7970
2007-04-28  Ulrich Weigand  
7971
 
7972
        * gdbarch.sh: Remove deprecated_register_byte.
7973
        * gdbarch.c, gdbarch.h: Regenerate.
7974
        * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7975
        * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7976
 
7977
        * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7978
        * regcache.c (regcache_valid_p): Allow to query cooked registers in
7979
        read-only register caches.  Make REGCACHE parameter const.
7980
        (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7981
 
7982
        * mi/mi-main.c (old_regs): Remove.
7983
        (mi_setup_architecture_data, _initialize_mi_main): Remove.
7984
        (register_changed_p): Reimplement to compare two register caches.
7985
        (mi_cmd_data_list_changed_registers): Update caller.
7986
        * mi/mi-main.h (mi_setup_architecture_data): Remove.
7987
        * mi/mi-interp.c (mi_interpreter_init): Do not call
7988
        mi_setup_architecture_data.
7989
 
7990
2007-04-28  Ulrich Weigand  
7991
 
7992
        * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7993
        inline definition at the places the macros are used.
7994
        * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7995
 
7996
2007-04-28  Ulrich Weigand  
7997
 
7998
        * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7999
        "gdb_string.h".
8000
        (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
8001
        (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
8002
        (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
8003
        (rs6000_aix_regset_from_core_section): New function.
8004
        (rs6000_aix_init_osabi): Register it.
8005
        (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
8006
        sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
8007
        * rs6000-nat.c (CoreRegs): Do not define type.
8008
        (fetch_core_registers, rs6000_core_fns): Remove.
8009
        (_initialize_core_rs6000): Do not register it.  Rename to ...
8010
        (_initialize_rs6000_nat): ... this.
8011
        * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
8012
 
8013
2007-04-27  Kevin Buettner  
8014
 
8015
        * dwarf2expr.c (unsigned_address_type): Add forward declaration.
8016
        (dwarf2_read_address): Sign extend return address as required by
8017
        target architecture.
8018
 
8019
2007-04-27  Kevin Buettner  
8020
 
8021
        * solib-frv.c (lm_base): Bail out if the main executable has
8022
        not been relocated.
8023
 
8024
2007-04-27  Ulrich Weigand  
8025
 
8026
        * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
8027
        of FPCR register in fpregset.
8028
 
8029
2007-04-27  Maciej W. Rozycki  
8030
 
8031
        * Makefile.in (gdbtk-wrapper.o): Update dependencies.
8032
        (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
8033
 
8034
2007-04-27  Ulrich Weigand  
8035
 
8036
        * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
8037
        * rs6000-nat.c (rs6000_wait): New function.
8038
        (_initialize_core_rs6000): Install it as to_wait target method.
8039
        * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
8040
 
8041
2007-04-27  Ulrich Weigand  
8042
 
8043
        * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
8044
        * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
8045
        * rs6000-nat.c (super_create_inferior): New variable.
8046
        (rs6000_create_inferior): Make static.  Adapt argument list.  Call
8047
        original version of create_inferior via super_create_inferior.
8048
        (_initialize_core_rs6000): Install to_create_inferior target method.
8049
 
8050
2007-04-27  Ulrich Weigand  
8051
 
8052
        * aix-thread.c (aix_thread_xfer_memory): Replace by ...
8053
        (aix_thread_xfer_partial): ... this.
8054
        (init_aix_thread_ops): Install to_xfer_partial instead
8055
        of deprecated_xfer_memory target method.
8056
 
8057
        * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
8058
        and inftarg.o, add inf-ptrace.o.
8059
        * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
8060
        CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
8061
        * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
8062
        (fetch_inferior_registers): Rename to ...
8063
        (rs6000_fetch_inferior_registers): ... this.  Make static.
8064
        (store_inferior_registers): Rename to ...
8065
        (rs6000_store_inferior_registers): ... this.  Make static.
8066
        (read_word, child_xfer_memory): Remove.
8067
        (rs6000_xfer_partial): New function.
8068
        (kernel_u_size): Remove.
8069
        (_initialize_core_rs6000): Add inf_ptrace-based target.
8070
        * Makefile.in (rs6000-nat.o): Update dependencies.
8071
 
8072
2007-04-27  Ulrich Weigand  
8073
 
8074
        * inf-ptrace.c: Include "gdb_stdint.h".
8075
        (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
8076
        intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
8077
        (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
8078
        before casting CORE_ADDR to PTRACE_TYPE_ARG3.
8079
        (inf_ptrace_store_register): Likewise.
8080
        * Makefile.in (inf-ptrace.o): Update dependencies.
8081
 
8082
2007-04-27  Ulrich Weigand  
8083
 
8084
        * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
8085
        * configure.tgt (rs6000-*-*): Likewise.
8086
        * config/rs6000/aix4.mh: Delete file.
8087
        * config/rs6000/aix4.mt: Delete file.
8088
        * config/rs6000/rs6000.mh: Delete file.
8089
        * config/rs6000/rs6000.mt: Delete file.
8090
 
8091
        * config/powerpc/nm-aix.h: Delete file.
8092
        * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
8093
 
8094
2007-04-27  Ulrich Weigand  
8095
 
8096
        * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
8097
        Remove obsolete part of comment.
8098
        (store_regs_user_thread): Use uint32_t temporaries when calling
8099
        fill_sprs32.
8100
        (store_regs_kernel_thread): Likewise.  Add assertion to verify
8101
        correct size of struct ptsprs members.
8102
        (aix_thread_xfer_memory): Fix type of myaddr.
8103
        (aix_thread_extra_thread_info): Fix compiler warning.
8104
        * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
8105
        (fetch_register, store_register): Adapt callers.
8106
 
8107
2007-04-27  Ulrich Weigand  
8108
 
8109
        * vec.h (vec_free): Rename to vec_free_.  Adapt users.
8110
 
8111
2007-04-25  Ulrich Weigand  
8112
 
8113
        * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
8114
        and "regcache.h".
8115
        (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
8116
        (alpha_linux_gregset, alpha_linux_fpregset): New variables.
8117
        (alpha_linux_regset_from_core_section): New function.
8118
        (alpha_linux_init_abi): Install it.
8119
        * alpha-linux-nat.c: Do not include "gdbcore.h".  Include
8120
        "alpha-tdep.h", , ,
8121
        , and "gregset.h".
8122
        (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
8123
        Move from config/alpha/nm-linux.h.
8124
        (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
8125
        from alpha-nat.c.
8126
        (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
8127
        * alpha-nat.c: Remove #ifdef __linux__ section.
8128
        (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
8129
        (_initialize_core_alpha): Do not register alpha_elf_core_fns.
8130
        (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
8131
        (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
8132
        * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
8133
        (NATDEPFILES): Remove alpha-nat.o.
8134
        * config/alpha/nm-linux.h: Delete file.
8135
        * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
8136
        * Makefile.in (alpha-linux-nat.o): Update dependencies.
8137
        (alpha-linux-tdep.o): Likewise.
8138
 
8139
2007-04-25  Ulrich Weigand  
8140
 
8141
        * mips-linux-nat.c: No longer include "gdbcore.h".
8142
        (mips_linux_register_addr): Move from mips-linux-tdep.c.
8143
        (mips64_linux_register_addr): Likewise.
8144
        (mips_linux_register_u_offset): Call mips_linux_register_addr or
8145
        mips64_linux_register_addr instead of register_addr.
8146
        * mips-linux-tdep.c (mips_linux_register_addr,
8147
        mips64_linux_register_addr): Move to mips-linux-nat.c.
8148
        (register_addr): Remove.
8149
        (register_addr_data, init_register_addr_data): Remove.
8150
        (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
8151
        (set_mips_linux_register_addr): Remove.
8152
        (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
8153
        * Makefile.in (mips-linux-nat.o): Update dependencies.
8154
 
8155
2007-04-25  Ulrich Weigand  
8156
 
8157
        * linux-nat.c (linux_register_u_offset): Remove.
8158
        (linux_target_install_ops): New function.
8159
        (linux_target): Use it.
8160
        (linux_trad_target): New function.
8161
        * linux-nat.h (linux_trad_target): Declare.
8162
 
8163
        * alpha-linux-nat.c: Include "gdbcore.h".
8164
        (alpha_linux_register_u_offset): New function.
8165
        (_initialize_alpha_linux_nat): Use linux_trad_target.
8166
 
8167
        * mips-linux-nat.c: Include "gdbcore.h".
8168
        (mips_linux_register_u_offset): New function.
8169
        (_initialize_mips_linux_nat): Use linux_trad_target.
8170
 
8171
        * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8172
        * config/arm/nm-linux.h: Delete file.
8173
 
8174
        * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
8175
        * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
8176
 
8177
        * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8178
        * config/ia64/nm-linux.h: Delete file.
8179
 
8180
        * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8181
        * config/m32r/nm-linux.h: Delete file.
8182
 
8183
        * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8184
        * config/m68k/nm-linux.h: Delete file.
8185
 
8186
        * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8187
        * config/pa/nm-linux.h: Delete file.
8188
 
8189
        * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8190
        * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
8191
        * config/powerpc/nm-linux.h: Delete file.
8192
 
8193
        * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
8194
        * config/s390/nm-linux.h: Delete file.
8195
 
8196
        * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8197
        * config/sparc/linux64.mh (NAT_FILE): Likewise.
8198
        * config/sparc/nm-linux.h: Delete file.
8199
 
8200
        * Makefile.in (alpha-linux-nat.o): Update dependencies.
8201
        (mips-linux-nat.o): Likewise.
8202
 
8203
2007-04-25  Ulrich Weigand  
8204
 
8205
        * core-aout.c: Delete file.
8206
        * Makefile.in (ALLDEPFILES): Remove core-aout.c.
8207
        (core-aout.o): Delete rule.
8208
        * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
8209
 
8210
        * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
8211
 
8212
        * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
8213
        * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
8214
        KERNEL_U_ADDR): Remove.
8215
 
8216
        * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
8217
        (cannot_fetch_register, cannot_store_register): Remove.
8218
        (fetch_register): Inline cannot_fetch_register and register_addr.
8219
        (store_register): Inline cannot_store_register and register_addr.
8220
        * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
8221
        * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8222
        REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
8223
        Remove.
8224
 
8225
        * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
8226
        (fetch_register): Inline register_addr.
8227
        (store_register): Inline register_addr.
8228
        * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
8229
        * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8230
        U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
8231
 
8232
        * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8233
        * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8234
        REGISTER_U_ADDR): Remove.
8235
 
8236
        * hppa-linux-nat.c (register_addr): Rename to ...
8237
        (hppa_linux_register_addr): ... this.  Make static.
8238
        (fetch_register, store_register): Adapt callers.
8239
        * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8240
 
8241
        * ppc-linux-nat.c (kernel_u_size): Remove.
8242
        * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8243
 
8244
        * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8245
        * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8246
        (NAT_FILE): Remove.
8247
        * config/vax/nm-vax.h: Delete file.
8248
 
8249
2007-04-20  Mark Shinwell  
8250
 
8251
        * MAINTAINERS (Write After Approval): Add myself.
8252
 
8253
2007-04-20  Mark Shinwell  
8254
 
8255
        * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8256
        * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8257
        (m68k_linux_sigcontext_reg_offset): Fix typo.
8258
        (target_is_uclinux): New.
8259
        (m68k_linux_inferior_created): New.
8260
        (m68k_linux_get_sigtramp_info):  Check for uClinux or
8261
        normal Linux.  Use m68k_uclinux_sigcontext_reg_offset for
8262
        uClinux.
8263
        (_initialize_m68k_linux_tdep): Register
8264
        m68k_linux_inferior_created.
8265
 
8266
2007-04-19  Pedro Alves  
8267
 
8268
        * win32-nat.c (win32_detach): Remove delete_command call.
8269
        Resume inferior with win32_resume instead of win32_continue.
8270
 
8271
2007-04-19  Jerome Guitton  
8272
 
8273
        * ser-mingw.c (fd_is_file): New function.
8274
        (file_select_thread): New function.
8275
        (ser_console_wait_handle): Add special handling for files.
8276
 
8277
2007-04-18  Denis Pilat  
8278
 
8279
        * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8280
        when missing from DW_TAG_subrange_type.  Remove the handling of null
8281
        return from die_type.
8282
 
8283
2007-04-18  Maciej W. Rozycki  
8284
 
8285
        * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8286
        change to rearrange some brackets.
8287
        (mips_n32n64_push_dummy_call): Likewise.
8288
        (mips_o32_push_dummy_call): Likewise.
8289
        (mips_o64_push_dummy_call): Likewise.
8290
 
8291
2007-04-18  Denis Pilat  
8292
 
8293
        * infcmd.c (post_create_inferior): Start with a call to
8294
        target_terminal_ours.
8295
 
8296
2007-04-17  Maciej W. Rozycki  
8297
 
8298
        * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8299
        brackets.
8300
        (mips_n32n64_push_dummy_call): Likewise.  Reformat some
8301
        expressions.
8302
        (mips_o32_push_dummy_call): Likewise.
8303
        (mips_o64_push_dummy_call): Likewise.
8304
 
8305
2007-04-17  Maciej W. Rozycki  
8306
 
8307
        * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8308
        comment.
8309
 
8310
2007-04-17  Maciej W. Rozycki  
8311
 
8312
        * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8313
        comment.
8314
        (mips_o32_push_dummy_call): Likewise.
8315
 
8316
2007-04-17  Andreas Schwab  
8317
 
8318
        * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8319
        sal to be bigger than the end of the function.
8320
 
8321
2007-04-17  Maciej W. Rozycki  
8322
            Nigel Stephens  
8323
 
8324
        * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8325
        argument alignment requirements when calculating stack space
8326
        required.  When aligning an arg register to eight bytes
8327
        boundary, align stack_offset too.  Write floating-point
8328
        arguments to the appropriate integer register if need go there.
8329
        (mips_o64_push_dummy_call): Likewise.
8330
 
8331
2007-04-14  Ulrich Weigand  
8332
 
8333
        * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8334
        "sig" arguments, add "regcache" argument.
8335
        * gdbarch.c, gdbarch.h: Regenerate.
8336
 
8337
        * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8338
        (handle_inferior_event): Call remove_single_step_breakpoints directly
8339
        instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8340
 
8341
        * alpha-tdep.c (alpha_software_single_step): Update argument list.
8342
        Remove handling of !insert_breakpoints_p case.
8343
        * arm-tdep.c (arm_software_single_step): Likewise.
8344
        * cris-tdep.c (cris_software_single_step): Likewise.
8345
        * mips-tdep.c (mips_software_single_step): Likewise.
8346
        * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8347
        * sparc-tdep.c (sparc_software_single_step): Likewise.
8348
        * spu-tdep.c (spu_software_single_step): Likewise.
8349
 
8350
        * alpha-tdep.h (alpha_software_single_step): Update prototype.
8351
        * mips-tdep.h (mips_software_single_step): Likewise.
8352
        * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8353
        * sparc-tdep.h (sparc_software_single_step): Likewise.
8354
 
8355
2007-04-14  Ulrich Weigand  
8356
 
8357
        * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8358
        when removing single-step breakpoints.
8359
 
8360
2007-04-14  Vladimir Prus  
8361
 
8362
        * varobj.h (varobj_set_frozen): New
8363
        (varobj_get_frozen): New.
8364
        (varobj_update): New parameter explicit.
8365
        * varobj.c (struct varobj): New fields frozen
8366
        and not_fetched.
8367
        (varobj_set_frozen, varobj_get_frozen): New.
8368
        (install_new_value): Don't fetch values for
8369
        frozen variable object, or children thereof.  Allow
8370
        a frozen variable object to have non-fetched value.
8371
        (varobj_update): Allow updating child variables.
8372
        Don't traverse frozen children.
8373
        (new_variable): Initialize the frozen field.
8374
        (c_value_of_variable): Return NULL for frozen
8375
        variable without any value yet.
8376
        * mi/mi-cmd-var.c (varobj_update_one): New parameter
8377
        'explicit'.
8378
        (mi_cmd_var_create): Output the 'frozen' field,
8379
        as soon as testsuite is adjusted to expect that field.
8380
        (mi_cmd_var_set_frozen): New.
8381
        (mi_cmd_var_update): Pass the 'explicit' parameter to
8382
        varobj_update_one.
8383
        * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8384
        * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8385
 
8386
2007-04-13  Paul Brook  
8387
 
8388
        * target-descriptions.c (tdesc_named_type): Add ieee_single and
8389
        ieee_double.
8390
        * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8391
 
8392
2007-04-13  Daniel Jacobowitz  
8393
 
8394
        * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8395
        remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8396
        scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8397
        ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8398
        * Makefile.in: Remove references to deleted files.
8399
        * README: Do not mention deleted ROM monitor interfaces.
8400
        * defs.h (enum language): Delete language_scm.
8401
        * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8402
        (dump_subexp_body_standard): Likewise.
8403
        * parse.c (operator_length_standard): Likewise.
8404
        * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8405
        * remote-mips.c: Do not include remote-utils.h.
8406
        * remote-sim.c: Likewise.  Use remote_debug instead of sr_get_debug
8407
        throughout.
8408
        * value.c: Do not include scm-lang.h.
8409
        (unpack_long): Delete scm_unpack call.
8410
        * config/h8300/h8300.mt, config/mips/embed.mt,
8411
        config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8412
        config/sh/embed.mt, config/sh/linux.mt: Remove references to
8413
        deleted files.
8414
        * NEWS: Mention removed files.
8415
 
8416
2007-04-13  Daniel Jacobowitz  
8417
 
8418
        * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8419
        * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8420
 
8421
2007-04-13  Daniel Jacobowitz  
8422
 
8423
        * NEWS: Mention removal of HP aCC support.
8424
 
8425
2007-04-13  Daniel Jacobowitz  
8426
 
8427
        * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8428
        first entry for static executables.
8429
        (breakpoint_addr): Delete unused variable.
8430
        (elf_locate_base): Search for _r_debug in static executables.
8431
        (enable_break): Do not set breakpoint_addr.  Scan solib_break_names
8432
        also.
8433
 
8434
2007-04-13  Daniel Jacobowitz  
8435
 
8436
        * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8437
        (bpstat_what, print_one_breakpoint, allocate_bp_location)
8438
        (mention): Remove bp_through_sigtramp support.
8439
        * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8440
 
8441
2007-04-13  Daniel Jacobowitz  
8442
 
8443
        * breakpoint.c (bpstat_what): Give step-resume higher priority than
8444
        shlib events.
8445
 
8446
2007-04-13  Daniel Jacobowitz  
8447
 
8448
        * infrun.c: Doc fixes.
8449
        (handle_inferior_event): Clarify debug message.
8450
        (insert_step_resume_breakpoint_at_sal): Print a debug message.
8451
 
8452
2007-04-12  Ulrich Weigand  
8453
 
8454
        * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8455
 
8456
2007-04-12  Ulrich Weigand  
8457
 
8458
        * config/m68k/tm-monitor.h: Delete file.
8459
        * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8460
        * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8461
        call moved to ...
8462
        * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8463
        * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8464
 
8465
2007-04-12  Luis Machado  
8466
 
8467
        * gdbarch.sh (software_single_step): Change the return type
8468
        from void to int and reformatted some comments to <= 80
8469
        columns.
8470
        * gdbarch.c, gdbarch.h: Regenerated.
8471
        * alpha-tdep.c (alpha_software_single_step): Likewise.
8472
        * alpha-tdep.h (alpha_software_single_step): Likewise.
8473
        * arm-tdep.c (arm_software_single_step): Likewise.
8474
        * cris-tdep.c (cris_software_single_step): Likewise.
8475
        * mips-tdep.c (mips_software_single_step): Likewise.
8476
        * mips-tdep.h (mips_software_single_step): Likewise.
8477
        * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8478
        * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8479
        * sparc-tdep.c (sparc_software_single_step): Likewise.
8480
        * sparc-tdep.h (sparc_software_single_step): Likewise.
8481
        * spu-tdep.c (spu_software_single_step): Likewise.
8482
        * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8483
        and act accordingly.
8484
 
8485
2007-04-11  Steve Ellcey  
8486
 
8487
        * configure.ac (build_warnings): Add -Wno-char-subscripts.
8488
        * configure: Regenerate.
8489
        * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8490
 
8491
2007-04-11  Jan Kratochvil  
8492
 
8493
        * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8494
 
8495
2007-04-11  Jan Kratochvil  
8496
 
8497
        * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8498
        macros.
8499
        (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8500
        distinct on the TYPE_STUB_SUPPORTED debug targets.
8501
        * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8502
 
8503
2007-04-11  Joel Brobecker  
8504
 
8505
        * sparc-tdep.c (X_RS2): New macro.
8506
        (sparc_skip_stack_check): New function.
8507
        (sparc_analyze_prologue): Adjust PC past stack probing
8508
        sequence if necessary.
8509
 
8510
2007-04-10  Andreas Schwab  
8511
 
8512
        * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8513
        register.
8514
 
8515
2007-04-10  Daniel Jacobowitz  
8516
 
8517
        * breakpoint.c (gdb_breakpoint_query): Really return an
8518
        enum gdb_rc.
8519
        (gdb_breakpoint): Likewise.
8520
        * thread.c (gdb_list_thread_ids): Likewise.
8521
        (gdb_thread_select): Likewise.
8522
        * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8523
        (mi_cmd_thread_list_ids): Remove bogus initialization.
8524
 
8525
2007-04-10  Daniel Jacobowitz  
8526
 
8527
        * Makefile.in (SFILES): Remove hpacc-abi.c.
8528
        (COMMON_OBS): Remove hpacc-abi.o.
8529
        (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8530
        (hpacc-abi.o, hpread.o): Delete rules.
8531
        * somread.c: Delete extern declarations from hpread.c.
8532
        (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8533
        (som_symfile_finish): Do not call hpread_symfile_finish.
8534
        (som_symfile_init): Do not call hpread_symfile_init.
8535
        * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8536
        * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8537
        * hpacc-abi.c, hpread.c: Deleted.
8538
 
8539
2007-04-10  Daniel Jacobowitz  
8540
 
8541
        * solib-svr4.c (enable_break): Simplify return value.
8542
        (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8543
 
8544
2007-04-10  Andreas Schwab  
8545
 
8546
        * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8547
        l_ld_size, l_next_size, l_prev_size, l_name_size.
8548
 
8549
        * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8550
        to extract addresses from link map.
8551
        (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8552
        (LM_NEXT): Likewise.
8553
        (LM_NAME): Likewise.
8554
        (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8555
        (elf_locate_base): Likewise.
8556
        (open_symbol_file_object): Likewise.
8557
        (svr4_fetch_objfile_link_map): Likewise.
8558
        (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8559
        (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8560
        l_ld_size.
8561
        (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8562
        (svr4_lp64_fetch_link_map_offsets): Likewise.
8563
 
8564
        * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8565
        removed members.  Set l_ld_offset to -1 if not present.
8566
 
8567
2007-04-08  Vladimir Prus  
8568
 
8569
        Pass stderr of program run with "target remote |"
8570
        via gdb_stderr.
8571
        * serial.c (serial_open): Set error_fd to -1.
8572
        * serial.h (struct serial): New field error_fd.
8573
        (struct serial_opts): New field avail.
8574
        * ser-pipe.c (pipe_open): Create another pair
8575
        of sockets.  Pass stderr to gdb.
8576
        * ser-mingw.c (pipe_windows_open): Pass
8577
        PEX_STDERR_TO_PIPE to pex_run.  Initialize
8578
        sd->error_fd.
8579
        (pipe_avail): New.
8580
        (_initialize_ser_windows): Hook pipe_avail.
8581
        * ser-base.c (generic_readchar): Check if there's
8582
        anything in stderr channel and route that to gdb_stderr.
8583
 
8584
2007-04-03  Pedro Alves  
8585
 
8586
        * dbxread.c (read_ofile_symtab): Move current_objfile
8587
        clearing to after end_stabs.
8588
 
8589
2007-04-01  Andreas Schwab  
8590
 
8591
        * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8592
        gdbarch instead of current_gdbarch.
8593
 
8594
2007-04-01  Vladimir Prus  
8595
 
8596
        * varobj.c (varobj_create): Keep varobj value
8597
        NULL when evaluating the type.
8598
 
8599
2007-03-31  Pedro Alves  
8600
 
8601
        * NEWS: Mention new Windows CE support.
8602
 
8603
2007-03-30  Pedro Alves  
8604
 
8605
        * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8606
        the obsoletion stanza.
8607
        * NEWS: Mention deleted targets.
8608
 
8609
        * config/sh/tm-wince.h: Remove.
8610
        * config/sh/wince.mt: Remove.
8611
        * config/mips/tm-wince.h: Remove.
8612
        * config/mips/wince.mt: Remove.
8613
 
8614
        * wince.c: Remove.
8615
        * wince-stub.c: Remove.
8616
        * wince-stub.h: Remove.
8617
        * Makefile.in (wince.o): Remove rule.
8618
        (wince-stub.o): Likewise.
8619
 
8620
        * mips-tdep.c (mips_next_pc): Make static.
8621
        * mips-tdep.h (mips_next_pc): Remove declaration.
8622
        * arm-tdep.c (arm_pc_is_thumb): Make static.
8623
        (thumb_get_next_pc): Likewise.
8624
        (arm_get_next_pc): Likewise.
8625
        * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8626
        (arm_pc_is_thumb): Likewise.
8627
        (thumb_get_next_pc): Likewise.
8628
        (arm_get_next_pc): Likewise.
8629
 
8630
2007-03-30  Daniel Jacobowitz  
8631
 
8632
        * MAINTAINERS: Remove d10v entry.
8633
        * Makefile.in (SFILES): Remove dwarfread.c.
8634
        (COMMON_OBS): Remove dwarfread.o.
8635
        (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8636
        (remote-est.o, rom68k-rom.o): Delete.
8637
        * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8638
        target est, target rom68k, and DWARF 1.
8639
        * configure.tgt: Mark d10v as removed.
8640
        * dwarf2read.c: Doc update.
8641
        * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8642
        and lnsize.
8643
        (elf_locate_sections): Do not set them.
8644
        (elf_symfile_read): Do not call dwarf_build_psymtabs.
8645
        * symfile.h (dwarf_build_psymtabs): Delete prototype.
8646
        * config/m68k/monitor.mt (TDEPFILES): Prune.
8647
        * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8648
        remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8649
 
8650
2007-03-30  Daniel Jacobowitz  
8651
 
8652
        * doublest.c (convert_floatformat_to_doublest): Use
8653
        floatformat_classify.
8654
        (floatformat_is_nan): Rename to...
8655
        (floatformat_classify): ...this.  Return more information.
8656
        * doublest.h (enum float_kind): New.
8657
        (floatformat_is_nan): Replace prototype...
8658
        (floatformat_classify): ...with this one.
8659
        * valprint.c (print_floating): Use floatformat_classify.  Handle
8660
        infinity.
8661
 
8662
2007-03-30  Daniel Jacobowitz  
8663
 
8664
        * README: Mention ISO C library requirement.
8665
 
8666
2007-03-30  Daniel Jacobowitz  
8667
 
8668
        * Makefile.in (SFILES): Remove nlmread.c.
8669
        (COMMON_OBS): Remove nlmread.o.
8670
        (nlmread.o): Delete rule.
8671
        * README: Delete reference to remote-st.c.
8672
        * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8673
        * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8674
        GDB_OSABI_LYNXOS.
8675
        * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8676
        (_initialize_i386_tdep): Do not reference them.
8677
        * nlmread.c: Delete file.
8678
        * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8679
        * target.c: Doc update.
8680
        * thread.c: Delete commented include.
8681
        * config/alpha/tm-alpha.h: Doc update.
8682
 
8683
2007-03-30  Chris Dearman  
8684
 
8685
        * utils.c (string_to_core_addr): Comment typo.
8686
 
8687
2007-03-30  Chris Dearman  
8688
 
8689
        * mips-tdep.c: Comment typo.
8690
 
8691
2007-03-29  Ulrich Weigand  
8692
 
8693
        * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8694
        * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8695
        * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8696
        * config/powerpc/nm-ppc64-linux.h: Remove file.
8697
        * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8698
        * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8699
        (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8700
        * infptrace.c (call_ptrace): Likewise.
8701
        * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8702
        (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8703
        and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8704
        (store_register): Likewise.
8705
 
8706
2007-03-29  Joel Brobecker  
8707
 
8708
        * Makefile.in (varobj.o): Add missing dependency.
8709
 
8710
2007-03-29  Michael Snyder  
8711
 
8712
        * MAINTAINERS: Update my email address.
8713
 
8714
2007-03-29  Joel Brobecker  
8715
 
8716
        Add support for exception handling with multiple versions of
8717
        the Ada runtime:
8718
        * ada-lang.c: Update general comments on how Ada exception catchpoints
8719
        are implemented.
8720
        (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8721
        (__gnat_raise_nodefer_with_msg): Delete.
8722
        (ada_unhandled_exception_name_addr_ftype): New type.
8723
        (exception_support_info): New type.
8724
        (ada_unhandled_exception_name_addr): Add forward declaration.
8725
        (ada_unhandled_exception_name_addr_from_raise): Likewise.
8726
        (default_exception_support_info): New constant.
8727
        (exception_support_info_fallback): Likewise.
8728
        (exception_info): New global variable.
8729
        (ada_exception_support_info_sniffer): New function.
8730
        (ada_executable_changed_observer): Likewise.
8731
        (ada_unhandled_exception_name_addr_from_raise): Renamed from
8732
        ada_unhandled_exception_name_addr.
8733
        (ada_unhandled_exception_name_addr): Reimplement to match the
8734
        latest Ada runtime implementation.
8735
        (error_breakpoint_runtime_sym_not_found): Delete.
8736
        (ada_exception_sym_name): Get the exception sym name from
8737
        exception_info rather than hardcoding it.
8738
        (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8739
        Update error handling.
8740
        * Makefile.in (ada-lang.o): Add dependency on observer.h.
8741
 
8742
2007-03-29  Daniel Jacobowitz  
8743
 
8744
        * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8745
        (remote-st.o, uw-thread.o): Delete.
8746
        (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8747
        * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8748
        i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8749
        i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8750
        i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8751
        i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8752
        rs6000-*-lynxos* to an obsoletion stanza.
8753
        * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8754
        i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8755
        and rs6000-*-lynxos* to an obsoletion stanza.  Do not mention
8756
        i[34567]86-*-netware*.
8757
        * NEWS: Mention deleted targets.
8758
 
8759
        * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8760
        uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8761
        config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8762
        config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8763
        config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8764
        config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8765
        config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8766
        config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8767
        config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8768
        config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8769
        config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8770
        config/rs6000/tm-rs6000ly.h: Delete files.
8771
 
8772
2007-03-29  Daniel Jacobowitz  
8773
 
8774
        * defs.h (deprecated_registers_changed_hook): Delete declaration.
8775
        * interps.c (clear_interpreter_hooks): Do not clear
8776
        deprecated_registers_changed_hook.
8777
        * regcache.c (registers_changed): Do not call it.
8778
        * top.c (deprecated_registers_changed_hook): Do not define it.
8779
        * mi/mi-interp.c (mi_command_loop): Do not clear it.
8780
        * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8781
        (tui_remove_hooks): Do not remove it.
8782
        (tui_selected_frame_level_changed_hook): Check for negative level.
8783
        Use get_selected_frame.
8784
        (tui_registers_changed_hook): Deleted.
8785
 
8786
2007-03-29  Joel Brobecker  
8787
 
8788
        * stabsread.c (add_undefined_type): Add extra parameter.
8789
        Now handles nameless types separately.
8790
        (struct nat): New type.
8791
        (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8792
        New static variables.
8793
        (read_type): Update calls to add_undefined_type.
8794
        (add_undefined_type_noname): New function.
8795
        (add_undefined_type_1): Renames from add_undefined_type.
8796
        (cleanup_undefined_types_noname): New function.
8797
        (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8798
        (cleanup_undefined_types): New handles nameless types separately.
8799
        (_initialize_stabsread): Initialize our new static constants.
8800
 
8801
2007-03-29  Denis Pilat  
8802
 
8803
        * configure.ac: Test for signal.h.
8804
        * configure, config.in: Regenerate.
8805
 
8806
2007-03-29  Denis Pilat  
8807
 
8808
        * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8809
        * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8810
 
8811
2007-03-29  Pedro Alves  
8812
 
8813
        * arm-wince-tdep.c: New.
8814
        * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8815
        (MT_CFLAGS): Delete.
8816
        (TM_CLIBS): Delete.
8817
        (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8818
        solib-legacy.o, solib-svr4.o, and remove wince.o.
8819
        * configure.tgt (arm*-*-mingw32ce*): Add.
8820
        * signals/signals.c [HAVE_SIGNAL_H]: Check.
8821
        (do_target_signal_to_host): Silence 'not used' warning.
8822
        * config/arm/tm-wince.h: Remove.
8823
 
8824
2007-03-28  Ulrich Weigand  
8825
 
8826
        * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8827
        * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8828
 
8829
        * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8830
        * config/ia64/tm-linux.h: Remove file.
8831
        * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8832
        * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8833
        legacy_pc_in_sigtramp.
8834
        (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8835
        * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8836
        Remove func_name argument.
8837
        (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8838
 
8839
        * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8840
        * target.c (update_current_target): Add to_have_steppable_watchpoint.
8841
        * target.h (struct target_ops):  Add to_have_steppable_watchpoint.
8842
        (HAVE_STEPPABLE_WATCHPOINT): Define.
8843
 
8844
        * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8845
        * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8846
        CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8847
        TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8848
        STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8849
        target_insert_watchpoint, target_remove_watchpoint): Remove.
8850
        (FETCH_INFERIOR_REGISTERS): Define.
8851
        * ia64-linux-nat.c (ia64_register_addr): Make static.
8852
        (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8853
        (ia64_linux_insert_watchpoint): Make static.  Remove ptid_p argument.
8854
        (ia64_linux_remove_watchpoint): Likewise.  Add type argument.
8855
        (ia64_linux_stopped_data_address): Make static.  Add target_ops.
8856
        (ia64_linux_stopped_by_watchpoint): Make static.
8857
        (ia64_linux_can_use_hw_breakpoint): New function.
8858
        (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8859
        (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8860
        (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8861
 
8862
2007-03-28  Pedro Alves  
8863
 
8864
        * linespec.c: Include language.h.
8865
        (find_methods): Add language parameter.  Call
8866
        lookup_symbol_in_language.  Pass language down.
8867
        (add_matching_methods): Likewise.  Call
8868
        lookup_symbol_in_language.
8869
        (add_constructors): Likewise.
8870
        (find_method): Pass sym_class to collect_methods.
8871
        (collect_methods): Add sym_class parameter.  Pass language
8872
        down.
8873
        * symtab.c (lookup_symbol): Rename to ...
8874
        (lookup_symbol_in_language): ... this.  Add language
8875
        parameter.  Use passed language instead of current_language.
8876
        (lookup_symbol): New as wrapper around
8877
        lookup_symbol_in_language.
8878
        (lookup_symbol_aux): Add language parameter.  Use passed
8879
        language instead of current_language.
8880
        (search_symbols): Indent.
8881
        * symtab.h (enum language): Forward declare.
8882
        (lookup_symbol_in_language): Declare.
8883
        (lookup_symbol): Update description.
8884
        * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8885
        * ada-lang.c (restore_language): Remove.
8886
        (lookup_symbol_in_language): Remove.
8887
 
8888
2007-03-27  Pedro Alves  
8889
 
8890
        * breakpoint.c (bpstat_num): Add int *num parameter.
8891
        * breakpoint.h (bpstat_num): Likewise.
8892
        * infcmd.c (continue_command): Adjust to new bpstat_num
8893
        interface.
8894
        (program_info): Likewise.
8895
 
8896
2007-03-27  Ulrich Weigand  
8897
 
8898
        * config/sh/tm-sh.h: Remove file.
8899
        * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8900
        * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8901
        * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8902
        * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8903
 
8904
2007-03-27  Ulrich Weigand  
8905
 
8906
        * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8907
        DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8908
        * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8909
        DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8910
        * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8911
        sequence if target_shortname is "remote".
8912
 
8913
2007-03-27  Anton Blanchard  
8914
 
8915
        * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8916
        instead of wordsize when looking for the LR in a stack frame.
8917
 
8918
2007-03-27  Andreas Schwab  
8919
            Daniel Jacobowitz  
8920
 
8921
        * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8922
        (dwarf2_frame_adjust_regnum): ...this.  Make static.  Add eh_frame_p
8923
        argument.  Update all callers.
8924
        (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8925
        (dwarf2_frame_set_eh_frame_regnum): Rename to...
8926
        (dwarf2_frame_set_adjust_regnum): ...this.  Update argument type.
8927
        * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8928
        (dwarf2_frame_set_adjust_regnum): ...this.
8929
        (dwarf2_frame_eh_frame_regnum): Delete prototype.
8930
        * rs6000-tdep.c: Include "dwarf2-frame.h".
8931
        (rs6000_adjust_frame_regnum): Define.
8932
        (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8933
        Register rs6000_adjust_frame_regnum.
8934
 
8935
        * Makefile.in (rs6000-tdep.o): Update dependencies.
8936
 
8937
2007-03-27  Brooks Moses  
8938
 
8939
        * Makefile.in: Add support for a "pdf" target.
8940
 
8941
2007-03-27  Daniel Jacobowitz  
8942
 
8943
        * amd64-tdep.c (amd64_init_frame_cache): New function.
8944
        (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8945
 
8946
2007-03-26  Nigel Stephens  
8947
            Maciej W. Rozycki  
8948
 
8949
        * ui-out.c (ui_out_field_core_addr): Truncate address to
8950
        TARGET_ADDR_BIT size before printing.
8951
 
8952
2007-03-22  Nigel Stephens  
8953
            Maciej W. Rozycki  
8954
 
8955
        * remote-mips.c (mips_xfer_memory): Update prototype.
8956
 
8957
2007-03-22  Joel Brobecker  
8958
 
8959
        * symfile.h: #include "symtab.h"
8960
 
8961
2007-03-22  Denis Pilat  
8962
 
8963
        * utils.c (pagination_on_command, pagination_off_command):
8964
        Remove useless prototypes.
8965
 
8966
2007-03-21  Pierre Muller  
8967
 
8968
        Fix PR pascal/2232.
8969
        * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8970
        instead of TYPE_NAME for object base class name.
8971
 
8972
 
8973
2007-03-19  Kevin Buettner  
8974
 
8975
        * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8976
        Specify frame type in calls to frame_func_unwind().
8977
 
8978
2007-03-13  Daniel Jacobowitz  
8979
 
8980
        * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8981
        (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8982
        (refine_prologue_limit): Delete.
8983
        (skip_prologue): Don't call it.  Use extract_unsigned_integer.
8984
        Assume lim_pc is set.  Correct check for incomplete prologues.
8985
        Do not skip clobbers of the frame pointer.
8986
        * symtab.c (skip_prologue_using_sal): Fail if there is only one
8987
        sal.
8988
 
8989
2007-03-13  Nathan Froyd  
8990
 
8991
        * frame.c (frame_pop): Check to see whether there's a frame to
8992
        which we can pop first.
8993
 
8994
2007-03-13  Nathan Froyd  
8995
 
8996
        * MAINTAINERS (Write After Approval): Add myself.
8997
 
8998
2007-03-09  Markus Deuling  
8999
 
9000
        * infrun.c (breakpoints_failed): Remove unnecessary variable.
9001
        (handle_inferior_event): Remove unnecessary braces.
9002
        * breakpoint.c (bpstat_what): Remove wrong comment.
9003
 
9004
2007-03-09  Ulrich Weigand  
9005
 
9006
        * spu-tdep.c (spu_in_function_epilogue_p): New function.
9007
        (spu_gdbarch_init): Install it.
9008
 
9009
2007-03-08  Ulrich Weigand  
9010
 
9011
        * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
9012
        object types, not 0.
9013
 
9014
2007-03-08  Ulrich Weigand  
9015
 
9016
        * spu-tdep.c (spu_frame_align): New function.
9017
        (spu_gdbarch_init): Install it.  Set call dummy location to ON_STACK.
9018
 
9019
2007-03-08  Ulrich Weigand  
9020
 
9021
        * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
9022
        (spu_software_single_step): Likewise.
9023
        (spu_read_pc, spu_write_pc): New functions.
9024
        (spu_gdbarch_init): Install them.
9025
 
9026
2007-03-08  Ulrich Weigand  
9027
 
9028
        * cli/cli-dump.c (struct callback_data): load_offset needs to
9029
        have signed long type.
9030
 
9031
2007-03-07  Joel Brobecker  
9032
 
9033
        * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
9034
        Revert the previous change that had some unexpected side-effects
9035
        on mips32.
9036
        (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
9037
        function to get the address of the calling instruction.
9038
 
9039
2007-03-07  Denis Pilat  
9040
 
9041
        * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
9042
        get_selected_frame by deprecated_safe_get_selected_frame.
9043
 
9044
2007-03-02  Mark Kettenis  
9045
 
9046
        * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
9047
        "gdb_string.h".  Don't include "nbsd-tdep.h".
9048
        (SIZEOF_STRUCT_REG): Remove.
9049
        (SHNBSD_SIZEOF_GREGS): New.
9050
        (shnbsd_supply_gregset, shnbsd_collect_gregset)
9051
        (shnbsd_regset_from_core_section): New functions.
9052
        (fetch_core_registers, fetch_elfcore_registers): Remove functions.
9053
        (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
9054
        shnbsd_supply_gregset, shnbsd_collect_gregset.
9055
        (shnbsd_gregset): New variable.
9056
        (shnbsd_init_abi): Set regset_from_core_section.
9057
        (GDB_OSABI_NETBSD_CORE): New define.
9058
        (shnbsd_core_osabi_sniffer): New function.
9059
        (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
9060
        * Makefile.in (shnbsd-tdep.o): Update dependencies.
9061
        * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
9062
        nbsd-tdep.o.
9063
        * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
9064
 
9065
2007-02-28  Joel Brobecker  
9066
 
9067
        * gdbtypes.c (replace_type): Fix typo that caused us to not update
9068
        length of the types referenced by the new type CV ring.
9069
 
9070
2007-02-28  Daniel Jacobowitz  
9071
 
9072
        * frame.c (frame_pop, frame_observer_target_changed): Call
9073
        reinit_frame_cache.
9074
        (flush_cached_frames): Rename to reinit_frame_cache and delete
9075
        old implementation.
9076
        * frame.h (flush_cached_frames): Delete prototype and update comment.
9077
 
9078
        * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
9079
        reinit_frame_cache instead of flush_cached_frames.  Do not call
9080
        select_frame after reinit_frame_cache.
9081
        * corelow.c (core_open): Likewise.
9082
        * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
9083
        * infrun.c (prepare_to_proceed, context_switch)
9084
        (handle_inferior_event): Likewise.
9085
        * linux-fork.c (fork_load_infrun_state): Likewise.
9086
        * ocd.c (ocd_start_remote): Likewise.
9087
        * remote-e7000.c (e7000_start_remote): Likewise.
9088
        * remote-mips.c (device): Likewise.
9089
        * thread.c (switch_to_thread): Likewise.
9090
        * tracepoint.c (finish_tfind_command): Likewise.
9091
        * gdbarch.c: Regenerated.
9092
 
9093
2007-02-28  Jerome Guitton  
9094
            Joel Brobecker  
9095
 
9096
        * gdbtypes.c (check_typedef): Do not replace stub type if
9097
        the resolved type is not defined in the same objfile.
9098
 
9099
2007-02-28  Daniel Jacobowitz  
9100
 
9101
        * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
9102
 
9103
2007-02-28  Joel Brobecker  
9104
 
9105
        * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
9106
        symbol for Ada units when the symbol is defined using 't' rather
9107
        than 'Tt' as symbol descriptor.
9108
 
9109
2007-02-28  Ulrich Weigand  
9110
 
9111
        * config/mips/tm-nbsd.h: Delete file.
9112
        * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
9113
        * config/sh/tm-nbsd.h: Delete file.
9114
        * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
9115
 
9116
2007-02-28  Joel Brobecker  
9117
 
9118
        * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
9119
        unused WRONG_PARAM value since it was recently deleted.
9120
 
9121
2007-02-28  Vladimir Prus  
9122
 
9123
        * varobj.c (varobj_update): Free temporary vectors.
9124
 
9125
2007-02-28  Ulrich Weigand  
9126
 
9127
        * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
9128
        * config/powerpc/tm-linux.h: Delete file.
9129
        * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
9130
        (PROCESS_LINENUMBER_HOOK): Do not undefine.
9131
        (TEXT_SEGMENT_BASE): Do not redefine.
9132
        * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
9133
        from config/rs6000/tm-rs6000.h.
9134
        (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9135
        * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
9136
        (TEXT_SEGMENT_BASE): Remove.
9137
        (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
9138
        (rs6000_in_solib_return_trampoline): Remove.
9139
        (SKIP_TRAMPOLINE_CODE): Remove.
9140
        (rs6000_skip_trampoline_code): Remove.
9141
        (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
9142
        (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9143
        (FP0_REGNUM): Remove.
9144
        (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
9145
        (rs6000_set_host_arch_hook): Remove.
9146
        * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
9147
        (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
9148
        * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
9149
        * rs6000-aix-tdep.c: Include "ppc-tdep.h".
9150
        (rs6000_aix_init_osabi): Set text_segment_base tdep field.
9151
        * rs6000-nat.c: Include "rs6000-tdep.h".
9152
        (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
9153
        (set_host_arch): Rename to ...
9154
        (rs6000_create_inferior): ... this.  Make public.
9155
        (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
9156
        * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
9157
        (rs6000_create_inferior): Remove.
9158
        (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
9159
        (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
9160
        set_gdbarch_in_solib_return_trampoline, and
9161
        set_gdbarch_skip_trampoline_code.
9162
        * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
9163
        from config/rs6000/tm-rs6000.h.
9164
 
9165
2007-02-27  Joel Brobecker  
9166
 
9167
        * buildsym.c (record_producer): Do nothing if no producer is provided.
9168
 
9169
2007-02-27  Nick Roberts  
9170
 
9171
        * varobj.c (varobj_update): Remove unused local.  Use gdb_assert
9172
        to check changelist is non-NULL.  Call error if the frontend tries
9173
        to update a non-root variable.
9174
 
9175
        * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
9176
 
9177
2007-02-27  Daniel Jacobowitz  
9178
 
9179
        * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
9180
        (dwarf2_frame_sniffer): Update.
9181
        (dwarf2_signal_frame_this_id): New function.
9182
        (dwarf2_signal_frame_unwind): Use it.
9183
        (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
9184
        * frame.c (frame_func_unwind): Add this_type argument.
9185
        (get_frame_func): Update.
9186
        (frame_unwind_address_in_block): Add this_type argument and check it.
9187
        Fix a typo.
9188
        (get_frame_address_in_block): Update.
9189
        * frame.h (enum frame_type): Move higher in the file.
9190
        (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
9191
        argument.
9192
 
9193
        * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
9194
        arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
9195
        hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
9196
        libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
9197
        m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
9198
        mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
9199
        score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
9200
        sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
9201
        xstormy16-tdep.c, xtensa-tdep.c: Update calls to
9202
        frame_func_unwind and frame_unwind_address_in_block to specify
9203
        the frame type.  Use frame_unwind_address_in_block instead of
9204
        frame_pc_unwind in sniffers.
9205
 
9206
2007-02-27  Daniel Jacobowitz  
9207
 
9208
        * frame.c (deprecated_selected_frame): Rename to...
9209
        (selected_frame): ...this.  Make static.
9210
        (get_selected_frame, select_frame): Update.
9211
        * frame.h (deprected_select_frame): Delete.
9212
        (deprecated_safe_get_selected_frame): Update comments.
9213
 
9214
        * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
9215
        infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
9216
        tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
9217
        parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
9218
        tui/tui.c: Replace references to deprecated_selected_frame.
9219
 
9220
2007-02-27  Fred Fish  
9221
 
9222
        * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
9223
        directly decrement the stack pointer, accumulate their operand into
9224
        the stack offset, and mark the function as not being frameless.
9225
 
9226
2007-02-26  Daniel Jacobowitz  
9227
 
9228
        * arch-utils.c (selected_byte_order): New.
9229
        * arch-utils.h (selected_byte_order): New prototype.
9230
        * remote-sim.c (gdbsim_open): Use selected_byte_order.
9231
 
9232
2007-02-26  Daniel Jacobowitz  
9233
 
9234
        * symfile.c (place_section): Check SEC_ALLOC.  Do not check VMA.
9235
        (default_symfile_offsets): Check VMA here.  Update section VMAs.
9236
 
9237
2007-02-26  Daniel Jacobowitz  
9238
 
9239
        * remote.c (init_remote_state): Add special handling for placeholder
9240
        registers.
9241
 
9242
2007-02-26  Daniel Jacobowitz  
9243
 
9244
        * Makefile.in (XMLFILES): Include $(TDEP_XML).
9245
        (filenames_h): New variable.
9246
        (clean): Clean up xml-builtin.c and stamp-xml.
9247
        (arm-linux-nat.o): Update.
9248
        * config/arm/linux.mh (TDEP_XML): Define.
9249
        * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9250
        (arm_linux_has_wmmx_registers): New.
9251
        (GET_THREAD_ID): Fix typo.
9252
        (IWMMXT_REGS_SIZE): Define.
9253
        (fetch_wmmx_regs, store_wmmx_regs): New.
9254
        (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9255
        (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9256
        (super_xfer_partial, arm_linux_xfer_partial): New.
9257
        (_initialize_arm_linux_nat): Use them.
9258
        * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9259
        (xml_builtin_xfer_partial): New function.
9260
        * xml-support.h (xml_builtin_xfer_partial): New prototype.
9261
        * NEWS: Update mention of iWMMXt support.
9262
 
9263
2007-02-26  Daniel Jacobowitz  
9264
 
9265
        * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9266
        if there are no FPA registers.
9267
        (arm_dwarf_reg_to_regnum): New function.
9268
        (arm_register_type, arm_register_name): Return minimal values for
9269
        unsupported registers.
9270
        (arm_register_sim_regno): Handle iWMMXt registers.
9271
        (arm_gdbarch_init): Record missing FPA registers if indicated by
9272
        a target description.  Recognize iWMMXt registers.  Only register
9273
        "info float" for FPA.  Use ARM_NUM_REGS.  Register
9274
        arm_dwarf_reg_to_regnum.
9275
        * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9276
        constants.
9277
        (struct gdbarch_tdep): Add have_fpa_registers.
9278
        * features/xscale-iwmmxt.xml: Update capitalization.
9279
        * regformats/arm-with-iwmmxt.dat: Regenerated.
9280
 
9281
2007-02-24  Kevin Buettner  
9282
 
9283
        * NEWS (New targets): Add entry for the Toshiba Media Processor.
9284
 
9285
2007-02-23  Kevin Buettner  
9286
 
9287
        * MAINTAINERS (mep): New target.
9288
 
9289
2007-02-23  Kevin Buettner  
9290
 
9291
        From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9292
        Richard Sandiford:
9293
        * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9294
        (mep-tdep.o): New rule.
9295
        * configure.tgt (mep-*-*): New target.
9296
        * mep-tdep.c: New file.
9297
        * config/mep/mep.mt: New file.
9298
 
9299
2007-02-22  Markus Deuling  
9300
 
9301
        * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9302
        BREAKPOINT_HIT and STOP_UNKNOWN.
9303
 
9304
2007-02-22  Markus Deuling  
9305
 
9306
        * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9307
 
9308
2007-02-20  Joel Brobecker  
9309
 
9310
        * gdb_expat.h (XMLCALL): Define if not already defined.
9311
 
9312
2007-02-20  Andreas Schwab  
9313
 
9314
        * Makefile.in (symfile.o): Update dependencies.
9315
 
9316
2007-02-20  Daniel Jacobowitz  
9317
 
9318
        * MAINTAINERS: Disable -Werror for cris simulator.  Build
9319
        sparc64-solaris2.10 instead of the broken sparc-elf.
9320
        * solib-frv.c: Include "solib.h".
9321
        * Makefile.in (solib-frv.o): Update.
9322
        * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9323
        * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9324
        (xtensa_frame_this_id, xtensa_frame_prev_register)
9325
        (xtensa_push_dummy_call): Use %p.
9326
 
9327
2007-02-16  Daniel Jacobowitz  
9328
 
9329
        * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9330
        ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9331
        sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9332
        * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9333
        (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9334
        (sparc-linux-tdep.o): Update.
9335
 
9336
2007-02-15  Maxim Grigoriev  
9337
 
9338
        * xtensa-tdep.h (xtensa_reg_mask_t): New.
9339
        (xtensa_mask_t): Change mask field to be a separate array.
9340
        * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9341
        (xtensa_pseudo_register_write, xtensa_unwind_pc)
9342
        (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9343
        (xtensa_breakpoint_from_pc): Remove implicit type casting.
9344
        * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9345
        (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9346
        (mask14, mask15): Rename to
9347
        (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9348
        (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9349
        (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9350
        (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9351
        (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9352
        (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9353
        (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9354
        (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9355
        (xtensa_submask14, xtensa_submask15): New.
9356
        (rmap): Follow strict aliasing rules doing static initialization.
9357
 
9358
2007-02-13  Daniel Jacobowitz  
9359
 
9360
        * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9361
        handling from here...
9362
        (tdesc_register_type): ...to here.
9363
        * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9364
        * features/arm-core.xml: Use code_ptr and data_ptr.
9365
 
9366
2007-02-13  Denis Pilat  
9367
 
9368
        * varobj.h (enum varobj_update_error): New enum.
9369
        * varobj.c (struct varobj_root): Add is_valid member.
9370
        (varobj_get_type): Check for invalid varobj.
9371
        (varobj_get_attributes): Likewise.
9372
        (variable_editable):Likewise.
9373
        (varobj_update): Likewise.  Use varobj_update_error.
9374
        (new_root_variable): Set root varobj as valid by default.
9375
        (varobj_invalidate): New function.
9376
        * symfile.c (clear_symtab_users): Use varobj_invalidate.
9377
        * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9378
        Use varobj_update_error.
9379
 
9380
2007-02-12  Pierre Muller  
9381
 
9382
        Fix PR pascal/2223.
9383
        * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9384
        Pascal language marker.
9385
        * dwarf2read.c (set_cu_language): Likewise.
9386
 
9387
2007-02-12  Corinna Vinschen  
9388
 
9389
        * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9390
        (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9391
        instead of target_terminal_init since inferior_ptid isn't set yet.
9392
 
9393
2007-02-10  Pedro Alves  
9394
 
9395
        * MAINTAINERS (Write After Approval): Add myself.
9396
 
9397
2007-02-09  Fred Fish  
9398
 
9399
        Based on work by Apple Computer, Inc.
9400
        * event-top.c (async_request_quit): Call quit() whenever either
9401
        quit_flag is set or immediate_quit is set.
9402
 
9403
2007-02-09  Gabriel Dos Reis  
9404
 
9405
        * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9406
        type to a pointer to const struct block.
9407
        (ada_lookup_symbol_list): Don't cast away constness when calling
9408
        remove_out_of_scope_renamings.
9409
 
9410
2007-02-09  Gabriel Dos Reis  
9411
 
9412
        * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9413
        address of 'filename'; it is always non null.
9414
 
9415
2007-02-09  Joel Brobecker  
9416
 
9417
        * exec.c (add_to_section_table): Do not discard empty sections.
9418
 
9419
2007-02-08  Daniel Jacobowitz  
9420
 
9421
        * features/Makefile, features/arm-with-iwmmxt.xml,
9422
        features/gdbserver-regs.xsl, features/number-regs.xsl,
9423
        features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9424
        * regformats/arm-with-iwmmxt.dat: Generate.
9425
        * NEWS: Mention iWMMXt.
9426
 
9427
2007-02-08  Daniel Jacobowitz  
9428
 
9429
        * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9430
        (xml-tdesc.o): Update.
9431
        * xml-support.c: Add a comment.
9432
        (gdb_xml_enums_boolean): New variable.
9433
        (gdb_xml_parse_attr_enum): Use strcasecmp.
9434
        * xml-support.h (gdb_xml_enums_boolean): Declare.
9435
        * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9436
        next_regnum, and current_union.
9437
        (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9438
        (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9439
        (field_attributes, union_children, reg_attributes, union_attributes)
9440
        (vector_attributes, feature_attributes, feature_children): New.
9441
        (target_children): Make static.  Add .
9442
        (tdesc_elements): Make static.
9443
        * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9444
        (struct tdesc_feature, tdesc_feature_p): New types.
9445
        (struct target_desc): Add features member.
9446
        (struct tdesc_arch_data, tdesc_data): New.
9447
        (target_find_description): Clarify error message.  Warn about
9448
        ignored register descriptions.
9449
        (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9450
        (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9451
        (tdesc_data_cleanup, tdesc_numbered_register)
9452
        (tdesc_numbered_register_choices, tdesc_find_register)
9453
        (tdesc_register_name, tdesc_register_type)
9454
        (tdesc_remote_register_number, tdesc_register_reggroup_p)
9455
        (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9456
        (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9457
        (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9458
        (tdesc_create_feature, tdesc_record_type): New.
9459
        (free_target_description): Free features.
9460
        (_initialize_target_descriptions): Initialize tdesc_data.
9461
        * arch-utils.c (default_remote_register_number): New.
9462
        * arch-utils.h (default_remote_register_number): New prototype.
9463
        * target-descriptions.h (set_tdesc_pseudo_register_name)
9464
        (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9465
        (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9466
        (tdesc_numbered_register, tdesc_numbered_register_choices)
9467
        (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9468
        (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9469
        (tdesc_create_reg): Declare.
9470
        * gdbarch.sh (remote_register_number): New entry.
9471
        * gdbarch.c, gdbarch.h: Regenerate.
9472
        * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9473
        * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9474
 
9475
        * arm-tdep.c (arm_register_aliases): New.
9476
        (arm_register_name_strings): Rename to...
9477
        (arm_register_names): ...this.  Make const.  Delete the old version.
9478
        (current_option, arm_register_byte): Delete.
9479
        (set_disassembly_style): Simplify.  Do not adjust arm_register_names.
9480
        (value_of_arm_user_reg): New.
9481
        (arm_gdbarch_init): Verify any described registers.  Call
9482
        tdesc_use_registers.  Don't use arm_register_byte.  Create aliases
9483
        for standard register names.
9484
        (_initialize_arm_tdep): Do not adjust arm_register_names.
9485
        * user-regs.c (struct user_reg): Add baton member.
9486
        (append_user_reg, user_reg_add_builtin, user_regs_init)
9487
        (user_reg_add, value_of_user_reg): Use a baton for user
9488
        register functions.
9489
        * std-regs.c: Update.
9490
        * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9491
        (user_reg_add): Add baton argument.
9492
        * NEWS: Mention target description register support.
9493
        * features/arm-core.xml, features/arm-fpa.xml: New.
9494
        * eval.c (evaluate_subexp_standard): Allow ptype $register
9495
        when the program is not running.
9496
 
9497
2007-02-09  Nick Roberts  
9498
 
9499
        * mi/mi-cmd-var.c (mi_cmd_var_create):  Add value field.
9500
 
9501
2007-02-08  Thiago Jung Bauermann  
9502
 
9503
        * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9504
        info->disassembler_options to "any".
9505
 
9506
2007-02-08  Daniel Jacobowitz  
9507
 
9508
        * varobj.c (install_new_value): Only call value_get_print_value
9509
        if changeable.
9510
 
9511
2007-02-08  Daniel Jacobowitz  
9512
 
9513
        Reported by timeless@gmail.com:
9514
        * gdb/target.c (target_flash_erase): Do not return void value.
9515
        (target_flash_done): Likewise.
9516
        * gdb/cli/cli-cmds.c (source_command): Likewise.
9517
 
9518
2007-02-08  Fred Fish  
9519
 
9520
        Based on work by Apple Computer, Inc.
9521
        * event-top.c (handle_sigint): Set quit_flag.
9522
        (async_request_quit): Don't set quit_flag.  Avoid calling quit()
9523
        if quit_flag has already been reset.
9524
 
9525
2007-02-08  Daniel Jacobowitz  
9526
 
9527
        * ser-mingw.c (pipe_windows_close): Move variable initialization back
9528
        up.
9529
 
9530
2007-02-08  Fred Fish  
9531
 
9532
        * defs.h (request_quit): Remove declaration.
9533
        * utils.c (request_quit): Remove definition.
9534
 
9535
2007-02-08  Joel Brobecker  
9536
            Jan Kratochvil  
9537
            Daniel Jacobowitz  
9538
 
9539
        * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9540
        (skip_prologue): Allow bl->blrl used by PIC code.
9541
 
9542
2007-02-08  Mark Kettenis  
9543
            Daniel Jacobowitz  
9544
 
9545
        * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9546
        initialize tmp_obstack.
9547
        * p-valprint.c (pascal_object_print_value_fields)
9548
        (pascal_object_print_value): Likewise.
9549
 
9550
2007-02-08  Daniel Jacobowitz  
9551
 
9552
        * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9553
 
9554
2007-02-08  Mark Kettenis  
9555
 
9556
        * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9557
        * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9558
 
9559
2007-02-07  Daniel Jacobowitz  
9560
 
9561
        * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9562
        (xml_cache): New.
9563
        (tdesc_parse_xml): Cache expanded descriptions.
9564
 
9565
2007-02-07  Daniel Jacobowitz  
9566
 
9567
        * Makefile.in (XMLFILES): New.
9568
        (COMMON_OBS): Add xml-builtin.o.
9569
        (xml-builtin.c, stamp-xml): New rules.
9570
        (xml-tdesc.o): Update.
9571
        * features/feature_to_c.sh: New file.
9572
        * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9573
        (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9574
        (gdb_xml_start_element): Initialize scope after possibly reallocating
9575
        scopes.  Move cleanup later.  Handle the XInclude description
9576
        specially.
9577
        (gdb_xml_end_element): Only parse the body if there is a current element.
9578
        Call XML_DefaultCurrent if there is no element.
9579
        (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9580
        (struct xinclude_parsing_data, xinclude_start_include)
9581
        (xinclude_end_include, xml_xinclude_default)
9582
        (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9583
        (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9584
        (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9585
        * xml-support.h (xml_fetch_another, xml_process_xincludes)
9586
        (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9587
        * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument.  Expand
9588
        XInclude directives.  Use the compiled in DTD.
9589
        (fetch_xml_from_file): Add baton argument.  Treat it as a containing
9590
        directory name.  Do not warn here.
9591
        (file_read_description_xml): Update call.  Warn here instead.  Pass
9592
        a dirname as baton.
9593
        (fetch_available_features_from_target): New.
9594
        (target_read_description_xml): Use it.
9595
        * features/gdb-target.dtd: Add copyright notice.  Use xinclude.dtd
9596
        to handle XInclude.
9597
        * features/xinclude.dtd: New file.
9598
 
9599
2007-02-05  Daniel Jacobowitz  
9600
 
9601
        * linux-thread-db.c (check_for_thread_db): Return early if we have
9602
        no libthread_db support.
9603
 
9604
2007-02-05  Daniel Jacobowitz  
9605
 
9606
        * mi/mi-parse.h: Include .
9607
 
9608
2007-02-05  Nick Roberts  
9609
 
9610
        * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9611
        instead of print_variable_value to print values.
9612
 
9613
2007-02-03  Nick Roberts  
9614
 
9615
        * mi/mi-main.c: Numerous formatting changes.
9616
        (mi_cmd_data_write_register_values): Replace clause inadvertantly
9617
        removed in my previous change.
9618
 
9619
2007-02-03   Eli Zaretskii  
9620
 
9621
        * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9622
        Use 1000000L instead of 1000000.
9623
 
9624
2007-02-03  Nick Roberts  
9625
 
9626
            Based on work by Apple Computer, Inc.
9627
 
9628
        * configure.ac: Test for sys/resource.h and getrusage.
9629
        * configure, config.in: Regenerate.
9630
 
9631
        * mi/mi-main.c: Include  if present.
9632
        (rusage): Declare if HAVE_GETRUSAGE.
9633
        (current_command_ts, do_timings): New static variables.
9634
        (timestamp, print_diff_now, print_diff, timeval_diff):
9635
        New static timing functions.
9636
        (mi_cmd_enable_timings): New function for new MI command.
9637
        (captured_mi_execute_command, mi_execute_async_cli_command):
9638
        Call timing functions.
9639
 
9640
        * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9641
        -enable-timings.
9642
 
9643
        * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9644
 
9645
        * mi/mi-parse.h: (mi_timestamp): New structure.
9646
        (mi_parse): Add mi_timestamp* member.
9647
 
9648
2007-02-02  Denis Pilat  
9649
 
9650
        * thread.c (make_cleanup_restore_current_thread): New function.
9651
        (info_threads_command): Use of make_cleanup_restore_current_thread
9652
        to restore the current thread and the selected frame.
9653
        (restore_selected_frame): New function.
9654
        (struct current_thread_cleanup): Add frame_id field.
9655
        (do_restore_current_thread_cleanup): Add restoring of the selected
9656
        frame.
9657
        (make_cleanup_restore_current_thread): Likewise.
9658
        (thread_apply_all_command): backup the selected frame while
9659
        entering the function and restore it at exit.
9660
        (thread_apply_command): Likewise.
9661
 
9662
2007-02-02  Denis Pilat  
9663
 
9664
        * MAINTAINERS (Write After Approval): Add myself to the list.
9665
 
9666
2007-02-01  Kazuhiro Inaoka 
9667
 
9668
        * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9669
        (m32r_store_register): Ditto.
9670
 
9671
2007-01-30  Vladimir Prus  
9672
 
9673
        * ser-mingw.c (pipe_windows_open)
9674
        (pipe_windows_read, pipe_windows_write): Declare
9675
        variables at the top of the function.
9676
 
9677
2007-01-29  Daniel Jacobowitz  
9678
 
9679
        * doublest.c (floatformat_from_length): Use the right element from
9680
        gdbarch floatformats.
9681
        (floatformat_from_type, extract_typed_floating)
9682
        (store_typed_floating): Likewise.
9683
        * doublest.h: Remove declarations for undefined floatformat arrays.
9684
        * gdbarch.sh (float_format, double_format, long_double_format): Change
9685
        to pairs.
9686
        (pformat): Update for pairs.
9687
        * gdbarch.c, gdbarch.h: Regenerated.
9688
        * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9689
        (floatformats_ieee_double_littlebyte_bigword)
9690
        (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9691
        (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9692
        (floatformats_vax_d): New variables.
9693
        (builtin_type_ieee_single, builtin_type_ieee_double)
9694
        (builtin_type_arm_ext, builtin_type_ia64_spill)
9695
        (builtin_type_ia64_quad): Replace arrays with individual types.
9696
        (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9697
        (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9698
        (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9699
        (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9700
        (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9701
        (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9702
        (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9703
        unused and endian-specific types.
9704
        (recursive_dump_type): Update for floatformat pairs.
9705
        (build_flt): Move higher.  Handle bit == -1.  Take a floatformat pair.
9706
        (build_gdbtypes): Use build_flt.
9707
        (_initialize_gdbtypes): Update set of initialized types.
9708
        * gdbtypes.h: Update declarations to match gdbtypes.c.
9709
        (struct main_type): Store a pointer to two floatformats.
9710
        * arch-utils.c (default_float_format, default_double_format): Delete.
9711
        * arch-utils.h (default_float_format, default_double_format): Delete.
9712
 
9713
        * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9714
        ia64-tdep.c,  iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9715
        mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9716
        sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9717
        vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9718
 
9719
2007-01-29  Joel Brobecker  
9720
 
9721
        * target.c (maintenance_print_target_stack): New function.
9722
        (initialize_targets): Add new "maintenance print target-stack"
9723
        command.
9724
 
9725
2007-01-28  Mark Kettenis  
9726
 
9727
        * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9728
 
9729
2007-01-27  Daniel Jacobowitz  
9730
 
9731
        * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9732
        (struct dwarf2_loclist_baton): Likewise.
9733
 
9734
2007-01-27  Eli Zaretskii  
9735
 
9736
        * cli/cli-script.c: Include breakpoint.h.
9737
        (build_command_line): Require arguments only for if and while
9738
        commands.
9739
        (get_command_line, execute_user_command, execute_control_command):
9740
        Fix wording of warning messages.
9741
        (print_command_lines): Print breakpoint commands.
9742
        (execute_control_command): Call commands_from_control_command to
9743
        handle the `commands' command inside a body of a flow-control
9744
        command.
9745
        (read_next_line): Recognize the `commands' command and build a
9746
        command line structure for it.
9747
        (recurse_read_control_structure, read_command_lines): Handle
9748
        `commands' similarly to `if' and `while'.
9749
 
9750
        * breakpoint.c (get_number_trailer): Document the special meaning
9751
        of NULL as the first argument PP.
9752
        (commands_from_control_command): New function.
9753
 
9754
        * breakpoint.h (commands_from_control_command): Add prototype.
9755
 
9756
        * defs.h (commands_control): New enumerated value for enum
9757
        command_control_type.
9758
 
9759
2007-01-26  Joel Brobecker  
9760
 
9761
        * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9762
        (ada_exception_sal): Update accordingly.
9763
 
9764
2007-01-26  Jan Kratochvil 
9765
 
9766
        * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9767
        * NEWS: Describe CHAR array vs. string identifcation rules.
9768
 
9769
2007-01-25  Paul Brook  
9770
 
9771
        * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9772
 
9773
2007-01-24  Jim Blandy  
9774
 
9775
        * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9776
        expression is empty, bother to return the 'optimized out' value we
9777
        construct.  (Thanks to Carl Burch.)
9778
 
9779
2007-01-24  Vladimir Prus  
9780
 
9781
        * varobj.c (c_value_of_root, c_value_of_child)
9782
        (cplus_describe_child): Don't call release_value.
9783
 
9784
2007-01-24  Thiemo Seufer  
9785
 
9786
        * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9787
        initialization.
9788
 
9789
2007-01-24  Vladimir Prus  
9790
 
9791
        Refactor getting children name, value and type access
9792
        for varobjs in C++.
9793
        * varobj.c (get_type_deref): Remove.
9794
        (adjust_value_for_child_access): New.
9795
        (c_number_of_children): Use the above.
9796
        (c_describe_child): Likewise.
9797
        (enum accessibility): New.
9798
        (match_accessibility): New function.
9799
        (cplus_describe_child): New function.
9800
        (cplus_name_of_child, cplus_value_of_child)
9801
        (cplus_type_of_child): Reimplement in terms
9802
        of cplus_describe_child.
9803
        (cplus_number_of_children): Use
9804
        adjust_value_for_child_access.
9805
 
9806
2007-01-24  Vladimir Prus  
9807
 
9808
        Fix computation of the 'editable' attribute and
9809
        value changeability for for references.
9810
        * varobj.c (get_value_type): New function.
9811
        (c_variable_editable): Use get_value_type.
9812
        (varobj_value_is_changeable): Likewise.
9813
 
9814
2007-01-24  Joel Brobecker  
9815
 
9816
        * source.c (find_and_open_source): Try rewriting the source
9817
        path inside filename if dirname is NULL.
9818
 
9819
2007-01-24  Joel Brobecker  
9820
 
9821
        * dwarf2read.c (add_partial_symbol): Create an extra partial
9822
        symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9823
        (new_symbol): Likewise for symbols.
9824
 
9825
2007-01-24  Nick Roberts  
9826
 
9827
        * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9828
 
9829
2007-01-23  Vladimir Prus  
9830
 
9831
        * value.c (value_primitive_field): Copy the full 'location'
9832
        contents, instead of assuming that copying ADDRESS will
9833
        bring over everything in the union.  Remove obsolete comment.
9834
 
9835
2007-01-23  Masaki Muranaka  
9836
 
9837
        * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9838
        (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9839
        (m32c_m16c_pointer_to_address): Separate code from declarations.
9840
 
9841
2007-01-23  Nick Hudson  
9842
 
9843
        * target.c (update_current_target): Correct typo.
9844
 
9845
2007-01-22  Masaki Muranaka  
9846
 
9847
        * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9848
        declaration.
9849
 
9850
2007-01-11  Andrew Cagney  
9851
            Daniel Jacobowitz  
9852
            Jan Kratochvil  
9853
 
9854
        * dwarf2-frame.c (execute_cfa_program): New support of
9855
        `DW_CFA_GNU_negative_offset_extended'.
9856
 
9857
2007-01-21  Daniel Jacobowitz  
9858
 
9859
        * NEWS: Mention flash support for "load" and new remote packets.
9860
 
9861
2007-01-21  Markus Deuling  
9862
 
9863
        * breakpoint.c (delete_command): Skip redundant loop iterations.
9864
 
9865
2007-01-21  Daniel Jacobowitz  
9866
 
9867
        * gdbarch.sh (register_type): Update comment.
9868
        * gdbarch.h: Regenerated.
9869
        * arch-utils.c (generic_register_size): Call register_type.
9870
        * ia64-tdep.c (ia64_extract_return_value): Likewise.
9871
        * m32c-tdep.c (check_for_saved): Likewise.
9872
        * mips-tdep.c (mips_print_register, print_gp_register_row)
9873
        (mips_print_registers_info): Likewise.
9874
        * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9875
        Likewise.
9876
        * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9877
        (sh64_do_register, sh64_print_register)
9878
        (sh64_media_print_registers_info): Likewise.
9879
        * tui/tui-regs.c (tui_register_format): Likewise.
9880
 
9881
2007-01-21  Daniel Jacobowitz  
9882
 
9883
        * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9884
 
9885
        * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9886
        (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9887
        * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9888
        * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9889
        (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9890
        (make_symbol_completion_list): Likewise.
9891
 
9892
2007-01-21  Jan Kratochvil  
9893
            Daniel Jacobowitz  
9894
 
9895
        * buildsym.c (end_symtab): Use preallocated symtab if available.
9896
        Fill in SYMBOL_SYMTAB.
9897
        * buildsym.h (struct subfile): Add symtab member.
9898
        * dwarf2read.c (struct dwarf2_cu): Add line_header.
9899
        (struct file_entry): Add symtab.
9900
        (free_cu_line_header): New function.
9901
        (read_file_scope): Use it.  Save line_header in the cu.  Process
9902
        lines before DIEs.
9903
        (add_file_name): Initialize new symtab member.
9904
        (dwarf_decode_lines): Create symtabs for included files.
9905
        (new_symbol): Set SYMBOL_SYMTAB.
9906
        * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9907
        (search_symbols): Likewise.
9908
        * symtab.h (struct symbol): Add symtab member.
9909
        (SYMBOL_SYMTAB): Define.
9910
 
9911
2007-01-20  Daniel Jacobowitz  
9912
 
9913
        * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9914
 
9915
2007-01-20  Daniel Jacobowitz  
9916
 
9917
        * arch-utils.c (show_endian): Correct reversed condition.
9918
 
9919
2007-01-19  Jan Kratochvil  
9920
 
9921
        * MAINTAINERS (Write After Approval): Add myself.
9922
 
9923
2007-01-16  Daniel Jacobowitz  
9924
            Vladimir Prus  
9925
 
9926
        Fix 'selected frame' varobjs.
9927
        * varobj.c (struct varobj): Remove the error field.
9928
        (varobj_set_value): Don't check var->error.
9929
        (install_new_value): Don't set var->error.
9930
        (varobj_update): Always pass the new value
9931
        of the root via install_new_value.
9932
        (create_child): Don't set error field.
9933
        (new_variable): Likewise.
9934
        (c_value_of_root): Always reevaluate the value
9935
        of selected frame varobjs in the selected frame.
9936
        Don't call reinit_frame_cache.
9937
 
9938
2007-01-15  Joel Brobecker  
9939
 
9940
        * source.c (_initialize_source): Improve the help text of
9941
        the substitute-path commands.
9942
 
9943
2007-01-14  Mark Kettenis  
9944
 
9945
        * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9946
        (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9947
        (frv_skip_prologue): Remove prototypes.
9948
        (frv_adjust_breakpoint_address): Renamed from
9949
        frv_gdbarch_adjust_breakpoint_address.
9950
        (frv_gdbarch_init): Adjust.
9951
 
9952
2007-01-13  Mark Kettenis  
9953
 
9954
        * gdbarch.sh (deprecated_extract_return_value)
9955
        (deprecated_store_return_value): Remove.
9956
        (extract_return_value, store_return_value): Remove default values.
9957
        * gdbarch.c, gdbarch.h: Regenerate.
9958
        * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9959
        (legacy_store_return_value): Remove.
9960
        * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9961
        Remove.
9962
 
9963
        * mi/mi-main.c: Remove obsolete comment.
9964
 
9965
        * regcache.c, regcache.h (deprecated_register_bytes)
9966
        (deprecated_read_register_bytes)
9967
        (deprecated_write_register_bytes): Remove.
9968
 
9969
        * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9970
        Don't forget to move destination pointer.
9971
 
9972
2007-01-01  Mark Kettenis  
9973
 
9974
        * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9975
 
9976
2007-01-11  Ulrich Weigand  
9977
 
9978
        * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9979
        past entry function with recent newlib.
9980
 
9981
2007-01-11  Vladimir Prus  
9982
 
9983
        * gdb.texinfo (GDB/MI Variable Objects): Improve the
9984
        introduction.  Specify -var-update more exactly.
9985
 
9986
2007-01-11  Daniel Jacobowitz  
9987
 
9988
        * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9989
 
9990
2007-01-10  Jim Blandy  
9991
 
9992
        * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9993
        the Global Maintainers' invitation to be a global maintainer.
9994
 
9995
2007-01-10  Daniel Jacobowitz  
9996
 
9997
        * infrun.c (singlestep_pc): New variable.
9998
        (resume): Set singlestep_pc.
9999
        (context_switch): Add a debugging message.  Flush the frame cache.
10000
        (handle_inferior_event): Add debugging messages.  Handle thread
10001
        hops when a software single step has completed.  Let context_switch
10002
        handle flushing the frame cache.
10003
 
10004
2007-01-09  Daniel Jacobowitz  
10005
 
10006
        * NEWS: Mention target descriptions, "set tdesc filename",
10007
        "unset tdesc filename", "show tdesc filename", and
10008
        qXfer:features:read.
10009
        * arch-utils.c (choose_architecture_for_target): New function.
10010
        (gdbarch_info_fill): Call it.
10011
        * target-descriptions.c (struct property): Make members non-const.
10012
        (struct target_desc): Add arch member.
10013
        (target_description_filename): New variable.
10014
        (target_find_description): Try via XML first.
10015
        (tdesc_architecture): New.
10016
        (free_target_description, make_cleanup_free_target_description): New.
10017
        (set_tdesc_property): Call xstrdup.
10018
        (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
10019
        (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
10020
        (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
10021
        (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
10022
        * target-descriptions.h (tdesc_architecture)
10023
        (make_cleanup_free_target_description, set_tdesc_architecture): New
10024
        prototypes.
10025
        * Makefile.in (SFILES): Add xml-tdesc.c.
10026
        (COMMON_OBS): Add xml-tdesc.o.
10027
        (target-descriptions.o): Update.
10028
        (xml-tdesc.o): New rule.
10029
        * xml-tdesc.c, xml-tdesc.h: New files.
10030
        * remote.c (PACKET_qXfer_features): New enum.
10031
        (remote_protocol_features): Add qXfer:features:read.
10032
        (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
10033
        (_initialize_remote): Register qXfer:features:read.
10034
        * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
10035
        * features/gdb-target.dtd: New file.
10036
 
10037
2007-01-09  Daniel Jacobowitz  
10038
 
10039
        * copyright.sh: Clarify error.
10040
 
10041
2007-01-09  Jan Kratochvil  
10042
 
10043
        * symtab.c (matching_bfd_sections): Fix VMA matching for
10044
        prelinked objects.
10045
 
10046
2007-01-09  Jan Kratochvil  
10047
 
10048
        * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
10049
        nested symbols.
10050
 
10051
2007-01-09  Daniel Jacobowitz  
10052
 
10053
        Updated copyright notices for most files.
10054
 
10055
2007-01-09  Daniel Jacobowitz  
10056
 
10057
        * copyright.sh (prunes): Add step-line.inp and step-line.c.
10058
 
10059
2007-01-09  Daniel Jacobowitz  
10060
 
10061
        * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
10062
        exec_prefix.
10063
        (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
10064
        '${prefix}'.
10065
        * configure, config.in: Regenerate.
10066
        * defs.h (debug_file_directory): Declare.
10067
        * main.c (captured_main): Canonicalize gdb_sysroot.  Assume
10068
        TARGET_SYSTEM_ROOT is defined.  Initialize debug_file_directory and
10069
        relocate it if DEBUGDIR_RELOCATABLE.
10070
        * symfile.c (debug_file_directory): Make non-static.
10071
        (find_separate_debug_file): Look for debug info for SYSROOT/PATH
10072
        in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
10073
        (_initialize_symfile): Don't initialize debug_file_directory here.
10074
 
10075
2007-01-09  Jim Blandy  
10076
 
10077
        * score-tdep.c (score_push_dummy_call): Don't mix declarations and
10078
        statements.
10079
 
10080
2007-01-09  Daniel Jacobowitz  
10081
 
10082
        * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
10083
        frame_unwind_register to recurse.
10084
        * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
10085
        (alpha_heuristic_frame_prev_register): Likewise.
10086
        * h8300-tdep.c (h8300_frame_prev_register): Likewise.
10087
        * m32c-tdep.c (m32c_prev_register): Likewise.
10088
        * frame.c (frame_register_unwind_location): Remove FIXME.
10089
 
10090
2007-01-09  Daniel Jacobowitz  
10091
            Eli Zaretskii  
10092
 
10093
        * copyright.sh: New file.
10094
 
10095
2007-01-09  Daniel Jacobowitz  
10096
 
10097
        * configure.ac: Check for XML_StopParser.
10098
        * xml-support.c (gdb_xml_body_text): Check for an error.
10099
        (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
10100
        (gdb_xml_end_element_wrapper): Likewise.
10101
        * config.in, configure: Regenerated.
10102
 
10103
2007-01-08  Daniel Jacobowitz  
10104
 
10105
        * varobj.c (install_new_value): Always update print_value.
10106
        (value_get_print_value): Immediately return NULL for missing
10107
        values.
10108
 
10109
2007-01-08  Jim Blandy  
10110
 
10111
        * configure.ac: Tighten pattern for extracting value of
10112
        DEPRECATED_TM_FILE from the target makefile fragment.
10113
        * configure: Regenerated.
10114
 
10115
2007-01-08  Daniel Jacobowitz  
10116
 
10117
        * linux-nat.c (struct simple_pid_list): Add status.
10118
        (add_to_pid_list): Record the PID's status.
10119
        (linux_record_stopped_pid): Likewise.  Make static.
10120
        (pull_pid_from_list): Return the saved status.
10121
        (linux_nat_handle_extended): Deleted.
10122
        (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
10123
        Make static.  Handle non-SIGSTOP for a new thread's first signal.
10124
        (flush_callback): Handle unexpected pending signals.
10125
        (linux_nat_wait): Update calls to changed functions.
10126
        * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
10127
        Remove prototypes for newly static functions.
10128
 
10129
2007-01-08  Ulrich Weigand  
10130
 
10131
        * gdbarch.sh (value_from_register): New gdbarch function.
10132
        * gdbarch.c, gdbarch.h: Regenerate.
10133
        * findvar.c (default_value_from_register): New function.
10134
        (value_from_register): Use gdbarch_value_from_register.
10135
        * value.h (default_value_from_register): Declare.
10136
        * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
10137
        spu_value_to_register): Remove.
10138
        (spu_value_from_register): New function.
10139
        (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10140
        set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10141
        Call set_gdbarch_value_from_register.
10142
        * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
10143
        s390_value_to_register): Remove.
10144
        (s390_value_from_register): New function.
10145
        (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10146
        set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10147
        Call set_gdbarch_value_from_register.
10148
 
10149
2007-01-08  Daniel Jacobowitz  
10150
 
10151
        * NEWS: Add "set sysroot" and "show sysroot".
10152
        * solib.c (solib_absolute_prefix): Delete.  Replace
10153
        all uses with gdb_sysroot.
10154
        (_initialize_solib): Add "set sysroot" and "show sysroot".
10155
        Make "solib-absolute-prefix" an alias to it.
10156
 
10157
2007-01-08  Ulrich Weigand  
10158
 
10159
        * frame.c (get_frame_register_bytes): New function.
10160
        (put_frame_register_bytes): Likewise.
10161
        * frame.h (get_frame_register_bytes): Declare.
10162
        (put_frame_register_bytes): Likewise.
10163
        * findvar.c (value_from_register): Always construct lval_register
10164
        values.  Use get_frame_register_bytes.
10165
        * valops.c (value_assign): Use get_frame_register_bytes and
10166
        put_frame_register_bytes.
10167
 
10168
2007-01-08  Jim Blandy  
10169
 
10170
        * MAINTAINERS: Update Stan Shebs' email address.
10171
 
10172
2007-01-07  Joel Brobecker  
10173
 
10174
        * ada-lang.c (is_known_support_routine): Improve the implementation.
10175
 
10176
2007-01-06  Joel Brobecker  
10177
 
10178
        * ada-lang.c: Add include of source.h.
10179
        (is_known_support_routine): Improve the check verifying that the file
10180
        associated to this frame exists.
10181
        * Makefile.in (ada-lang.o): Add dependency on source.h.
10182
 
10183
2007-01-07  Jim Blandy  
10184
 
10185
        * ax-general.c (ax_const_l): Select proper opcode for the given
10186
        value.
10187
 
10188
2007-01-05  Vladimir Prus  
10189
 
10190
        * varobj.c (c_value_of_root): Don't select frame if variable
10191
        object is out of scope.
10192
 
10193
2007-01-05  Nick Roberts  
10194
 
10195
        * varobj.c (struct varobj): New member print_value.
10196
        (install_new_value): Compare last printed value with current one
10197
        instead of contents.
10198
        (new_variable): Initialize var->print_value to NULL.
10199
        (free_variable): Free var->print_value.
10200
        (value_get_print_value): New function derived from
10201
        c_value_of_variable.
10202
        (c_value_of_variable): Use value_get_print_value.
10203
 
10204
2007-01-05  Joel Brobecker  
10205
 
10206
        * i386-tdep.c (i386_analyze_stack_align): Add comment.
10207
 
10208
2007-01-05  Joel Brobecker  
10209
 
10210
        * NEWS: Add entries for new catch commands.
10211
 
10212
2007-01-05  Joel Brobecker  
10213
 
10214
        * dwarf2read.c (partial_die_info): Add field has_byte_size.
10215
        (add_partial_symbol): Correct identification of external references.
10216
        (process_structure_scope): Likewise.
10217
        (read_partial_die): Handle DW_AT_byte_size attribute.
10218
 
10219
2007-01-05  Daniel Jacobowitz  
10220
 
10221
        * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
10222
 
10223
2007-01-05  Nick Roberts  
10224
 
10225
        * varobj.c (get_type_deref): Fix variable objects for references to
10226
        pointers.
10227
 
10228
2007-01-04  Daniel Jacobowitz  
10229
 
10230
        * symtab.c (find_pc_sect_psymtab): Add comments.  Handle psymtabs
10231
        with no symbols.
10232
 
10233
2007-01-04  Daniel Jacobowitz  
10234
 
10235
        * memory-map.c (struct_memory_map_parsing_data): Remove most
10236
        members.  Make property_name an array.
10237
        (free_memory_map_parsing_data, memory_map_start_element)
10238
        (memory_map_end_element, memory_map_character_data): Delete.
10239
        (memory_map_start_memory, memory_map_end_memory)
10240
        (memory_map_start_property, memory_map_end_property): New functions.
10241
        (property_attributes, memory_children, memory_type_enum)
10242
        (memory_attributes, memory_map_children, memory_map_elements): New.
10243
        (parse_memory_map): Rewrite.
10244
        * xml-support.c (debug_xml): New.
10245
        (xml_get_required_attribute, xml_get_integer_attribute)
10246
        (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10247
        Delete.
10248
        (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10249
        (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10250
        (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10251
        (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10252
        (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10253
        (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10254
        (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10255
        New.
10256
        * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10257
        (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10258
        (enum gdb_xml_element_flag, struct gdb_xml_element)
10259
        (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10260
        (struct gdb_xml_enum): New.
10261
        (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10262
        (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10263
        (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10264
        (xml_get_required_attribute, xml_get_integer_attribute)
10265
        (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10266
        * Makefile.in (xml_support_h, xml-support.o): Update.
10267
 
10268
2007-01-04  Daniel Jacobowitz  
10269
 
10270
        * Makefile.in (eval.o): Update dependencies.
10271
        * eval.c: Include "ui-out.h" and "exceptions.h".
10272
        (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10273
        Use value_zero if an error occurs when avoiding side effects.
10274
        * varobj.c (c_value_of_root): Initialize new_val.
10275
 
10276
2007-01-04  Daniel Jacobowitz  
10277
 
10278
        * varobj.c (varobj_list_children): Stop if the number of children is
10279
        unknown.
10280
        (c_number_of_children):
10281
 
10282
2007-01-04  Mark Kettenis  
10283
 
10284
        * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10285
        (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10286
        (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10287
        (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10288
        sizeof, instead of hardcoded constants.
10289
 
10290
2007-01-04  Daniel Jacobowitz  
10291
 
10292
        * CONTRIBUTE: Use sourceware.org.
10293
 
10294
2007-01-04  Daniel Jacobowitz  
10295
 
10296
        * buildsym.c (start_subfile): Handle producer.
10297
        (record_producer): New function.
10298
        * buildsym.h (struct subfile): Include producer.
10299
        (record_producer): New prototype.
10300
        * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10301
        (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10302
        armcc_cfa_offsets_reversed.
10303
        (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10304
        (dwarf2_frame_find_quirks): New function.
10305
        (dwarf2_frame_cache): Call it.  Handle armcc_cfa_offsets_reversed.
10306
        (decode_frame_entry_1): Record the CIE version.  Record the
10307
        augmentation.  Skip armcc augmentations.
10308
        * dwarf2read.c (read_file_scope): Save the producer.
10309
        * symtab.h (struct symtab): Rename unused version member to
10310
        producer.
10311
 
10312
2007-01-04  Daniel Jacobowitz  
10313
 
10314
        * configure.ac (build_warnings): Use -Wall and
10315
        -Wdeclaration-after-statement.
10316
        * configure: Regenerated.
10317
 
10318
2007-01-04  Vladimir Prus  
10319
 
10320
        Simplify access to variours properties of child
10321
        variable objects in C.
10322
        * varobj.c (value_struct_element_index): New function.
10323
        (c_describe_child): New function.
10324
        (c_name_of_child, c_value_of_child)
10325
        (c_type_of_child): Rewrite to use c_describe_child.
10326
 
10327
2007-01-04  Vladimir Prus  
10328
 
10329
        gdb/
10330
        * varobj.c: Include "vec.h".
10331
        (varobj_p): New typedef, declare vector of those.
10332
        (struct varobj): Use vector for the 'children' member.
10333
        (child_exists): Remove.
10334
        (save_child_in_parent): Remove.
10335
        (remove_child_from_parent): Remove.
10336
        (struct varobj_child): Remove.
10337
        (struct vstack): Remove.
10338
        (vpush, vpop): Remove.
10339
        (varobj_list_children): Adjust to work work vector.
10340
        (varobj_update): Likewise. Use vectors for
10341
        working stack and result.
10342
        (delete_variable_1): Likewise.
10343
        * Makefile.in (varobj.o): Update dependencies.
10344
 
10345
2007-01-04  Vladimir Prus  
10346
 
10347
        Port from Apple's version.
10348
        gdb/
10349
        * varobj.c (type_changeable): Rename to...
10350
        (varobj_value_is_changeable_p): ...this. Adjust all callers.
10351
        (is_root_p): New function. Use it everywhere.
10352
 
10353
2007-01-04  Jim Blandy  
10354
 
10355
        * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10356
        then plain 'fixup'.
10357
 
10358
2007-01-04  Joel Brobecker  
10359
 
10360
        * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10361
 
10362
2007-01-04  Joel Brobecker  
10363
 
10364
        * hpread.c (hpread_type_lookup): Fix compilation failure.
10365
 
10366
2007-01-04  Qinwei  
10367
 
10368
        * NEWS: New port to S+core.
10369
        * MAINTAINERS (Write After Approval, Responsible Maintainers):
10370
        Add myself.
10371
 
10372
        * Makefile.in: Add dependencies for S+core files.
10373
        * configure.tgt (score*, score-*-*): Add S+core target.
10374
        * config/score/embed.mt: New file.
10375
        * score-tdep.c: New file.
10376
        * score-tdep.h: New file.
10377
 
10378
2007-01-04  Joel Brobecker  
10379
 
10380
        * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10381
        the appropriate type rather than a bogus void type.
10382
 
10383
2007-01-04  Joel Brobecker  
10384
 
10385
        * ada-lang.h (ada_find_printable_frame): Remove.
10386
        (ada_exception_catchpoint_p, ada_decode_exception_location)
10387
        (ada_decode_assert_location): Add declaration.
10388
        * ada-lang.c: Add include of annotate.h and valprint.h.
10389
        (exception_catchpoint_kind): New enum.
10390
        (function_name_from_pc, is_known_support_routine)
10391
        (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10392
        (ada_exception_name_addr_1, ada_exception_name_addr)
10393
        (print_it_exception, print_one_exception, print_mention_exception)
10394
        (print_it_catch_exception, print_one_catch_exception)
10395
        (print_mention_catch_exception, catch_exception_breakpoint_ops)
10396
        (print_it_catch_exception_unhandled)
10397
        (print_one_catch_exception_unhandled)
10398
        (print_mention_catch_exception_unhandled, print_it_catch_assert)
10399
        (print_one_catch_assert, print_mention_catch_assert)
10400
        (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10401
        (ada_get_next_arg, catch_ada_exception_command_split)
10402
        (ada_exception_sym_name, ada_exception_sym_name)
10403
        (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10404
        (ada_parse_catchpoint_condition, ada_exception_sal)
10405
        (ada_decode_exception_location)
10406
        (ada_decode_assert_location): New function.
10407
        (catch_exception_unhandled_breakpoint_ops): New global variable.
10408
        (catch_assert_breakpoint_ops): New global variable.
10409
        * breakpoint.c: Add include of ada-lang.h.
10410
        (print_one_breakpoint): Do not print the condition for Ada
10411
        exception catchpoints.
10412
        (create_ada_exception_breakpoint): New function.
10413
        (catch_ada_exception_command, catch_assert_command): New function.
10414
        (catch_command_1): Add support for the new "catch exception" and
10415
        "catch assert" commands.
10416
        (_initialize_breakpoint): Add help description for the new catch
10417
        commands.
10418
        * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10419
        valprint.h.
10420
        (breakpoint.o): Add dependency on ada-lang.h.
10421
 
10422
2007-01-03  Pedro Alves  
10423
 
10424
        * coffread.c (cs_to_section): If bfd_section is found, always
10425
        return its section index.
10426
        (coff_symtab_read): Determine the minimal_symbol_type using the
10427
        bfd_section flags.
10428
 
10429
2007-01-03  Jan Kratochvil  
10430
            Daniel Jacobowitz  
10431
 
10432
        * Makefile.in (top.o): Update.
10433
        * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10434
        (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10435
        (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10436
        New.
10437
        (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10438
 
10439
2007-01-03  Mark Kettenis  
10440
 
10441
        * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10442
        (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10443
 
10444
2007-01-03  Daniel Jacobowitz  
10445
 
10446
        * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10447
        * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10448
        * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10449
        greater than or equal to zero.
10450
        * m2-typeprint.c (m2_array): Likewise.
10451
        * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10452
        * gdbtypes.c (copy_type_recursive): Correct == typo.
10453
        * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10454
        * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10455
        greater than zero.
10456
        * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10457
        (default_macro_scope): Remove unused variable.
10458
        * prologue-value.h (pv_area_find_reg): Don't name an argument
10459
        "register".
10460
        * remote-fileio.c (remote_fio_func_map): Add missing braces.
10461
        * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10462
        type.
10463
        (cleanup_sigint_signal_handler): Remove casts.
10464
        * valprint.c (val_print): Use a volatile local for the modified
10465
        argument.
10466
        * varobj.c (languages): Remove extra array dimension.
10467
        (varobj_create): Correct access to languages array.
10468
        * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10469
        missing braces.
10470
        * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10471
        * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10472
        * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10473
        * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10474
        (mi_cmd_data_write_memory): Likewise.
10475
        * signals/signals.c (target_signal_to_string): Cast to int before
10476
        comparing.
10477
        * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10478
        Update all callers.
10479
 
10480
2007-01-03  Daniel Jacobowitz  
10481
 
10482
        * NEWS: Mention pointer to member improvements.
10483
        * Makefile.in (gnu-v3-abi.o): Delete special rule.
10484
        (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10485
        * ada-valprint.c (ada_print_scalar): Update for new type codes.
10486
        * c-typeprint.c (c_print_type): Update for new type codes.
10487
        (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10488
        (c_type_print_base): Likewise.
10489
        (c_type_print_args): Rewrite.
10490
        * c-valprint.c (c_val_print): Update for new type codes.  Remove
10491
        support for references to members.  Treat methods like functions.
10492
        * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10493
        (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10494
        * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10495
        (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10496
        (struct cp_abi_ops): Add corresponding members.
10497
        * cp-valprint.c (cp_print_class_method): Delete.
10498
        (cp_find_class_member): New function.
10499
        (cp_print_class_member): Use it.  Simplify support for bogus
10500
        member pointers.
10501
        * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10502
        lookup_methodptr_type.
10503
        (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10504
        * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10505
        OP_SCOPE.  Update call to value_aggregate_elt.  Rewrite member
10506
        pointer support.
10507
        (evaluate_subexp_for_address): Handle OP_SCOPE explicitly.  Handle
10508
        references returned by user defined operators.
10509
        * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10510
        (f_type_print_varspec_suffix): Remove support for member pointers.
10511
        * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10512
        and adjusted.
10513
        (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10514
        (lookup_methodptr_type): New.
10515
        (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10516
        (recursive_dump_type): Update for new types.
10517
        * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10518
        TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10519
        (lookup_memberptr_type, lookup_methodptr_type)
10520
        (smash_to_memberptr_type): New prototypes.
10521
        (smash_to_method_type): Formatting fix.
10522
        (lookup_member_type, smash_to_member_type): Delete prototypes.
10523
        * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10524
        Do not rely on debug information for the vptr or the method's
10525
        enclosing type.  Handle function descriptors for IA64.
10526
        (gnuv3_virtual_fn_field): Rewrite using the new functions.
10527
        (gnuv3_find_method_in, gnuv3_print_method_ptr)
10528
        (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10529
        (gnuv3_method_ptr_to_value): New.
10530
        (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10531
        * hpread.c (hpread_type_lookup): Update for new types.
10532
        * infcall.c (value_arg_coerce): Likewise.
10533
        * m2-typeprint.c (m2_print_type): Remove explicit support
10534
        for member pointers.
10535
        * m2-valprint.c (m2_val_print): Likewise.
10536
        * p-typeprint.c (pascal_type_print_varspec_prefix)
10537
        (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10538
        * p-valprint.c (pascal_val_print): Likewise.
10539
        (pascal_object_print_class_method, pascal_object_print_class_member):
10540
        Delete.
10541
        * p-lang.h (pascal_object_print_class_method)
10542
        (pascal_object_print_class_member): Delete prototypes.
10543
        * stabsread.c (read_type): Update for new types.
10544
        * typeprint.c (print_type_scalar): Likewise.
10545
        * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10546
        (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10547
        argument.  Construct a pointer to member if the address of a
10548
        function or data member is requested.
10549
        (value_cast_pointers): Don't modify the input value.
10550
        (value_cast): Adjust pointer to member handling for new types.
10551
        Allow null pointer to member constants.  Don't modify the input
10552
        value.
10553
        (value_ind): Remove pointer to member check.  Handle function
10554
        descriptors for function pointers.
10555
        (value_struct_elt, value_find_oload_method_list, check_field):
10556
        Remove pointer to member checks.
10557
        * value.c (unpack_long): Allow pointers to data members.
10558
        (value_from_longest): Allow member pointers.
10559
        * value.h (value_aggregate_elt): Add want_address.
10560
        * varobj.c (c_variable_editable): Remove check for members.
10561
        * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10562
        * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10563
        in virtual tables.
10564
        (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10565
        * c-lang.h (cp_print_class_method): Delete prototype.
10566
        * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10567
        * mips-tdep.c (mips_gdbarch_init): Likewise.
10568
        * gdbarch.c, gdbarch.h: Regenerated.
10569
 
10570
2007-01-01  Mark Kettenis  
10571
 
10572
        * rs6000-tdep.c (rs6000_use_struct_convention)
10573
        (rs6000_extract_return_value, rs6000_store_return_value)
10574
        (rs6000_extract_struct_value_address): Remove.
10575
        (rs6000_return_value): New function.
10576
        (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10577
        store_return_value, deprecated_extract_struct_value_address and
10578
        deprecated_use_struct_convention.  Use rs6000_return_value
10579
        instead.
10580
 
10581
2007-01-02  Nick Roberts  
10582
 
10583
        * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10584
        -display-disable, -display-enable, -display-insert and
10585
        -display-list.
10586
 
10587
2007-01-01  Joel Brobecker  
10588
 
10589
        * breakpoint.c (remove_breakpoint): Remove dead code.
10590
 
10591
2007-01-01  Nick Roberts  
10592
 
10593
        * varobj.c: Include block.h.
10594
        (c_value_of_root): Check scope within nested statements.
10595
 
10596
2007-01-01  Mark Kettenis  
10597
 
10598
        * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10599
        regcache_cooked_write_signed instead of
10600
        deprecated_write_register_bytes.
10601
 
10602
2007-01-01  Joel Brobecker  
10603
 
10604
        * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10605
 
10606
2007-01-01  Joel Brobecker  
10607
 
10608
        Followed the Start of New Year Procedure:
10609
        * ChangeLog-2006: New file, containing all the entries for 2006.
10610
        * ChangeLog: Removed all 2006 entries, and changed the reference
10611
        to the previous ChangeLog to point to ChangeLog 2006.
10612
        * top.c (print_gdb_version): Update copyright year.
10613
 
10614
2007-01-01  Mark Kettenis  
10615
 
10616
        * Makefile.in (remote-sds.o): Remove.
10617
        * remote-sds.c: Delete.
10618
 
10619
For older changes see ChangeLog-2006.
10620
 
10621
Local Variables:
10622
mode: change-log
10623
left-margin: 8
10624
fill-column: 74
10625
version-control: never
10626
coding: utf-8
10627
End:

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.