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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [gdb/] [ChangeLog] - Blame information for rev 330

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
2010-09-02  Joel Brobecker  
2
 
3
        * NEWS: Replace "Changes since GDB 7.1" by "Changes in GDB 7.2".
4
 
5
2010-09-02  Joel Brobecker  
6
 
7
        * version.in: Update GDB version number to 7.2.
8
 
9
2010-09-02  Joel Brobecker  
10
 
11
        Back out the following change:
12
        | 2010-06-29  Hui Zhu  
13
        | * record.c (set_record_pic_cmdlist,
14
        | show_record_pic_cmdlist): New variables.
15
        | (set_record_pic_command,
16
        | show_record_pic_command): New functions.
17
        | (record_pic_function, record_pic_line, record_pic_enum,
18
        | set_record_pic_type, record_pic_hide_nofunction,
19
        | record_pic_hide_nosource, record_pic_hide_same): New variables.
20
        | (record_pic_fputs): New function.
21
        | (function_list, node_list, edge_list): New struct.
22
        | (function_list, node_list, edge_list): New variables.
23
        | (record_pic_cleanups, record_pic_node,
24
        | record_pic_edge, cmd_record_pic): New functions.
25
        | (_initialize_record): Add new commands for record pic.
26
 
27
2010-09-01  Marc Khouzam  
28
 
29
        * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
30
        as a feature reported by -list-target-features.
31
 
32
2010-08-31  Michael Snyder  
33
 
34
        * infrun.c (set_exec_direction_func): Error out if target does not
35
        support reverse execution.
36
 
37
2010-08-30  Yao Qi  
38
 
39
        * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
40
        (arm_linux_syscall_next_pc): New.
41
        (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
42
        (arm_linux_init_abi): Initialize syscall_next_pc.
43
        * arm-tdep.c (thumb_get_next_pc_raw):  Get next pc of SWI in Thumb mode.
44
        (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
45
        * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
46
        Declare arm_frame_is_thumb.
47
 
48
2010-08-27  Doug Evans  
49
 
50
        * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
51
        the order they're defined in.  munmap .debug_types buffer.
52
 
53
2010-08-19  Stan Shebs  
54
 
55
        * NEWS: Mention some additional changes.
56
 
57
2010-08-19  Tom Tromey  
58
 
59
        * Makefile.in (install-python): Add DESTDIR.
60
 
61
2010-08-19  Doug Evans  
62
 
63
        PR exp/11926
64
        * c-exp.y (parse_number): Handle 0 return from sscanf.
65
 
66
2010-08-19  Joel Brobecker  
67
 
68
        * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
69
        the arguments in the correct order.
70
        * symtab.c (maybe_add_partial_symtab_filename): Declare
71
        the arguments in the correct order.
72
 
73
2010-08-18  Tom Tromey  
74
 
75
        PR python/11900:
76
        * configure: Rebuild.
77
        * configure.ac: Add install-python to CONFIG_INSTALL.
78
        * Makefile.in (install-python): New.
79
 
80
2010-08-14  Ulrich Weigand  
81
 
82
        * arm-tdep.c (arm_push_dummy_call): Handle pointers to
83
        typedef'ed function types correctly.
84
 
85
2010-08-11  Brad Roberts  
86
 
87
        * d-lang.c (extract_identifiers): Handle multiple digits.
88
 
89
2010-08-09  Jan Kratochvil  
90
 
91
        * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
92
        (make_cleanup_restore_page_info)
93
        (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
94
        * gdbcmd.h (execute_command_to_string): New declaration.
95
        * python/python.c (struct restore_ui_file_closure, restore_ui_file)
96
        (make_cleanup_restore_ui_file): Move to utils.c
97
        (execute_gdb_command) : Move ...
98
        * top.c (execute_command_to_string): ... here.  Call
99
        set_batch_flag_and_make_cleanup_restore_page_info.
100
        * utils.c (make_cleanup_restore_integer): New source file blank line.
101
        (make_cleanup_restore_uinteger): New.
102
        (struct restore_ui_file_closure, do_restore_ui_file)
103
        (make_cleanup_restore_ui_file): Move here from python/python.c.
104
        (init_page_info) 
105
        (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
106
        (set_batch_flag_and_make_cleanup_restore_page_info): New.
107
 
108
2010-08-06  Maciej W. Rozycki  
109
 
110
        * thread.c (add_thread_silent): Use null_ptid instead of
111
        minus_one_ptid while getting rid of stale inferior_ptid.
112
 
113
2010-08-05  Marc Khouzam  
114
 
115
        * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
116
        argument.
117
 
118
2010-07-31  Renquan Cheng  
119
 
120
        * MAINTAINERS: Add myself for write after approval privileges.
121
 
122
2010-07-30  Tom Tromey  
123
 
124
        * configure: Rebuild.
125
        * configure.ac: Add missing case for Python 2.7.
126
 
127
2010-07-29  Pedro Alves  
128
 
129
        * PROBLEMS: Remove mention of all problems.
130
 
131
2010-07-28  Oleg Nesterov  
132
 
133
        * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
134
 
135
2010-07-28  Tom Tromey  
136
 
137
        * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
138
 
139
2010-07-28  Joel Brobecker  
140
 
141
        * breakpoint.c (breakpoint_re_set_one): Move call to set_language
142
        down, just before the block that parse the breakpoint addr_string.
143
 
144
2010-07-28  CHENG Renquan  
145
 
146
        * cli/cli-cmds.c (disassemble_command): Add support of disassemble
147
        "start,+length" form of arguments.
148
        * NEWS: Add "Changed commands" (disassemble) section for "Changes
149
        since GDB 7.1"; and merge two separated paragraphs of disassemble
150
        description in "Changes in GDB 7.0".
151
 
152
2010-07-27  Jan Kratochvil  
153
 
154
        * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
155
        * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
156
        (fputs_maybe_filtered): Do not do filtering also on
157
        ! INPUT_FROM_TERMINAL_P.
158
 
159
2010-07-27  Thiago Jung Bauermann  
160
 
161
        * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
162
        VSX registers contents.
163
 
164
2010-07-27  Tom Tromey  
165
 
166
        * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
167
        TLS with DW_OP_const4u or DW_OP_const8u.
168
 
169
2010-07-22  Pedro Alves  
170
 
171
        * NEWS: Mention target reported shared libraries support by
172
        default.
173
 
174
2010-07-21  Ozkan Sezer  
175
 
176
        * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
177
        long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
178
        and host_address_to_string() and %s for pointers.
179
        (debug_to_remove_breakpoint): Likewise.
180
        (debug_to_region_ok_for_hw_watchpoint): Likewise.
181
        (debug_to_can_accel_watchpoint_condition): Likewise.
182
        (debug_to_stopped_data_address): Likewise.
183
        (debug_to_watchpoint_addr_within_range): Likewise.
184
        (debug_to_insert_hw_breakpoint): Likewise.
185
        (debug_to_remove_hw_breakpoint): Likewise.
186
        (debug_to_insert_watchpoint): Likewise.
187
        (debug_to_remove_watchpoint): Likewise.
188
 
189
2010-07-21  Pedro Alves  
190
 
191
        PR symtab/11827
192
 
193
        Revert:
194
        2010-05-21  Pierre Muller  
195
        * dwarf2read.c (process_die): Also allow DW_TAG_const_type
196
        and DW_TAG_volatile_type.
197
        (new_symbol): Likewise.
198
 
199
2010-07-20  Jan Kratochvil  
200
 
201
        * symfile.c (find_separate_debug_file_by_debuglink): Remove
202
        a gdb_assert call, new comment.
203
 
204
2010-07-16  Thiago Jung Bauermann  
205
 
206
        * NEWS: Mention support for the new ptrace interface and hardware
207
        accelerated watchpoint conditions on powerpc-linux.
208
 
209
2010-07-13  Emmanuel Thomé  
210
 
211
        * c-valprint.c (c_val_print): Add embedded_offset to address in
212
        call to val_print_array_elements.
213
 
214
2010-07-13  Tom Tromey  
215
 
216
        * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
217
        * dwarf2loc.c (find_location_expression): Use
218
        dwarf2_per_cu_text_offset.
219
        (dwarf2_evaluate_loc_desc): Likewise.
220
        (dwarf2_loc_desc_needs_frame): Likewise.
221
        (compile_dwarf_to_ax): Likewise.
222
        (loclist_describe_location): Likewise.
223
        * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
224
        (dwarf2_per_cu_objfile): Update comment.
225
 
226
2010-07-09  Tom Tromey  
227
 
228
        * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
229
        'hint' if it is NULL.
230
 
231
2010-07-09  Hui Zhu  
232
 
233
        * source.c (print_source_lines_base): Add check for noprint.
234
 
235
2010-07-07  Joel Brobecker  
236
 
237
        * version.in: Set version to 7.1.90.20100707-cvs.
238
 
239
2010-07-07  Joel Brobecker  
240
 
241
        GDB 7.1.90 released.
242
 
243
2010-07-07  Joel Brobecker  
244
 
245
        * version.in: Update GDB version number to 7.1.90.
246
 
247
2010-07-07  Tom Tromey  
248
 
249
        * dwarf2read.c (dwarf2_const_value) : Create a
250
        LOC_COMPUTED symbol.
251
        * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
252
        (dwarf2_loc_desc_needs_frame): Likewise.
253
        (compile_dwarf_to_ax) : Use offset.
254
        * dwarf2expr.h (struct dwarf_expr_context) : New field.
255
        * dwarf2expr.c (execute_stack_op) : Use offset.
256
        * dwarf2-frame.c (execute_stack_op): Set 'offset' field.  Add
257
        'offset' argument.
258
        (struct dwarf2_frame_cache) : New field.
259
        (dwarf2_frame_cache): Set new field.
260
        (dwarf2_frame_prev_register): Update.
261
        (dwarf2_frame_sniffer): Update.
262
        (dwarf2_frame_base_sniffer): Update.
263
        (dwarf2_frame_find_fde): Add 'out_offset' argument.
264
 
265
2010-07-07  Joel Brobecker  
266
 
267
        * configure.ac: Disable -Werror by default.
268
        * configure: Regenerate.
269
 
270
2010-07-07  Joel Brobecker  
271
 
272
        GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
273
        * version.in: Bump version to 7.1.90.20100707-cvs.
274
 
275
2010-07-07  Sergio Durigan Junior  
276
            Thiago Jung Bauermann  
277
 
278
        Support for hw accelerated condition watchpoints in booke powerpc.
279
 
280
        * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
281
        and move to eval.c.  Change callers.
282
        (insert_bp_location): Pass watchpoint condition in
283
        target_insert_watchpoint.
284
        (remove_breakpoint_1) Pass watchpoint condition in
285
        target_remove_watchpoint.
286
        (watchpoint_locations_match): Call
287
        target_can_accel_watchpoint_condition.
288
        * eval.c: Include wrapper.h.
289
        (fetch_subexp_value): Moved from breakpoint.c.
290
        * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
291
        Formatting fix.
292
        (can_use_watchpoint_cond_accel): New function.
293
        (calculate_dvc): Likewise.
294
        (num_memory_accesses): Likewise.
295
        (check_condition): Likewise.
296
        (ppc_linux_can_accel_watchpoint_condition): Likewise
297
        (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
298
        check_condition and calculate_dvc.
299
        (ppc_linux_remove_watchpoint): Likewise.
300
        (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
301
        ppc_linux_can_accel_watchpoint_condition
302
        * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
303
        condition.
304
        (debug_to_remove_watchpoint): Likewise.
305
        (debug_to_can_accel_watchpoint_condition): New function.
306
        (update_current_target): Set to_can_accel_watchpoint_condition.
307
        (setup_target_debug): Set to_can_accel_watchpoint_condition.
308
        * target.h: Add opaque declaration for struct expression.
309
        (struct target_ops) ,
310
        : Add new arguments to pass the watchpoint
311
        : New member.
312
        condition.  Update all callers and implementations.
313
        (target_can_accel_watchpoint_condition): New macro.
314
        * value.c (free_value_chain): New function.
315
        * value.h (fetch_subexp_value): New prototype.
316
        (free_value_chain): Likewise.
317
 
318
2010-07-07  Ulrich Weigand  
319
 
320
        * linux-nat.c (linux_nat_do_thread_registers): Use section size
321
        from gdbarch_core_regset_sections also for .reg if present.
322
 
323
        * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
324
        section size for .reg.
325
        * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
326
        (ppc_linux_vmx_regset_sections): Likewise.
327
        (ppc_linux_fp_regset_sections): Likewise.
328
        (ppc64_linux_vsx_regset_sections): New variable.
329
        (ppc64_linux_vmx_regset_sections): Likewise.
330
        (ppc64_linux_fp_regset_sections): Likewise.
331
        (ppc_linux_init_abi): Install core_regset_section lists appropriate
332
        for current word size.
333
 
334
2010-07-06  Joel Brobecker  
335
 
336
        * server.c (myresume): Make static.
337
 
338
2010-07-06  Tom Tromey  
339
 
340
        * configure, config.in: Rebuild.
341
        * configure.ac (HAVE_LIBPYTHON2_7): New define.
342
        * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
343
 
344
2010-07-06  Andreas Schwab  
345
 
346
        * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
347
        "clear".
348
 
349
2010-07-06  Ken Werner  
350
 
351
        * gdbtypes.h (floatformats_ieee_half): Add declaration.
352
        * gdbtypes.c (floatformats_ieee_half): New variable.
353
        * doublest.c (floatformat_from_length): Set format to
354
        gdbarch_half_format if length matches.
355
        * gdbarch.sh (half_bit): New architecture method.
356
        (half_format): Likewise.
357
        * gdbarch.h: Regenerate.
358
        * gdbarch.c: Likewise.
359
 
360
2010-07-05  Jan Kratochvil  
361
            Joel Brobecker  
362
 
363
        Fix re-run of PIE executable, PR shlibs/11776.
364
        * solib-svr4.c (svr4_relocate_main_executable) : Remove
365
        the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
366
 
367
2010-07-05  Jan Kratochvil  
368
            Joel Brobecker  
369
 
370
        * auxv.c (memory_xfer_auxv): Update attach comment.
371
        * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
372
        svr4_relocate_main_executable.
373
        (svr4_solib_create_inferior_hook): Make the call to
374
        svr4_relocate_main_executable unconditional.
375
 
376
2010-07-05  Jan Kratochvil  
377
            Joel Brobecker  
378
 
379
        * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
380
 
381
2010-07-05  Jan Kratochvil  
382
            Joel Brobecker  
383
 
384
        Fix attaching to PIEs prelinked on the disk after the process was
385
        started.
386
        * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
387
        Verify it against bfd_get_arch_size.  Try to match arbitrary
388
        displacement for the phdrs comparison.
389
 
390
2010-07-02  Tom Tromey  
391
 
392
        PR exp/11780:
393
        * libunwind-frame.c (libunwind_frame_prev_register): Don't set
394
        value as optimized-out.
395
 
396
2010-07-02  Ulrich Weigand  
397
            Thiago Jung Bauermann  
398
 
399
        * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
400
        represent?" question in comment.  Change comment to a proper sentence.
401
 
402
2010-07-02  Ken Werner  
403
 
404
        * c-valprint.c (c_val_print): Fix printing of character vectors.
405
 
406
2010-07-02  Jan Kratochvil  
407
 
408
        * spu-tdep.c (spu_catch_start): Adjust the caller of changed
409
        create_breakpoint prototype.
410
 
411
2010-07-01  Pedro Alves  
412
 
413
        * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
414
        usefulness suggestion of multiple breakpoints at same location.
415
 
416
2010-07-01  Pedro Alves  
417
 
418
        * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
419
 
420
2010-07-01  Pedro Alves  
421
 
422
        * dwarf2loc.c (locexpr_tracepoint_var_ref)
423
        (loclist_tracepoint_var_ref): Handle optimized out values.
424
 
425
2010-07-01  Pedro Alves  
426
 
427
        * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
428
        unnecessary space in string.
429
        * filesystem.c (_initialize_filesystem): Ditto.
430
        * frame.c (_initialize_frame): Ditto.
431
        * infcmd.c (step_once): Ditto.
432
        * infrun.c (_initialize_infrun): Ditto.
433
        * linux-nat.c (linux_child_follow_fork): Ditto.
434
        * maint.c (maintenance_deprecate): Ditto.
435
        * memattr.c (_initialize_mem): Ditto.
436
        * mips-tdep.c (_initialize_mips_tdep): Ditto.
437
        * monitor.c (monitor_open): Ditto.
438
        * procfs.c (procfs_xfer_memory): Ditto.
439
        * reverse.c (bookmarks_info): Ditto.
440
        * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
441
        * stack.c (_initialize_stack): Ditto.
442
        * tracepoint.c (_initialize_tracepoint): Ditto.
443
        * xtensa-tdep.c (xtensa_supply_gregset,
444
        xtensa_regset_from_core_section): Ditto.
445
 
446
2010-07-01  Tom Tromey  
447
 
448
        * value.h (struct lval_funcs) : Rename from
449
        check_all_valid.
450
        * value.c (value_entirely_optimized_out): Invert result.  Update
451
        for new function name.
452
 
453
2010-07-01  Pedro Alves  
454
 
455
        Static tracepoints support.
456
 
457
        * NEWS: Mention new support for static tracepoints.
458
        (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
459
        qXfer:statictrace:read.
460
        (New features in the GDB remote stub, GDBserver): Mention static
461
        tracepoints support using an UST based backend.
462
        (New commands): Mention "info static-tracepoint-markers" and
463
        "strace".
464
        * breakpoint.c (is_marker_spec): New.
465
        (is_tracepoint): Handle static tracepoints.
466
        (validate_commands_for_breakpoint): Static tracepoints can't do
467
        while-stepping.
468
        (static_tracepoints_here): New.
469
        (bpstat_what): Handle static tracepoints.
470
        (print_one_breakpoint_location, allocate_bp_location, mention):
471
        Ditto.
472
        (create_breakpoint_sal): Ditto.
473
        (decode_static_tracepoint_spec): New.
474
        (create_breakpoint): Replace `hardwareflag', and `traceflag' with
475
        `type_wanted'.  Adjust.  Handle static tracepoint marker
476
        locations.
477
        (break_command_1): Adjust.
478
        (update_static_tracepoint): New.
479
        (update_breakpoint_locations): Handle static tracepoints.
480
        (breakpoint_re_set_one): Handle static tracepoint marker
481
        locations.
482
        (disable_command, enable_command): Handle static tracepoints.
483
        (trace_command, ftrace_command): Adjust.
484
        (strace_command): New.
485
        (create_tracepoint_from_upload): Adjust.
486
        (save_breakpoints): Handle static tracepoints.
487
        (_initialize_breakpoint): Install the "strace" command.
488
        * breakpoint.h (enum bptype): New bp_static_tracepoint type.
489
        (struct breakpoint): New fields static_trace_marker_id and
490
        static_trace_marker_id_idx.
491
        (breakpoints_here_p): Declare.
492
        (create_breakpoint): Adjust.
493
        (static_tracepoints_here): Declare.
494
        * remote.c (struct remote_state) : New field.
495
        (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
496
        (remote_static_tracepoint_marker_at): New.
497
        (remote_static_tracepoint_markers_by_strid): New.
498
        (remote_static_tracepoint_feature): New.
499
        (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
500
        (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
501
        (remote_supports_static_tracepoints): New.
502
        (remote_download_tracepoint): Download static tracepoints.
503
        (init_remote_ops): Install remote_static_tracepoint_marker_at and
504
        remote_static_tracepoint_markers_by_strid.
505
        (_initialize_remote): Install set|show remote static-tracepoints,
506
        and set|show remote read-sdata-object commands.
507
        * target.c (update_current_target): Inherit and default
508
        to_static_tracepoint_marker_at, and
509
        to_static_tracepoint_markers_by_strid.
510
        * target.h (static_tracepoint_marker): Forward declare.
511
        (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
512
        (static_tracepoint_marker_p): New typedef.
513
        (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
514
        (struct target_ops): New fields to_static_tracepoint_marker_at and
515
        to_static_tracepoint_markers_by_strid.
516
        (target_static_tracepoint_marker_at)
517
        (target_static_tracepoint_markers_by_strid): New.
518
        * tracepoint.c: Include source.h.
519
        (validate_actionline): Handle $_sdata.
520
        (struct collection_list): New field strace_data.
521
        (add_static_trace_data): New.
522
        (clear_collection_list): Clear strace_data.
523
        (stringify_collection_list): Account for a possible static trace
524
        data collection.
525
        (encode_actions_1): Encode an $_sdata collection.
526
        (parse_tracepoint_definition): Handle static tracepoints.
527
        (parse_static_tracepoint_marker_definition): New.
528
        (release_static_tracepoint_marker): New.
529
        (print_one_static_tracepoint_marker): New.
530
        (info_static_tracepoint_markers_command): New.
531
        (sdata_make_value): New.
532
        (_initialize_tracepoint): Create the $_sdata convenience variable.
533
        Add the "info static-tracepoint-markers" command.
534
        Mention $_sdata in the "collect" command's help output.
535
        * tracepoint.h (struct static_tracepoint_marker): New.
536
        (parse_static_tracepoint_marker_definition)
537
        (release_static_tracepoint_marker): Declare.
538
        * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
539
        * python/py-breakpoint.c (bppy_new): Adjust.
540
 
541
2010-06-30  Joel Brobecker  
542
 
543
        * python/python-internal.h (_XOPEN_SOURCE): Undefine before
544
        including Python.h.
545
 
546
2010-06-29  Doug Evans  
547
 
548
        PR gdb/11702
549
        * dwarf2read.c (dwarf2_add_field): Only create a symbol if
550
        DW_AT_external is present.
551
 
552
        PR gdb/11702
553
        * NEWS: Add entry.
554
        * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
555
        create a symbol for the field and record the value.
556
        (new_symbol): Handle DW_TAG_member.
557
        * gdbtypes.c (field_is_static): Remove FIXME.
558
        * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
559
        only ignore LOC_CONST symbols that are enums.
560
 
561
        * dwarf2read.c: Remove trailing whitespace.
562
 
563
        Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
564
        * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
565
        (struct main_type, field loc): Delete dwarf_block.
566
        (FIELD_DWARF_BLOCK): Delete.
567
        (SET_FIELD_DWARF_BLOCK): Delete.
568
        (TYPE_FIELD_DWARF_BLOCK): Delete.
569
        * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
570
        Update.
571
 
572
2010-06-29  Hui Zhu  
573
 
574
        * record.c (set_record_pic_cmdlist,
575
        show_record_pic_cmdlist): New variables.
576
        (set_record_pic_command,
577
        show_record_pic_command): New functions.
578
        (record_pic_function, record_pic_line, record_pic_enum,
579
        set_record_pic_type, record_pic_hide_nofunction,
580
        record_pic_hide_nosource, record_pic_hide_same): New variables.
581
        (record_pic_fputs): New function.
582
        (function_list, node_list, edge_list): New struct.
583
        (function_list, node_list, edge_list): New variables.
584
        (record_pic_cleanups, record_pic_node,
585
        record_pic_edge, cmd_record_pic): New functions.
586
        (_initialize_record): Add new commands for record pic.
587
 
588
2010-06-28  Jan Kratochvil  
589
 
590
        * dwarf2read.c (read_structure_type) : Call
591
        ALLOCATE_CPLUS_STRUCT_TYPE.
592
 
593
2010-06-28  Phil Muldoon  
594
            Tom Tromey  
595
            Thiago Jung Bauermann  
596
 
597
        * value.c (pack_unsigned_long): New function.
598
        (value_from_ulongest): New function.
599
        * value.h (value_from_ulongest): Declare.
600
        * python/python.c (_initialize_python): Call
601
        gdbpy_initialize_thread and gdbpy_initialize_inferior.
602
        * python/python-internal.h: Define thread_object.
603
        (gdbpy_inferiors, gdbpy_selected_thread)
604
        (frame_info_to_frame_object, create_thread_object)
605
        (find_thread_object, find_inferior_object)
606
        (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
607
        (gdbpy_is_value_object, get_addr_from_python): Declare.
608
        * python/py-value.c (builtin_type_upylong): Define.
609
        (convert_value_from_python): Add logic for ulongest.
610
        (gdbpy_is_value_object): New function.
611
        * python/py-utils.c (get_addr_from_python): New function.
612
        * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
613
        (gdbpy_selected_frame): Use PyObject over frame_info.
614
        * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
615
        py-infthread.
616
        (SUBDIR_PYTHON_SRCS): Likewise.
617
        (py-inferior.o): New Rule.
618
        (py-infthread.o): New Rule.
619
        * python/py-inferior.c: New File.
620
        * python/py-infthread.c: New File.
621
 
622
2010-06-28  Jan Kratochvil  
623
 
624
        * c-typeprint.c (c_type_print_base): For no fields check include also
625
        TYPE_TYPEDEF_FIELD_COUNT.  Print new typedefs section.
626
        * dwarf2read.c (struct typedef_field_list)
627
        (struct field_info) : New.
628
        (dwarf2_add_typedef): New.
629
        (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
630
        Copy also FI.TYPEDEF_FIELD_LIST.
631
        * gdbtypes.h (struct typedef_field)
632
        (struct cplus_struct_type) 
633
        (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
634
        (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
635
 
636
2010-06-28  Jan Kratochvil  
637
 
638
        * cp-namespace.c (cp_lookup_nested_type): New variable
639
        concatenated_name.  Turn the current return condition into a reverse
640
        one.  Call also lookup_static_symbol_aux on the constructed qualified
641
        name.
642
        * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
643
        other files into a called ...
644
        (lookup_static_symbol_aux): ... new function here.
645
        * symtab.h (lookup_static_symbol_aux): New prototype.
646
        * valops.c (value_maybe_namespace_elt): Call also
647
        lookup_static_symbol_aux if we failed otherwise.
648
 
649
2010-06-28  Jan Kratochvil  
650
 
651
        Fix PR c++/11703 and PR gdb/1448.
652
        * c-exp.y (yylex) : Add
653
        FIRST_ITER check.
654
 
655
2010-06-28  Jan Kratochvil  
656
 
657
        Fix modification of cplus_struct_default.
658
        * dwarf2read.c (dwarf2_add_member_fn) :
659
        Call ALLOCATE_CPLUS_STRUCT_TYPE.
660
        * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
661
 
662
2010-06-28  Joel Brobecker  
663
 
664
        * NEWS: Add entry announcing the python directory.
665
 
666
2010-06-28  Tom Tromey  
667
 
668
        * dwarf2read.c (read_structure_type): Allocate null cleanup later.
669
 
670
2010-06-28  Doug Evans  
671
 
672
        * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
673
        All callers updated.
674
 
675
2010-06-28  Jan Kratochvil  
676
 
677
        * cp-valprint.c (cp_print_value_fields) : Call
678
        obstack_begin after each obstack_free.
679
 
680
2010-06-27  Doug Evans  
681
 
682
        * value.c (value_static_field): Use `switch' instead of `if'.
683
        Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
684
 
685
        * valops.c (search_struct_field): Fix typo in error message.
686
 
687
2010-06-26  Ulrich Weigand  
688
 
689
        * dwarf2expr.c (execute_stack_op): Place preprocessor
690
        directives at the start of the source line.
691
 
692
2010-06-25  Paul Hilfinger  
693
 
694
        * defs.h (make_command_stats_cleanup): Declare.
695
        (set_display_time): Declare.
696
        (set_display_space): Declare.
697
        * event-top.c (command_handler): Use make_command_stats_cleanup.
698
        * main.c (display_time, display_space): Move definitions to utils.c.
699
        (captured_main): Use make_command_stats_cleanup to get start-up
700
        statistics.
701
        Use set_display_time and set_display_space for processing OPT_STATISTICS
702
        case.
703
        * maint.c (maintenance_time_display): Use set_display_time.
704
        (maintenance_space_display): Use set_display_space.
705
        * top.c (execute_command): Remove obsolete 'maint time' code.
706
        (command_loop): Use make_command_stats_cleanup.
707
        * utils.c (struct cmd_stats): Structure for storing initial time
708
        and space usage.
709
        (display_time, display_space): Move definitions here from utils.c.
710
        (set_display_time): New function.
711
        (set_display_space): New function.
712
        (make_command_stats_cleanup): New function.
713
        (report_command_stats): New auxiliary function for
714
        make_command_stats_cleanup.
715
 
716
2010-06-25  Ulrich Weigand  
717
 
718
        * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
719
        hosts where CORE_ADDR is long long.
720
 
721
2010-06-25  Tom Tromey  
722
 
723
        PR python/10808:
724
        * python/python.c (execute_gdb_command): Add keywords.  Accept
725
        "to_string" argument.
726
        (struct restore_ui_file_closure): New.
727
        (restore_ui_file): New function.
728
        (make_cleanup_restore_ui_file): Likewise.
729
        (GdbMethods) : Update.
730
 
731
2010-06-25  Ulrich Weigand  
732
 
733
        * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
734
        during inferior call stack frame setup.
735
 
736
2010-06-25  Ken Werner  
737
 
738
        * solib-spu.c: Include "exception.h".
739
        (ocl_program_data_key): New variable.
740
        (append_ocl_sos): New function.
741
        (ocl_enable_break): Likewise.
742
        (spu_current_sos): Call append_ocl_sos.
743
        (spu_solib_loaded): Call ocl_enable_break.
744
        (_initialize_spu_solib): Register ocl_program_data_key.
745
 
746
2010-06-25  Ulrich Weigand  
747
 
748
        * cp-support.c (reset_directive_searched): New function.
749
        (make_symbol_overload_list_using): Prevent recursive calls.
750
 
751
2010-06-25  Phil Muldoon  
752
 
753
        * printcmd.c (print_variable_and_value): Print error message on
754
        caught exception.
755
 
756
2010-06-25  Ulrich Weigand  
757
 
758
        * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
759
        of stack values.
760
        (struct dwarf_expr_piece): Rename "expr" member to "mem".  Add new
761
        "value" member.
762
        (dwarf_expr_push): Change input type to ULONGEST.
763
        (dwarf_expr_fetch): Change return type to ULONGEST.
764
        (dwarf_expr_fetch_address): Add prototype.
765
        (dwarf2_read_address): Remove prototype.
766
        * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
767
        Truncate stack values to ctx->addr_size bytes.
768
        (dwarf_expr_fetch): Change return value to ULONGEST.
769
        (dwarf_expr_fetch_address): New function.
770
        (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
771
        when appropriate.  Update for struct dwarf_expr_piece changes.
772
        (dwarf2_read_address): Remove.
773
        (unsigned_address_type): Remove.
774
        (signed_address_type): Remove.
775
        (execute_stack_op): Use dwarf_expr_fetch_address instead of
776
        dwarf_expr_fetch when appropriate.  Use ULONGEST as type of stack
777
        values.  Perform operations on ULONGEST instead of on GDB values,
778
        sign-extending from ctx->addr_size bytes as needed.  Read DW_OP_addr
779
        values and DW_OP_deref results as unsigned integers.
780
        * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
781
        changes.
782
        (write_pieced_value): Likewise.
783
        (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
784
        dwarf_expr_fetch when appropriate.
785
        (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
786
        * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
787
        instead of dwarf_expr_fetch when appropriate.
788
 
789
2010-06-25  Pierre Muller  
790
 
791
        * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
792
 
793
2010-06-24  Joel Brobecker  
794
 
795
        * python/python.c (_initialize_python): Add new "constant"
796
        PYTHONDIR in gdb module.  Insert this path at the head of
797
        sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
798
        exec its __init__.py script if it exists in that directory.
799
 
800
2010-06-24  Kevin Buettner  
801
 
802
        * rx-tdep.c (RX_ACC_REGNUM): Define.
803
        (RX_NUM_REGS): Redefine to 26.
804
        (rx_register_name): Add register "acc".  Change order of several
805
        registers.  Change name of "vct" register to "fintv" to match RX
806
        documentation.
807
        (rx_register_type): Add case for RX_ACC_REGNUM.
808
 
809
2010-06-24  Tom Tromey  
810
 
811
        * psymtab.c (lookup_partial_symbol): Mark definition as static.
812
 
813
2010-06-24  Jan Kratochvil  
814
            Tom Tromey  
815
 
816
        Fix GDB startup on readonly filesystem.
817
        * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
818
 
819
2010-06-24  Jan Kratochvil  
820
            Pedro Alves  
821
 
822
        Fix PR 9436.
823
        * breakpoint.c (handle_jit_event): New function.
824
        (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
825
        jit, err, table and bs_class.  New variables shlib_event, jit_event,
826
        this_action and bptype.  Change bs_class assignments to this_action
827
        assignments.  new unhandled bptype internal error.  Move here
828
        shlib_event and jit_event handling from handle_inferior_event.
829
        * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
830
        Reorder items.  Remove BPSTAT_WHAT_CHECK_SHLIBS and
831
        BPSTAT_WHAT_CHECK_JIT.
832
        * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
833
        * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
834
        (handle_inferior_event): Reinitialize frame and gdbarch after
835
        bpstat_what call.  Move BPSTAT_WHAT_CHECK_SHLIBS and
836
        BPSTAT_WHAT_CHECK_JIT handling to bpstat_what.  Reinitialize even
837
        gdbarch when frame gets reinitialized.
838
 
839
2010-06-24  Hui Zhu  
840
 
841
       * printcmd.c (ui_printf): New function.
842
       (printf_command): Call ui_printf.
843
       (_initialize_printcmd): New command "eval".
844
 
845
2010-06-23  Ulrich Weigand  
846
 
847
        * infrun.c (handle_inferior_event): Handle presence of single-step
848
        breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
849
        Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
850
        TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
851
        * breakpoint.c (detach_single_step_breakpoints): New function.
852
        (detach_breakpoints): Call it.
853
        (cancel_single_step_breakpoints): New function.
854
        * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
855
 
856
        * spu-tdep.c (spu_memory_remove_breakpoint): New function.
857
        (spu_gdbarch_init): Install it.
858
 
859
2010-06-23  Jan Kratochvil  
860
 
861
        * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
862
        * configure: Regenerate.
863
 
864
2010-06-22  Hui Zhu  
865
 
866
        * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
867
        (i386_process_record): Ditto.
868
        * record.c (record_memory_query): New variable.
869
        (_initialize_record): New command "set record memory-query".
870
        * record.h (record_memory_query): New extern.
871
 
872
2010-06-21  Doug Evans  
873
 
874
        * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
875
        * i386-tdep.c (i386_displaced_step_copy_insn): New function.
876
        (i386_syscall_p): Change type of lengthp to int.
877
        (i386_displaced_step_fixup): Handle kernels that run one past a
878
        syscall insn.
879
        * i386-linux-tdep.c (i386_linux_init_abi): Use
880
        i386_displaced_step_copy_insn instead of
881
        simple_displaced_step_copy_insn.
882
 
883
2010-06-21  Tom Tromey  
884
 
885
        * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
886
        (dwarf_type_encoding_name): Likewise.
887
 
888
2010-06-21  Tom Tromey  
889
 
890
        * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
891
        * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
892
        * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
893
        * gdbtypes.h (TYPE_ERROR_NAME): New macro.
894
        * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
895
        * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
896
        * dwarf2read.c (tag_type_to_type): Create a new error type on
897
        failure.
898
        * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
899
        * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
900
 
901
2010-06-21  Michael Snyder  
902
 
903
        * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
904
        not add_abbrev_prefix_cmd, for "enable breakpoints".
905
 
906
2010-06-21  Ulrich Weigand  
907
 
908
        * dwarf2loc.c (find_location_expression): Add relocation offset
909
        to base-address-selection entry base addresses.  Read addresses
910
        (and offsets) as signed/unsigned integers, depending on the
911
        BFD's sign_extend_vma flag.  Do not call dwarf2_read_address.
912
        (loclist_describe_location): Likewise.
913
        (disassemble_dwarf_expression): Read DW_OP_addr operand as
914
        unsigned integer.  Do not call dwarf2_read_address.
915
        (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
916
 
917
2010-06-19  Ulrich Weigand  
918
 
919
        * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
920
        value instead of hard-coded SPU_LS_SIZE.
921
        (spu_software_single_step): Likewise.
922
        * spu-tdep.h (SPU_LS_SIZE): Remove.
923
 
924
2010-06-19  Ulrich Weigand  
925
 
926
        * spu-multiarch.c (spu_xfer_partial): Wrap around local store
927
        limit on local store memory accesses.
928
        * spu-linux-nat.c (spu_xfer_partial): Likewise.
929
        * spu-tdep.c (spu_lslr): Remove.
930
        (spu_pointer_to_address): Do not truncate addresses.
931
        (spu_integer_to_address): Likewise.
932
        (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
933
        * spu-tdep.h: Add comments.
934
        (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
935
        (SPU_OVERLAY_LMA): Define.
936
 
937
2010-06-18  Stan Shebs  
938
 
939
        * osdata.c (get_osdata): Warn separately if target does not report
940
        type list.
941
        (info_osdata_command): Allow empty type, report error if target
942
        does not return available types of OS data.
943
        * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
944
        types if no annex supplied.
945
 
946
        * thread.c (thread_id_make_value): Make a value representing the
947
        current thread.
948
        (_initialize_thread): Create $_thread.
949
 
950
2010-06-17  Joel Brobecker  
951
 
952
        * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
953
        last local variable declaration.  No real code change.
954
 
955
2010-06-17  Tom Tromey  
956
 
957
        * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
958
        (dwarf2_build_psymtabs_hard): Use it.  Create addrmap on a
959
        temporary obstack.
960
 
961
2010-06-16  Sergio Durigan Junior  
962
            Jan Kratochvil  
963
 
964
        * breakpoint.c: Include parser-defs.h.
965
        (watchpoint_exp_is_const): New function.
966
        (watch_command_1): Call watchpoint_exp_is_const to check
967
        if the expression is constant.
968
 
969
2010-06-15  Andreas Schwab  
970
 
971
        * configure.ac: Check for RDYNAMIC also for cross builds.
972
        * configure: Regenerate.
973
 
974
2010-06-15  Pedro Alves  
975
 
976
        * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
977
        (SFILES): Remove solib-null.c, add solib-target.c.
978
        (COMMON_OBS): Remove solib-null.o, add solib-target.o.
979
        (ALLDEPFILES): Remove solib-target.c.
980
        * solib-target.c (_initialize_solib_target): Set
981
        current_target_so_ops to solib_target_so_ops if not already set.
982
        * solib-null.c: Delete.
983
 
984
2010-06-14  Pedro Alves  
985
 
986
        * NEWS: Mention GDBserver's JIT compilation of tracepoint
987
        bytecode.
988
 
989
2010-06-14  Ulrich Weigand  
990
 
991
        * cp-valprint.c (cp_print_static_field): Members of
992
        dont_print_stat_array_obstack are of type "struct type *".
993
        (_initialize_cp_valprint): Likewise.
994
 
995
2010-06-14  Ulrich Weigand  
996
 
997
        * frame.c (frame_register_unwind): Do not access contents
998
        of "optimized out" unwound register value.
999
 
1000
2010-06-14  Jan Kratochvil  
1001
 
1002
        * ada-lang.h (ada_print_type): Make varstring const.
1003
        * ada-typeprint.c (print_func_type): Make name const.
1004
        (ada_print_type): Make varstring const.
1005
        * c-lang.h (c_print_type): Make varstring const.
1006
        * c-typeprint.c (c_print_type): Likewise.
1007
        * f-lang.h (f_print_type): Likewise.
1008
        * f-typeprint.c (f_print_type): Likewise.
1009
        * jv-lang.h (java_print_type): Likewise.
1010
        * jv-typeprint.c (java_print_type): Likewise.
1011
        * language.c (unk_lang_print_type): Likewise.
1012
        * language.h (struct language_defn) : Likewise.
1013
        * m2-lang.h (m2_print_type): Likewise.
1014
        * m2-typeprint.c (m2_print_type): Likewise.
1015
        * p-lang.h (pascal_print_type): Likewise.
1016
        * p-typeprint.c (pascal_print_type): Likewise.
1017
 
1018
2010-06-11  Stan Shebs  
1019
 
1020
        Add per-operation permission flags.
1021
 
1022
        * target.h (struct target_ops): New method to_set_permissions.
1023
        (target_set_permissions): New macro.
1024
        (target_insert_breakpoint): Change macro to function.
1025
        (target_remove_breakpoint): Ditto.
1026
        (target_stop): Ditto.
1027
        (may_write_registers): Declare.
1028
        (may_write_memory): Declare.
1029
        (may_insert_breakpoints): Declare.
1030
        (may_insert_tracepoints): Declare.
1031
        (may_insert_fast_tracepoints): Declare.
1032
        (may_stop): Declare.
1033
        * target.c (may_write_registers, may_write_registers_1): New globals.
1034
        (may_write_memory, may_write_memory_1): New globals.
1035
        (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
1036
        (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
1037
        (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
1038
        globals.
1039
        (may_stop, may_stop_1): New global.
1040
        (target_xfer_partial): Test for write permission.
1041
        (target_store_registers): Ditto.
1042
        (target_insert_breakpoint): New function.
1043
        (target_remove_breakpoint): New function.
1044
        (target_stop): New function.
1045
        (_initialize_targets): Add new set/show variables.
1046
        (set_write_memory_permission): New function.
1047
        (update_target_permissions): New function.
1048
        (set_target_permissions): New function.
1049
        (update_current_target): Default to_set_permissions.
1050
        (_initialize_targets): Use new globals and setter function.
1051
        * tracepoint.c (start_tracing): Test for permission.
1052
        * inferior.h (update_observer_mode): Declare.
1053
        * infrun.c (non_stop_1): Define earlier.
1054
        (observer_mode, observer_mode_1): New globals.
1055
        (set_observer_mode, show_observer_mode): New functions.
1056
        (update_observer_mode): New function.
1057
        (_initialize_infrun): Define "set observer" command.
1058
        * remote.c (PACKET_QAllow): New optional packet.
1059
        (remote_protocol_features): Add QAllow.
1060
        (remote_set_permissions): New function.
1061
        (remote_start_remote): Call it.
1062
        (init_remote_ops): Add it to target vector.
1063
        (_initialize_remote): Add config command for QAllow.
1064
 
1065
2010-06-11  Tom Tromey  
1066
 
1067
        * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
1068
        DW_AT_vtable_elem_location even when GCC extension is seen.
1069
 
1070
2010-06-11  Tom Tromey  
1071
 
1072
        PR gdb/9977, PR exp/11636:
1073
        * value.h (value_offset): Update.
1074
        (struct lval_funcs) : New field.
1075
        : Make argument const.
1076
        (value_computed_closure): Update.
1077
        (value_contents_for_printing): Declare.
1078
        (value_bits_valid): Likewise.
1079
        (val_print): Likewise.
1080
        (set_value_component_location): Update.
1081
        (value_entirely_optimized_out): Declare.
1082
        * value.c (value_offset): Argument now const.
1083
        (require_not_optimized_out): New function.
1084
        (value_contents_for_printing): New function.
1085
        (value_contents_all): Call require_not_optimized_out.
1086
        (value_contents): Likewise.
1087
        (value_bits_valid): New function.
1088
        (value_computed_closure): Argument now const.
1089
        (set_value_component_location): Make 'whole' argument const.
1090
        (value_entirely_optimized_out): New function.
1091
        (value_bitsize): Argument now 'const'.
1092
        (value_bitpos): Likewise.
1093
        (value_type): Likewise.
1094
        * valprint.h (val_print_array_elements): Update.
1095
        * valprint.c (val_print): Add 'val' argument.  Use
1096
        valprint_check_validity.
1097
        (valprint_check_validity): New function.
1098
        (value_check_printable): Use value_entirely_optimized_out.
1099
        (common_val_print): Update.
1100
        (value_print): Likewise.
1101
        (val_print_array_elements): Add 'val' argument.
1102
        * valops.c (value_fetch_lazy): Use value_contents_for_printing,
1103
        value_bits_valid.  Reinit frame cache for lval_computed.
1104
        * sh64-tdep.c (sh64_do_register): Update.
1105
        * scm-valprint.c (scm_val_print): Add 'val' argument.
1106
        * scm-lang.h (scm_val_print): Update.
1107
        * python/python.h (apply_val_pretty_printer): Update.
1108
        * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
1109
        argument.  Call set_value_component_location.
1110
        * printcmd.c (print_scalar_formatted): Update.
1111
        * p-valprint.c (pascal_val_print): Add 'val' argument.
1112
        (pascal_object_print_value_fields): Likewise.
1113
        (pascal_object_print_value): Likewise.
1114
        (pascal_object_print_static_field): Update.
1115
        * p-lang.h (pascal_val_print): Update.
1116
        (pascal_object_print_value_fields): Update.
1117
        * mt-tdep.c (mt_registers_info): Update.
1118
        * mi/mi-main.c (get_register): Update.
1119
        (mi_cmd_data_evaluate_expression): Use common_val_print.
1120
        * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
1121
        (m2_print_unbounded_array): Likewise.
1122
        (m2_val_print): Likewise.
1123
        * m2-lang.h (m2_val_print): Update.
1124
        * language.h (struct language_defn) : Add 'val'
1125
        argument.
1126
        (LA_VAL_PRINT): Likewise.
1127
        * language.c (unk_lang_val_print): Add 'val' argument.
1128
        * jv-valprint.c (java_print_value_fields): Add 'val' argument.
1129
        (java_val_print): Likewise.
1130
        * jv-lang.h (java_val_print): Add 'val' argument.
1131
        * infcmd.c (default_print_registers_info): Update.
1132
        * f-valprint.c (f77_print_array_1): Add 'val' argument.
1133
        (f77_print_array): Likewise.
1134
        (f_val_print): Likewise.
1135
        * f-lang.h (f_val_print): Add 'val' argument.
1136
        * dwarf2loc.c (read_pieced_value): Use value_bitsize and
1137
        value_bitpos.
1138
        : Don't print warning.  Call
1139
        set_value_optimized_out.
1140
        (write_pieced_value): Use value_bitsize and value_bitpos.
1141
        : Don't exit loop.
1142
        (check_pieced_value_validity): New function.
1143
        (pieced_value_funcs): Reference check_pieced_value_validity,
1144
        check_pieced_value_invalid.
1145
        (copy_pieced_value_closure): Update.
1146
        (check_pieced_value_bits): New function.
1147
        (check_pieced_value_invalid): New function.
1148
        * d-valprint.c (dynamic_array_type): Add 'val' argument.
1149
        (d_val_print): Likewise.
1150
        * d-lang.h (d_val_print): Update.
1151
        * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
1152
        (cp_print_value_fields_rtti): Likewise.
1153
        (cp_print_value): Likewise.
1154
        (cp_print_static_field): Update.
1155
        * c-valprint.c (c_val_print): Add 'val' argument.
1156
        (c_value_print): Update.
1157
        * c-lang.h (c_val_print): Update.
1158
        (cp_print_value_fields): Likewise.
1159
        (cp_print_value_fields_rtti): Likewise.
1160
        * ada-valprint.c (struct ada_val_print_args): Remove.
1161
        (val_print_packed_array_elements): Add 'val' argument.
1162
        (ada_val_print): Likewise.  Rewrite.
1163
        (ada_val_print_stub): Remove.
1164
        (ada_val_print_array): Add 'val' argument.
1165
        (ada_val_print_1): Likewise.
1166
        (print_variant_part): Likewise.
1167
        (ada_value_print): Update.
1168
        (print_record): Add 'val' argument.
1169
        (print_field_values): Likewise.
1170
        * ada-lang.h (ada_val_print): Update.
1171
 
1172
2010-06-11  Tom Tromey  
1173
 
1174
        * vec.h (VEC_cleanup): New macro.
1175
        (DEF_VEC_ALLOC_FUNC_I): Update.
1176
        (DEF_VEC_ALLOC_FUNC_P): Likewise.
1177
        (DEF_VEC_ALLOC_FUNC_O): Likewise.
1178
        * dwarf2loc.c (struct axs_var_loc): Remove.
1179
        (unimplemented): New function.
1180
        (translate_register): Likewise.
1181
        (access_memory): Likewise.
1182
        (compile_dwarf_to_ax): Likewise.
1183
        (dwarf2_tracepoint_var_loc): Remove.
1184
        (dwarf2_tracepoint_var_access): Likewise.
1185
        (dwarf2_tracepoint_var_ref): Likewise.
1186
        (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
1187
        (loclist_tracepoint_var_ref): Likewise.
1188
        * dwarf2expr.h (dwarf_expr_require_composition): Declare.
1189
        * dwarf2expr.c (dwarf_expr_require_composition): Rename from
1190
        require_composition.  No longer static.
1191
        (execute_stack_op): Update.
1192
        * ax-gdb.h (trace_kludge): Declare.
1193
 
1194
2010-06-11  Jan Kratochvil  
1195
 
1196
        * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
1197
        (should_be_inserted): Return zero also on NULL OWNER.
1198
        (breakpoint_program_space_exit): New OWNER comment.
1199
        (insert_breakpoint_locations): Extend comment for OWNER.
1200
        (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
1201
        (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
1202
        New OWNER comment.
1203
        (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
1204
        (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
1205
        (bpstat_check_location): New assert on OWNER.
1206
        (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
1207
        and B initializations to the code block.  New assert on them.
1208
        (print_one_breakpoint_location): New OWNER comment.
1209
        (watchpoint_locations_match): Assert on OWNER.
1210
        (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
1211
        initializations to the code block.  New assert on OWNER.
1212
        (set_breakpoint_location_function): New assert on OWNER.
1213
        (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
1214
        (bp_location_compare, update_global_location_list)
1215
        (update_global_location_list): New OWNER comment.
1216
 
1217
2010-06-09  Ulrich Weigand  
1218
 
1219
        * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
1220
 
1221
2010-06-09  Ulrich Weigand  
1222
 
1223
        * config/nm-linux.h (struct target_ops): Remove forward declaration.
1224
        (lin_thread_get_thread_signals): Remove prototype.
1225
        (GET_THREAD_SIGNALS): Remove.
1226
        * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
1227
        * linux-thread-db.c (check_thread_signals): Directly call
1228
        lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
1229
 
1230
2010-06-09  Ulrich Weigand  
1231
 
1232
        * gregset.h (GDB_FPXREGSET_T): Remove.
1233
        (gdb_fpxregset_t): Likewise.
1234
        (supply_fpxregset): Remove prototype.
1235
        (fill_fpxregset): Likewise.
1236
        * i386-linux-nat.c (supply_fpxregset): Remove.
1237
        (fill_fpxregset): Likewise.
1238
        (fetch_fpxregs): Inline supply_fpxregset call.
1239
        (store_fpxregs): Inline fill_fpxregset call.
1240
 
1241
        * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
1242
        * config/i386/nm-linux.h: Remove file.
1243
 
1244
2010-06-09  Michael Snyder  
1245
 
1246
        * target.c (update_current_target): Fix spelling error in comment.
1247
        (target_mourn_inferior): Fix spelling error in error message.
1248
 
1249
2010-06-08  Paul Hilfinger  
1250
 
1251
      * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
1252
      SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
1253
 
1254
2010-06-08  Michael Snyder  
1255
 
1256
        * remote.c (remote_close): Set inferior_ptid to null_ptid.
1257
 
1258
2010-06-08  Jan Kratochvil  
1259
 
1260
        * configure.ac <"${have_libpython}" != no>: New workaround of
1261
        python#4434.
1262
        * configure: Regenerate.
1263
 
1264
2010-06-08  Hui Zhu  
1265
 
1266
        * record.c (record_wait): Move signal out of replay code.
1267
 
1268
2010-06-07  Jan Kratochvil  
1269
 
1270
        Fix PR 10640.
1271
        * dwarf2-frame.c (no_dwarf_call): New function.
1272
        (execute_stack_op): Set CTX->DWARF_CALL.
1273
        * dwarf2expr.c (execute_stack_op) : New.
1274
        * dwarf2expr.h (struct dwarf_expr_context) : New.
1275
        (struct dwarf_expr_context) : Remove the #if0-ed field.
1276
        * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
1277
        (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
1278
        (needs_frame_dwarf_call): New function.
1279
        (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
1280
        * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
1281
        Update the comment.  Move variables die, offset and error call to ...
1282
        (follow_die_ref): ... a new function.
1283
        (dwarf2_fetch_die_location_block): New function.
1284
        * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
1285
 
1286
2010-06-07  Jan Kratochvil  
1287
 
1288
        * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
1289
        (dwarf_expr_tls_address): Use per_cu instead of objfile.
1290
        (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
1291
        Initialize new BATON.PER_CU.  Adjust CTX->GDBARCH initialization for
1292
        this change.
1293
        (struct needs_frame_baton): New field per_cu.
1294
        (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
1295
        * dwarf2read.c (struct dwarf2_per_cu_data) : Extend the comment.
1296
 
1297
2010-06-07  Sami Wagiaalla  
1298
 
1299
        * cp-support.c (make_symbol_overload_list_namespace): Only search
1300
        static and global blocks.
1301
        (make_symbol_overload_list_block): New function.
1302
        (make_symbol_overload_list): Separate namespace search from block
1303
        search.
1304
        (make_symbol_overload_list_qualified): Use
1305
        make_symbol_overload_list_block.
1306
 
1307
2010-06-07  Sami Wagiaalla  
1308
 
1309
        * value.h: Created oload_search_type enum.
1310
        (find_overload_match): Use oload_search_type enum.
1311
        * valops.c (find_overload_match): Support combined member and
1312
        non-member search.
1313
        * eval.c (evaluate_subexp_standard): Calls to
1314
        find_overload_match now use oload_search_type enum.
1315
        (oload_method_static): Verify index is a proper value.
1316
        * valarith.c (value_user_defined_cpp_op): Search for and handle
1317
        both member and non-member operators.
1318
        (value_user_defined_cpp_op): New function.
1319
        (value_user_defined_op): New function.
1320
        (value_x_unop): Use value_user_defined_op.
1321
        (value_x_binop): Ditto.
1322
        * cp-support.c (make_symbol_overload_list_using): Added block
1323
        iteration.
1324
        Add check for namespace aliases and imported declarations.
1325
 
1326
2010-06-07  Jan Kratochvil  
1327
 
1328
        * breakpoint.h (owner): Extend the comment.
1329
 
1330
2010-06-07  Jan Kratochvil  
1331
 
1332
        Clear stale specific bp_location from former whole breakpoint.
1333
        * breakpoint.c (delete_breakpoint): Move the stale referencing clear
1334
        code ...
1335
        (free_bp_location): ... here.  Rename there the called function to
1336
        bpstat_remove_bp_location_callback.
1337
        (bpstat_remove_breakpoint_callback): Rename to ...
1338
        (bpstat_remove_bp_location_callback): ... here, change DATA resolution
1339
        to struct bp_location.  Change the called function to
1340
        bpstat_remove_bp_location.  Create new declaration for the function.
1341
        (bpstat_remove_breakpoint): Rename to ...
1342
        (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
1343
        code for the new parameter type.
1344
 
1345
2010-06-07  Nathan Sidwell  
1346
 
1347
        * README: Make version-agnostic.
1348
 
1349
2010-06-05  Jan Kratochvil  
1350
 
1351
        Fix duplicate types for single DIE.
1352
        * dwarf2read.c (read_structure_type): Move set_descriptive_type after
1353
        set_die_type.
1354
        (read_array_type): Remove type initialization.  Recheck get_die_type
1355
        after initial die_type.  Move set_die_type before set_descriptive_type.
1356
        (read_set_type): New variable domain_type.  Recheck get_die_type after
1357
        initial die_type.  Move attr initialization later.
1358
        (read_tag_pointer_type, read_tag_reference_type): New variable
1359
        target_type.  Recheck get_die_type after initial die_type.
1360
        (read_tag_ptr_to_member_type): Recheck get_die_type after initial
1361
        die_type and die_containing_type.
1362
        (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
1363
        Recheck get_die_type after initial die_type.
1364
        (read_subrange_type): Recheck get_die_type after initial die_type.
1365
        Move set_die_type before set_descriptive_type.
1366
        (set_die_type): Extend the function comment.  Call complaint if DIE has
1367
        some type already set.
1368
 
1369
2010-06-05  Vladimir Prus  
1370
 
1371
        * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
1372
        for current naming of thread groups (iN, not N).
1373
 
1374
2010-06-04  Sergio Durigan Junior  
1375
 
1376
        * ada-lang.c (ada_operator_length): Constify `struct expression'.
1377
        * parse.c (operator_length): Likewise.
1378
        (operator_length_standard): Likewise.
1379
        * parser-defs.h (operator_length): Likewise.
1380
        (operator_length_standard): Likewise.
1381
        (struct exp_descriptor ): Likewise.
1382
 
1383
2010-06-04  Doug Evans  
1384
 
1385
        Add support for enabling/disabling individual pretty-printers.
1386
        * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
1387
        * python/python-internal.h (gdbpy_enabled_cst): Declare.
1388
        * python/python.c (gdbpy_enabled_cst): Define.
1389
        (_initialize_python): Initialize gdbpy_enabled_cst.
1390
        * NEWS: Add entry.
1391
 
1392
2010-06-04  Jan Kratochvil  
1393
 
1394
        * breakpoint.c (update_global_location_list): Fix comment typo.
1395
 
1396
2010-06-04  Hui Zhu  
1397
 
1398
        * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
1399
 
1400
2010-06-03  Doug Evans  
1401
 
1402
        * configure.ac: Don't fail if python is unusable when
1403
        configured with --with-python=auto.
1404
        * configure: Regenerate.
1405
 
1406
2010-06-03  Sami Wagiaalla  
1407
 
1408
        * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
1409
 
1410
2010-06-03  Pierre Muller  
1411
 
1412
        * valprint.h (get_array_bounds): Change low and high parameter types
1413
        to LONGEST *.
1414
        * valprint.c (get_array_bounds): Use get_discrete_bounds call to
1415
        compute bounds.
1416
        (val_print_array_elements): Adapt to change above.
1417
        * ada-valprint.c (print_optional_low_bound): Adapt to change above.
1418
        * p-valprint.c (pascal_val_print): Likewise.
1419
 
1420
2010-06-02  Jan Kratochvil  
1421
 
1422
        * symfile.c (init_filename_language_table): New extensions .for, .FOR,
1423
        .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
1424
        .F08.
1425
 
1426
2010-06-02  Jan Kratochvil  
1427
 
1428
        Support DW_TAG_module as separate namespaces.
1429
        * dwarf2read.c (typename_concat): New parameter physname.
1430
        (read_module_type): New function and declaration.
1431
        (scan_partial_symbols): Scan also DW_TAG_module children.
1432
        (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
1433
        to typename_concat backward compatible physname value 0.
1434
        (partial_die_full_name, read_namespace_type): Pass to typename_concat
1435
        backward compatible physname value 0.
1436
        (add_partial_module, read_module): Remove FIXME comment.
1437
        (process_die) : Set PROCESSING_HAS_NAMESPACE_INFO.
1438
        (die_needs_namespace) : Allow returning true even for
1439
        DIEs under DW_TAG_module.
1440
        (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
1441
        DW_AT_MIPS_linkage_name first, extend it for language_fortran
1442
        && physname and return there instead of just setting NAME.  Extend
1443
        the main block for language_fortran.  Pass physname parameter to the
1444
        typename_concat call.
1445
        (read_import_statement, read_func_scope, get_scope_pc_bounds)
1446
        (load_partial_dies, determine_prefix): Support also DW_TAG_module.
1447
        (new_symbol): Fill in cplus_specific.demangled_name if it is still
1448
        missing from SYMBOL_SET_NAMES in the language_fortran case.
1449
        (new_symbol) : Force LOC_UNRESOLVED for gfortran module
1450
        variables.
1451
        (read_type_die) : New.
1452
        (MAX_SEP_LEN): Increase to 7.
1453
        (typename_concat): New parameter physname.  New variable lead.  Support
1454
        also language_fortran.
1455
        * f-exp.y (yylex): Consider : also as a symbol name character class.
1456
        * f-lang.c: Include cp-support.h.
1457
        (f_word_break_characters, f_make_symbol_completion_list): New functions.
1458
        (f_language_defn): Use cp_lookup_symbol_nonlocal,
1459
        f_word_break_characters and f_make_symbol_completion_list.
1460
        * f-typeprint.c (f_type_print_base) : New.
1461
        * gdbtypes.h (enum type_code) : New.
1462
        * symtab.c (symbol_init_language_specific): Support language_fortran.
1463
        (symbol_find_demangled_name): New comment on language_fortran.
1464
        (symbol_natural_name, symbol_demangled_name): Use demangled_name even
1465
        for language_fortran.
1466
        (lookup_symbol_aux_local): Check imports also for language_fortran.
1467
        (default_make_symbol_completion_list): Rename to ...
1468
        (default_make_symbol_completion_list_break_on): ... this name.  New
1469
        parameter break_on, use it.
1470
        (default_make_symbol_completion_list): New stub.
1471
        * symtab.h (default_make_symbol_completion_list_break_on): New
1472
        prototype.
1473
 
1474
2010-06-02  Joel Brobecker  
1475
 
1476
        * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
1477
        to error.
1478
 
1479
2010-06-02  Jan Kratochvil  
1480
 
1481
        * dwarf2read.c (typename_concat): Add const to the variable sep.
1482
 
1483
2010-06-02  Tom Tromey  
1484
 
1485
        * dwarf2loc.h (dwarf2_per_cu_data): Declare.
1486
        * dwarf2read.c (dwarf_stack_op_name): No longer static.  Return
1487
        type is const.  Add 'def' argument.  Add missing operators, remove
1488
        unhandled ones.
1489
        (decode_locdesc): Update.
1490
        (dwarf2_always_disassemble): New global.
1491
        (show_dwarf2_always_disassemble): New function.
1492
        (_initialize_dwarf2_read): Add always-disassemble.
1493
        (dwarf2_per_cu_offset_size): New function.
1494
        * dwarf2loc.c (dwarf2_always_disassemble): Declare.
1495
        (piece_end_p): New function.
1496
        (locexpr_describe_location_piece): Replace 'size' argument with
1497
        'end'.  Use piece_end_p.  Rewrite recognition of TLS.  Recognize
1498
        some constants.  Remove errors.
1499
        (disassemble_dwarf_expression): New function.
1500
        (locexpr_describe_location_1): Use disassemble_dwarf_expression.
1501
        Add 'offset_size' argument.
1502
        (loclist_describe_location): Change output formatting.
1503
        * dwarf2expr.h (dwarf_stack_op_name): Declare.
1504
 
1505
2010-06-02  Sami Wagiaalla  
1506
 
1507
        * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
1508
        anonymous type case.
1509
 
1510
2010-06-02  Pierre Muller  
1511
 
1512
        * dwarf2read.c (read_subrange_type): Handle missing base type
1513
        according to Dwarf-2 specifications.
1514
 
1515
2010-06-01  Sergio Durigan Junior  
1516
 
1517
        * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
1518
        BINOP_EXCL.
1519
        (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
1520
        UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
1521
        (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
1522
        BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
1523
        UNOP_CHMAX, UNOP_CHMIN.
1524
        * expression.h (enum exp_opcode) 
1525
        UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
1526
        UNOP_CHMIN>: Remove opcodes.
1527
 
1528
2010-06-01  Pierre Muller  
1529
 
1530
        * dwarf2read.c (read_func_scope): Do not complain for
1531
        external function if bounds are not found.
1532
 
1533
2010-06-01  Pedro Alves  
1534
 
1535
        * NEWS: Mention gdbserver fast tracepoints support.
1536
 
1537
2010-05-31  Pierre Muller  
1538
 
1539
        * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
1540
        New macros.
1541
        (windows_set_console_info): New function.
1542
        (windows_create_inferior): Call windows_set_console_info
1543
        if NEW_CONSOLE is true.
1544
        (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
1545
        (_initialize_loadable): Initialize GetConsoleFontSize and
1546
        GetCurrentConsoleFont.
1547
 
1548
2010-05-28  Jan Kratochvil  
1549
 
1550
        * Makefile.in (RDYNAMIC): New.
1551
        (SFILES): Add proc-service.list.
1552
        * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
1553
        (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
1554
        * config/arm/linux.mh: Likewise.
1555
        * config/i386/linux.mh: Likewise.
1556
        * config/i386/linux64.mh: Likewise.
1557
        * config/ia64/linux.mh: Likewise.
1558
        * config/m32r/linux.mh: Likewise.
1559
        * config/m68k/linux.mh: Likewise.
1560
        * config/mips/linux.mh: Likewise.
1561
        * config/pa/linux.mh: Likewise.
1562
        * config/powerpc/linux.mh: Likewise.
1563
        * config/powerpc/ppc64-linux.mh: Likewise.
1564
        * config/s390/s390.mh: Likewise.
1565
        * config/sparc/linux.mh: Likewise.
1566
        * config/sparc/linux64.mh: Likewise.
1567
        * config/xtensa/linux.mh: Likewise.
1568
        * configure.ac: New RDYNAMIC on native host and GCC.
1569
        (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
1570
        * configure: Regenerate.
1571
        * proc-service.list: New.
1572
 
1573
2010-05-28  Jan Kratochvil  
1574
 
1575
        * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
1576
        CONTENT.
1577
 
1578
2010-05-28  Jan Kratochvil  
1579
 
1580
        * linux-nat.c (linux_nat_wait_1): Do not call
1581
        linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
1582
        TARGET_WAITKIND_SIGNALLED.
1583
 
1584
2010-05-27  Joel Brobecker  
1585
 
1586
        * ada-lang.c (ada_inferior_data): New struct.
1587
        (ada_inferior_data): New static global.
1588
        (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
1589
        (ada_get_tsd_type): New functions.
1590
        (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
1591
        to look the tsd type up.
1592
        (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
1593
        event.  Set ada_inferior_data.
1594
 
1595
2010-05-27  Pedro Alves  
1596
 
1597
        * remote.c (unpack_varlen_hex): Remove forward declaration.
1598
        (remote_console_output): Make static, and add forward declaration.
1599
        * remote.h: Drop FIXME comment.
1600
        (unpack_varlen_hex): Declare.
1601
        (remote_console_output, remote_cisco_objfile_relocate)
1602
        (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
1603
        Delete declarations.
1604
        * tracepoint.c: Include "remote.h".
1605
        (unpack_varlen_hex): Delete declaration.
1606
 
1607
2010-05-27  Tom Tromey  
1608
 
1609
        * dwarf2loc.c (struct piece_closure) : New field.
1610
        (allocate_piece_closure): Initialize refc.
1611
        (copy_pieced_value_closure): Use refc.
1612
        (free_pieced_value_closure): Likewise.
1613
 
1614
2010-05-27  Tom Tromey  
1615
 
1616
        * arm-tdep.c (push_stack_item): 'contents' now const.
1617
        (arm_push_dummy_call): Make 'val' const.  Use value_contents, not
1618
        value_contents_writeable.  Introduce new temporary.
1619
 
1620
2010-05-27  Tom Tromey  
1621
 
1622
        * findcmd.c (parse_find_args): Use value_contents, not
1623
        value_contents_raw.
1624
 
1625
2010-05-27  Tom Tromey  
1626
 
1627
        * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
1628
        const.  Use value_contents, not value_contents_writeable.
1629
 
1630
2010-05-27  Joel Brobecker  
1631
 
1632
        * ada-lang.c (ensure_lval): Replace call to value_contents_raw
1633
        by call to value_contents.
1634
 
1635
2010-05-27  Ozkan Sezer  
1636
 
1637
        * MAINTAINERS: Add myself for write after approval privileges.
1638
 
1639
2010-05-26  Doug Evans  
1640
 
1641
        Allow python to find its files if moved from original location.
1642
        * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
1643
        (GDB_AC_WITH_DIR): Call it.
1644
        * configure.ac: Define WITH_PYTHON_PATH if we can find the
1645
        python installation directory.
1646
        * config.in: Regenerate.
1647
        * configure: Regenerate.
1648
        * defs.h (python_libdir): Declare.
1649
        * main.c (python_libdir): Define.
1650
        (captured_main): Initialize python_libdir.
1651
        * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
1652
        call Py_SetProgramName to make sure python can find its libraries
1653
        and modules.
1654
 
1655
        * configure.ac: Try to use python's distutils to fetch compilation
1656
        parameters.
1657
        * configure: Regenerate.
1658
        * python/python-config.py: New file.
1659
 
1660
2010-05-26  Ozkan Sezer  
1661
 
1662
        * ser-tcp.c (net_open): Check error return from socket() call by its
1663
        equality to -1 not by it being negative.
1664
        (net_close): Likewise.
1665
 
1666
2010-05-26  Pedro Alves  
1667
 
1668
        * NEWS: Mention the `qRelocInsn' feature.
1669
        * gdbarch.sh (relocate_instruction): New.
1670
        * amd64-tdep.c (rip_relative_offset): New.
1671
        (append_insns): New.
1672
        (amd64_relocate_instruction): New.
1673
        (amd64_init_abi): Install it.
1674
        * i386-tdep.c (append_insns): New.
1675
        (i386_relocate_instruction): New.
1676
        (i386_gdbarch_init): Install it.
1677
        * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
1678
        * gdbarch.h, gdbarch.c: Regenerate.
1679
 
1680
2010-05-26  Tom Tromey  
1681
 
1682
        * dwarf2loc.h (struct dwarf2_locexpr_baton) : Now const.
1683
        (struct dwarf2_loclist_baton) : Likewise.
1684
        * dwarf2loc.c (find_location_expression): Constify return type.
1685
        (dwarf2_evaluate_loc_desc): Make 'data' argument const.
1686
        (dwarf2_loc_desc_needs_frame): Likewise.
1687
        (loclist_read_variable): Constify.
1688
        (loclist_describe_location): Likewise.
1689
        (loclist_tracepoint_var_ref): Likewise.
1690
 
1691
2010-05-25  Tom Tromey  
1692
 
1693
        * dwarf2loc.c (dwarf_expr_frame_base): Constify.
1694
        (dwarf_expr_frame_base_1): Likewise.
1695
        (read_pieced_value): Update.
1696
        (needs_frame_frame_base): Constify.
1697
        (dwarf2_tracepoint_var_loc): Likewise.
1698
        (dwarf2_tracepoint_var_access): Likewise.
1699
        (locexpr_describe_location_piece): Likewise.
1700
        (locexpr_describe_location_1): Likewise.
1701
        * dwarf2expr.h (struct dwarf_expr_context) :
1702
        Constify.
1703
        (data): Now const.
1704
        (struct dwarf_expr_piece) : Likewise.
1705
        (dwarf_expr_eval, read_uleb128, read_sleb128)
1706
        (dwarf2_read_address): Update.
1707
        * dwarf2expr.c (dwarf_expr_eval): Constify.
1708
        (read_uleb128): Likewise.
1709
        (read_sleb128): Likewise.
1710
        (dwarf2_read_address): Likewise.
1711
        (require_composition): Likewise.
1712
        (execute_stack_op): Likewise.
1713
        * dwarf2-frame.h (struct dwarf2_frame_state_reg) : Now a
1714
        "const gdb_byte *".
1715
        * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) :
1716
        Now const.
1717
        (no_get_frame_base): Constify.
1718
        (execute_stack_op): Likewise.
1719
        (execute_cfa_program): Likewise.
1720
        (read_encoded_value): Likewise.
1721
 
1722
2010-05-25  Doug Evans  
1723
 
1724
        * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
1725
 
1726
        * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
1727
        * event-loop.c: ... here.
1728
        * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
1729
        `error' for clarity.
1730
        (tui_getc): Pass correct value for `error' parameter to
1731
        tui_readline_output.
1732
 
1733
        Add python gdb.GdbError and gdb.string_to_argv.
1734
        * NEWS: Document them.
1735
        * python/py-cmd.c (cmdpy_function): Don't print a traceback if
1736
        the exception is gdb.GdbError.  Print a second traceback if there's
1737
        an error computing the error message.
1738
        (gdbpy_string_to_argv): New function.
1739
        * python/py-utils.c (gdbpy_obj_to_string): New function.
1740
        (gdbpy_exception_to_string): New function.
1741
        * python/python-internal.h (gdbpy_string_to_argv): Declare.
1742
        (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
1743
        (gdbpy_gdberror_exc): Declare.
1744
        * python/python.c (gdbpy_gdberror_exc): New global.
1745
        (_initialize_python): Initialize gdbpy_gdberror_exc and create
1746
        gdb.GdbError.
1747
        (GdbMethods): Add string_to_argv.
1748
 
1749
2010-05-21  Pierre Muller  
1750
 
1751
        * windows-nat.c (display_selector): Call GetLastError to give better
1752
        failure explanation.
1753
 
1754
2010-05-24  Pedro Alves  
1755
 
1756
        * config.in: Regenerate.
1757
 
1758
2010-05-23  Jan Kratochvil  
1759
 
1760
        Code cleanup.
1761
        * target.c (push_target): Return only void.  Remove the return value
1762
        comment.
1763
        * target.h (push_target): Return only void.
1764
 
1765
2010-05-23  Pedro Alves  
1766
 
1767
        Update gnulib from latest git.
1768
        (250b80067c1e1d8faa0c42fb572f721975b929c5)
1769
 
1770
        * gnulib/memcmp.c: Removed.
1771
        * gnulib/memchr.valgrind: New.
1772
        * gnulib/stddef.in.h: New.
1773
        * gnulib/Makefile.am: Updated.
1774
        * gnulib/memchr.c: Updated.
1775
        * gnulib/memmem.c: Updated.
1776
        * gnulib/stdint.in.h: Updated.
1777
        * gnulib/str-two-way.h: Updated.
1778
        * gnulib/string.in.h: Updated.
1779
        * gnulib/wchar.in.h: Updated.
1780
 
1781
        * gnulib/extra/link-warning.h: Removed.
1782
        * gnulib/extra/c++defs.h: New.
1783
        * gnulib/extra/warn-on-use.h: New.
1784
        * gnulib/extra/arg-nonnull.h: Updated.
1785
 
1786
        * gnulib/m4/extensions.m4: Updated.
1787
        * gnulib/m4/gnulib-cache.m4: Updated.
1788
        * gnulib/m4/gnulib-common.m4: Updated.
1789
        * gnulib/m4/gnulib-comp.m4: Updated.
1790
        * gnulib/m4/gnulib-tool.m4: Updated.
1791
        * gnulib/m4/include_next.m4: Updated.
1792
        * gnulib/m4/longlong.m4: Updated.
1793
        * gnulib/m4/memchr.m4: Updated.
1794
        * gnulib/m4/memmem.m4: Updated.
1795
        * gnulib/m4/stdint.m4: Updated.
1796
        * gnulib/m4/string_h.m4: Updated.
1797
        * gnulib/m4/memcmp.m4: Removed.
1798
        * gnulib/m4/onceonly_2_57.m4: Removed.
1799
        * gnulib/m4/00gnulib.m4: New.
1800
        * gnulib/m4/mmap-anon.m4: New.
1801
        * gnulib/m4/multiarch.m4: New.
1802
        * gnulib/m4/onceonly.m4: New.
1803
        * gnulib/m4/stddef_h.m4: New.
1804
        * gnulib/m4/warn-on-use.m4: New.
1805
        * gnulib/m4/wchar.m4: Removed.
1806
        * gnulib/m4/wchar_h.m4: New.
1807
        * gnulib/m4/wchar_t.m4: New.
1808
        * gnulib/m4/wint_t.m4: New.
1809
 
1810
        * aclocal.m4: Regenerate.
1811
        * config.in: Likewise.
1812
        * configure: Likewise.
1813
        * gnulib/Makefile.in: Likewise.
1814
 
1815
2010-05-21  Tom Tromey  
1816
 
1817
        * dwarf2loc.c (extract_bits_primitive): New function.
1818
        (extract_bits): Likewise.
1819
        (insert_bits): Likewise.
1820
        (copy_bitwise): Likewise.
1821
        (read_pieced_value): Do all operations in bits.
1822
        (write_pieced_value): Likewise.
1823
        * dwarf2expr.h (struct dwarf_expr_piece) : New field.
1824
        * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
1825
        Always use xrealloc to resize piece array.
1826
        (execute_stack_op) : Handle DW_OP_bit_piece.
1827
        : Update.
1828
        : New case.
1829
 
1830
2010-05-21  Tom Tromey  
1831
 
1832
        * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
1833
        : New case.
1834
        * dwarf2expr.h (enum dwarf_value_location)
1835
        : New constant.
1836
        * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
1837
        (add_piece): Handle empty piece.
1838
        (execute_stack_op) : Handle
1839
        DWARF_VALUE_OPTIMIZED_OUT.
1840
 
1841
2010-05-21  Tom Tromey  
1842
 
1843
        * eval.c (evaluate_subexp_standard) : Call
1844
        evaluate_subexp, not evaluate_subexp_with_coercion.
1845
 
1846
2010-05-21  Pierre Muller  
1847
 
1848
        * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1849
        attribute.
1850
 
1851
2010-05-21  Tom Tromey  
1852
 
1853
        * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
1854
        offset.
1855
        (write_pieced_value): Likewise.
1856
 
1857
2010-05-21  Pierre Muller  
1858
 
1859
        * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1860
        and DW_TAG_volatile_type.
1861
        (new_symbol): Likewise.
1862
 
1863
2010-05-20  Pierre Muller  
1864
 
1865
        * p-valprint.c (pascal_val_print): Call get_array_bounds
1866
        to obtain the number of elements in an array.
1867
 
1868
2010-05-19  Doug Evans  
1869
 
1870
        * python.c (gdbpy_print_stack): Ensure output ends with a newline.
1871
 
1872
        * python.c (source_python_script): Add comment.
1873
        (source_python_script_for_objfile): Remove unnecessary call to
1874
        gdbpy_print_stack.
1875
 
1876
2010-05-18  Jan Kratochvil  
1877
            Sergio Durigan Junior  
1878
 
1879
        Code cleanup.
1880
        * parse.c (exp_iterate): Use operator_length wrapper function.
1881
 
1882
2010-05-18  Michael Snyder  
1883
 
1884
        * ada-lang.c: White space.
1885
        * ada-typeprint.c: White space.
1886
        * ada-valprint.c: White space.
1887
        * addrmap.c: White space.
1888
        * auxv.c: White space.
1889
        * ax-gdb.c: White space.
1890
 
1891
2010-05-18  Hui Zhu  
1892
 
1893
        * linux-fork.c (inferior_call_waitpid_cleanup): Add check
1894
        for oldfp.
1895
        (inferior_call_waitpid): Move make_cleanup out of check.
1896
        Check the return of waitpid.
1897
        (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
1898
 
1899
2010-05-17  Michael Snyder  
1900
 
1901
        * tui/tui.c: White space.
1902
        * tui/tui-data.c: White space.
1903
        * tui/tui-disasm.c: White space.
1904
        * tui/tui-file.c: White space.
1905
        * tui/tui-interp.c: White space.
1906
        * tui/tui-main.c: White space.
1907
        * tui/tui-out.c: White space.
1908
        * tui/tui-regs.c: White space.
1909
        * tui/tui-source.c: White space.
1910
        * tui/tui-stack.c: White space.
1911
        * tui/tui-win.c: White space.
1912
        * tui/tui-winsource.c: White space.
1913
 
1914
        * procfs.c: White space.
1915
 
1916
        * python/py-auto-load.c: White space.
1917
        * python/py-block.c: White space.
1918
        * python/py-breakpoint.c: White space.
1919
        * python/py-cmd.c: White space.
1920
        * python/py-function.c: White space.
1921
        * python/py-lazy-string.c: White space.
1922
        * python/py-objfile.c: White space.
1923
        * python/py-param.c: White space.
1924
        * python/py-prettyprint.c: White space.
1925
        * python/py-progspace.c: White space.
1926
        * python/py-symtab.c: White space.
1927
        * python/python.c: White space.
1928
        * python/py-type.c: White space.
1929
        * python/py-utils.c: White space.
1930
        * python/py-value.c: White space.
1931
 
1932
        * mi/mi-cmd-break.c: White space.
1933
        * mi/mi-cmd-env.c: White space.
1934
        * mi/mi-cmds.c: White space.
1935
        * mi/mi-cmd-stack.c: White space.
1936
        * mi/mi-cmd-var.c: White space.
1937
        * mi/mi-console.c: White space.
1938
        * mi/mi-getopt.c: White space.
1939
        * mi/mi-interp.c: White space.
1940
        * mi/mi-main.c: White space.
1941
        * mi/mi-out.c: White space.
1942
        * mi/mi-parse.c: White space.
1943
 
1944
        * cli/cli-cmds.c: White space.
1945
        * cli/cli-decode.c: White space.
1946
        * cli/cli-dump.c: White space.
1947
        * cli/cli-interp.c: White space.
1948
        * cli/cli-logging.c: White space.
1949
        * cli/cli-script.c: White space.
1950
        * cli/cli-setshow.c: White space.
1951
 
1952
        * valarith.c: White space.
1953
        * valops.c: White space.
1954
        * valprint.c: White space.
1955
        * value.c: White space.
1956
        * varobj.c: White space.
1957
        * xcoffread.c: White space.
1958
        * xml-support.c: White space.
1959
        * xml-tdesc.c: White space.
1960
 
1961
2010-05-17  Andreas Schwab  
1962
 
1963
        PR gdb/11092
1964
        * c-lang.c (c_printstr): Compute real length of NUL terminated
1965
        string at first.
1966
 
1967
2010-05-17  Joel Brobecker  
1968
 
1969
        * parse.c (parse_exp_in_context): When block is not NULL, use
1970
        its associated language to parse the expression instead of
1971
        the current_language.
1972
 
1973
2010-05-17  Joel Brobecker  
1974
 
1975
        * jv-lang.c (java_lookup_class): Remove commented out code.
1976
        (type_from_class): Likewise.
1977
        (java_op_print_tab): Remove commented-out elements.
1978
 
1979
2010-05-17  Joel Brobecker  
1980
 
1981
        * ada-lang.c (to_fixed_range_type): The the raw index type as
1982
        argument instead of the raw type name.  Remove orig_type parameter.
1983
        Update calls throughout.
1984
        (ada_fixup_array_indexes_type): New function.
1985
        (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
1986
        * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
1987
        * ada-typeprint.c (print_range_type): Renames print_range_type_named.
1988
        Remove name parameter.
1989
        (print_array_type): Add call to ada_fixup_array_indexes_type.
1990
        Update calls to print_range_type.
1991
        (ada_print_type): Update calls to print_range_type.
1992
 
1993
2010-05-17  Pierre Muller  
1994
 
1995
        * dwarf2read.c (read_set_type): Set type length if
1996
        DW_AT_byte_size attribute is present.
1997
 
1998
2010-05-17  Pierre Muller  
1999
 
2000
        * p-valprint.c (pascal_val_print): Handle set type if range limits
2001
        are undefined but size is known.
2002
 
2003
2010-05-17  Pedro Alves  
2004
 
2005
        * procfs.c: Reformat.
2006
 
2007
2010-05-16  Michael Snyder  
2008
 
2009
        * target.c: White space.
2010
        * target-descriptions.c: White space.
2011
        * target-memory.c: White space.
2012
        * thread.c: White space.
2013
        * top.c: White space.
2014
        * tracepoint.c: White space.
2015
        * trad-frame.c: White space.
2016
        * tramp-frame.c: White space.
2017
        * ui-file.c: White space.
2018
        * ui-out.c: White space.
2019
        * user-regs.c: White space.
2020
        * utils.c: White space.
2021
 
2022
        * scm-exp.c: White space.
2023
        * scm-lang.c: White space.
2024
        * scm-valprint.c: White space.
2025
        * sentinel-frame.c: White space.
2026
        * ser-base.c: White space.
2027
        * ser-go32.c: White space.
2028
        * serial.c: White space.
2029
        * ser-mingw.c: White space.
2030
        * ser-pipe.c: White space.
2031
        * ser-tcp.c: White space.
2032
        * ser-unix.c: White space.
2033
        * solib.c: White space.
2034
        * solib-darwin.c: White space.
2035
        * solib-frv.c: White space.
2036
        * solib-irix.c: White space.
2037
        * solib-osf.c: White space.
2038
        * solib-pa64.c: White space.
2039
        * solib-som.c: White space.
2040
        * solib-spu.c: White space.
2041
        * solib-svr4.c: White space.
2042
        * solib-target.c: White space.
2043
        * source.c: White space.
2044
        * stabsread.c: White space.
2045
        * stack.c: White space.
2046
        * std-regs.c: White space.
2047
        * symfile.c: White space.
2048
        * symmisc.c: White space.
2049
        * symtab.c: White space.
2050
 
2051
2010-05-16  Michael Snyder  
2052
 
2053
        * source.c (_initialize_source): Add "rev" as an abbreviation
2054
        for the "reverse-search" command.
2055
 
2056
2010-05-16  Michael Snyder  
2057
 
2058
        * record.c: White space.
2059
        * regcache.c: White space.
2060
        * reggroups.c: White space.
2061
        * remote-fileio.c: White space.
2062
        * remote-m32r-sdi.c: White space.
2063
        * remote-mips.c: White space.
2064
        * remote-sim.c: White space.
2065
        * remote.c: White space.
2066
        (process_g_packet): Remove orphan braces.
2067
 
2068
2010-05-15  Michael Snyder  
2069
 
2070
        * parse.c: White space.
2071
        * p-lang.c: White space.
2072
        * posix-hdep.c: White space.
2073
        * printcmd.c: White space.
2074
        * progspace.c: White space.
2075
        * prologue-value.c: White space.
2076
        * psymtab.c: White space.
2077
        * p-typeprint.c: White space.
2078
        * p-valprint.c: White space.
2079
 
2080
        * objc-lang.c: White space.
2081
        * objfiles.c: White space.
2082
        * observer.c: White space.
2083
        * osabi.c: White space.
2084
        * osdata.c: White space.
2085
 
2086
        * m2-lang.c: White space.
2087
        * m2-valprint.c: White space.
2088
        * macrocmd.c: White space.
2089
        * macroexp.c: White space.
2090
        * macroscope.c: White space.
2091
        * macrotab.c: White space.
2092
        * main.c: White space.
2093
        * maint.c: White space.
2094
        * mdebugread.c: White space.
2095
        * memattr.c: White space.
2096
        * minsyms.c: White space.
2097
        * monitor.c: White space.
2098
 
2099
2010-05-14  Michael Snyder  
2100
 
2101
        * jv-lang.c: White space.
2102
        * jv-typeprint.c: White space.
2103
        * jv-valprint.c: White space.
2104
        * language.c: White space.
2105
        * libunwind-frame.c: White space.
2106
        * linespec.c: White space.
2107
        * linux-nat.c: White space.
2108
        * linux-record.c: White space.
2109
        * linux-thread-db.c: White space.
2110
 
2111
        * infcall.c: White space.
2112
        * inf-child.c: White space.
2113
        * infcmd.c: White space.
2114
        * inferior.c: White space.
2115
        * inf-loop.c: White space.
2116
        * inflow.c: White space.
2117
        * inline-frame.c: White space.
2118
        * interps.c: White space.
2119
 
2120
        * gcore.c: White space.
2121
        * gdb.c: White space.
2122
        * gdbtypes.c: White space.
2123
        * gnu-nat.c: White space.
2124
        * gnu-v2-abi.c: White space.
2125
        * gnu-v3-abi.c: White space.
2126
 
2127
        * findcmd.c: White space.
2128
        * findvar.c: White space.
2129
        * fork-child.c: White space.
2130
        * frame-base.c: White space.
2131
        * frame.c: White space.
2132
        * frame-unwind.c: White space.
2133
        * f-valprint.c: White space.
2134
 
2135
        * elfread.c: White space.
2136
        * environ.c: White space.
2137
        * eval.c: White space.
2138
        * event-loop.c: White space.
2139
        * event-top.c: White space.
2140
        * exceptions.c: White space.
2141
        * exec.c: White space.
2142
        * expprint.c: White space.
2143
 
2144
        * dbxread.c: White space.
2145
        * dcache.c: White space.
2146
        * disasm.c: White space.
2147
        * doublest.c: White space.
2148
        * dsrec.c: White space.
2149
        * dummy-frame.c: White space.
2150
        * dwarf2expr.c: White space.
2151
        * dwarf2-frame.c: White space.
2152
        * dwarf2loc.c: White space.
2153
        * dwarf2read.c: White space.
2154
 
2155
2010-05-14  Phil Muldoon  
2156
 
2157
        PR python/11482
2158
 
2159
        * python/py-value.c (valpy_hash): New function.
2160
        (value_object_type): Register valpy_hash.
2161
 
2162
2010-05-14  Hui Zhu  
2163
            Michael Snyder  
2164
 
2165
        * linux-fork.c (gdbthread.h): New include.
2166
        (fork_info): Add parent_ptid.
2167
        (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
2168
        functions.
2169
        (delete_checkpoint_command): Call inferior_call_waitpid.
2170
        (checkpoint_command): Set parent_ptid.
2171
 
2172
2010-05-13  Michael Snyder  
2173
 
2174
        * dictionary.c: Re-indent to GNU coding standard.
2175
 
2176
        * charset.c: White space.
2177
        * c-lang.c: White space.
2178
        * cli-out.c: White space.
2179
        * coffread.c: White space.
2180
        * complaints.c: White space.
2181
        * completer.c: White space.
2182
        * corefile.c: White space.
2183
        * corelow.c: White space.
2184
        * cp-abi.c: White space.
2185
        * cp-namespace.c: White space.
2186
        * cp-support.c: White space.
2187
        * cp-valprint.c: White space.
2188
        * c-typeprint.c: White space.
2189
        * c-valprint.c: White space.
2190
        * blockframe.c: White space.
2191
        * breakpoint.c: White space.
2192
        * buildsym.c: White space.
2193
        * blockframe.c: White space.
2194
        * bcache.c: White space.
2195
        * gdbarch.sh: White space, add blank lines.
2196
        * arch-utils.c: Ditto.
2197
        * gdbarch.c: Regenerate.
2198
        * frame.c: White space, add blank lines.
2199
        * stack.c: White space, add blank lines.
2200
        (initialize_stack): Remove long-dead code.
2201
 
2202
2010-05-13  Jan Kratochvil  
2203
 
2204
        Code cleanup.
2205
        * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
2206
        (locexpr_read_variable, loclist_read_variable): Update the callers.
2207
 
2208
2010-05-13  Jan Kratochvil  
2209
 
2210
        Code cleanup.
2211
        * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
2212
        Remove check of NULL returned by tag_type_to_type.
2213
        (die_containing_type): Remove variable type.  Remove type_die variable
2214
        initialization.  Remove check of NULL returned by tag_type_to_type.
2215
 
2216
2010-05-11  Pierre Muller  
2217
 
2218
        PR exp/11530.
2219
        * gdbtypes.c (lookup_struct_elt_type): Also lookup
2220
        names of unnamed structures or unions.
2221
 
2222
2010-05-11  Pierre Muller  
2223
 
2224
        * procfs.c (proc_watchpoint_address): New function.
2225
        (procfs_stopped_by_watchpoint): Remove useless check after
2226
        find_procinfo_or_die call.
2227
        (procfs_stopped_data_address): New function.
2228
        (procfs_use_watchpoints): Register new watchpoint related function.
2229
 
2230
2010-05-11  Tom Tromey  
2231
 
2232
        * eval.c (evaluate_subexp_standard): Revert inadvertent change.
2233
 
2234
2010-05-10  Michael Snyder  
2235
 
2236
        * utils.c: White space cleanup.
2237
 
2238
2010-05-10  Tom Tromey  
2239
 
2240
        * eval.c (ptrmath_type_p): Add 'lang' argument.
2241
        (evaluate_subexp_standard): Update.
2242
        (evaluate_subexp_with_coercion): Update.
2243
        * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
2244
 
2245
2010-05-10  Michael Snyder  
2246
 
2247
        * utils.c (do_fclose_cleanup) Restore local variable.
2248
 
2249
2010-05-09  Doug Evans  
2250
 
2251
        * record.c (init_record_core_ops): Rename record_core to record-core.
2252
 
2253
2010-05-08  Joel Brobecker  
2254
 
2255
        Implement task switching on pa-hpux.
2256
        * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
2257
        (inf_ttrace_target): Set t->to_get_ada_task_ptid.
2258
 
2259
2010-05-08  Pierre Muller  
2260
 
2261
        * valops.c (find_overload_match): Add missing i18n markup.
2262
 
2263
2010-05-08  Pierre Muller  
2264
 
2265
        * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
2266
 
2267
2010-05-08  Jan Kratochvil  
2268
 
2269
        * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
2270
        list for the obconcat call.
2271
        * mdebugread.c (parse_symbol): Likewise.
2272
        * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
2273
        Likewise.
2274
        * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
2275
        New variable ap.  Remove variables len and val.
2276
        * symfile.h (obconcat): Likewise for the prototype.
2277
 
2278
2010-05-07  Michael Snyder  
2279
 
2280
        * python/python.c (execute_gdb_command): Remove unused variables.
2281
        * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
2282
        * python/py-breakpoint.c (gdbpy_breakpoint_created):
2283
        Remove unused variable.
2284
        * python/py-cmd.c (cmdpy_function): Remove unused variable.
2285
        (cmdpy_completer): Remove unused variable.
2286
        * python/py-frame.c (frapy_find_sal): Remove unused variable.
2287
        * python/py-function.c (fnpy_call): Remove unused variable.
2288
        * python/py-objfile.c (objfile_to_objfile_object):
2289
        Remove unused variable.
2290
        * python/py-param.c (parmpy_init): Remove unused variable.
2291
        * python/py-prettyprint.c (apply_varobj_pretty_printer):
2292
        Remove unused variable.
2293
        (gdbpy_default_visualizer): Remove unused variable.
2294
        * python/py-progspace.c (pspace_to_pspace_object):
2295
        Remove unused variable.
2296
        * python/py-symtab.c (symtab_and_line_to_sal_object):
2297
        Remove unused variable.
2298
        * python/py-type.c (typy_template_argument):
2299
        Remove unused variable.
2300
        * python/py-value.c (valpy_string): Remove unused variable.
2301
        (convert_value_from_python): Remove unused variables.
2302
 
2303
2010-05-07  Michael Snyder  
2304
 
2305
        * valops.c (value_cast_pointers): Restore unused variable 'type1',
2306
        and use it to compute variable 't1'.
2307
 
2308
2010-05-07  Joel Brobecker  
2309
 
2310
        * ada-lang.c (assign_aggregate): Remove unused variable.
2311
 
2312
2010-05-07  Sami Wagiaalla  
2313
 
2314
        PR C++/7943:
2315
        * valops.c (find_overload_match): Handle fsym == NULL case.
2316
        Add int no_adl argument.
2317
        (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
2318
        when appropriate.
2319
        Add int no_adl argument.
2320
        (find_oload_champ_namespace):   Add int no_adl argument.
2321
        * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
2322
        expression.
2323
        * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
2324
        * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
2325
        Evaluate arguments and use them to perform ADL lookup.
2326
        Pass no_adl argument to find_overload_match.
2327
        Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
2328
        * cp-support.h: Added prototype for
2329
        make_symbol_overload_list_namespace.
2330
        * cp-support.c (make_symbol_overload_list_namespace): New function.
2331
        (make_symbol_overload_list_adl_namespace): New function.
2332
        (make_symbol_overload_list_adl): New function.
2333
        (make_symbol_overload_list_using): Moved code to add function to
2334
        overload set to make_symbol_overload_list_namespace.
2335
        * c-exp.y: create UNKNOWN_CPP_NAME token.
2336
        Add parse rule for ADL functions.
2337
        (classify_name): Recognize an UNKNOWN_CPP_NAME.
2338
 
2339
2010-05-07  Jan Kratochvil  
2340
 
2341
        * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
2342
        sentinel.
2343
 
2344
2010-05-07  Joel Brobecker  
2345
 
2346
        Implement task switching on solaris targets.
2347
        * sol-thread.c (thread_db_find_thread_from_tid)
2348
        (sol_get_ada_task_ptid): New functions.
2349
        (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
2350
 
2351
2010-05-07  Pedro Alves  
2352
 
2353
        * remote.c (remote_query_supported_append): Use reconcat.
2354
        (remote_query_supported): Install a cleanup.  Use reconcat.
2355
 
2356
2010-05-07  Pedro Alves  
2357
 
2358
        * gdbarch.sh (qsupported): Delete.
2359
        * gdbarch.h, gdbarch.c: Regenerate.
2360
        * remote.c (remote_query_supported): Remove use of
2361
        gdbarch_qsupported.
2362
 
2363
2010-05-06  Sergio Durigan Junior  
2364
 
2365
        * xml-syscall.c (syscall_start_syscalls_info): Remove unused
2366
        function.
2367
 
2368
2010-05-06  Michael Snyder  
2369
 
2370
        * xml-support.c (xinclude_start_include): Delete unused variable.
2371
        (xml_process_xincludes): Delete unused variable.
2372
        * xml-syscall.c (syscall_parse_xml): Delete unused variable.
2373
        * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
2374
        (tdesc_find_arch_register): Delete unused variable.
2375
        (tdesc_use_registers): Delete unused variable.
2376
        * xml-tdesc.c (tdesc_start_target): Delete unused variable.
2377
        * inferior.c (print_inferior): Delete unused variable.
2378
        * record.c (record_open_1): Delete unused variable.
2379
        (record_restore): Delete unused variable.
2380
        (cmd_record_save): Delete unused variable.
2381
        * gcore.c (derive_heap_segment): Delete unused variable.
2382
        (objfile_find_memory_regions): Use unused variable.
2383
        * jit.c (jit_inferior_init): Delete unused variable.
2384
        * progspace.c (clone_program_space): Delete unused variable.
2385
        (pspace_empty_p): Delete unused variable.
2386
 
2387
        * frame-unwind.c (frame_unwind_find_by_frame):
2388
        Delete unused variable.
2389
        * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
2390
        * cp-support.c (mangled_name_to_comp): Delete unused variable.
2391
        (method_name_from_physname): Delete unused variable.
2392
        (cp_func_name): Delete unused variable.
2393
        (cp_validate_operator): Delete unused variable.
2394
        * cp-namespace.c (cp_scan_for_anonymous_namespaces):
2395
        Delete unused variable.
2396
        * trad-frame.c (trad_frame_get_prev_register):
2397
        Delete unused variable.
2398
        * tramp-frame.c (tramp_frame_cache): Delete unused variable.
2399
 
2400
        * serial.c (serial_for_fd): Delete unused variable.
2401
        * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
2402
        * top.c (execute_command): Delete unused variable.
2403
        (init_main): Delete unused variable.
2404
        * utils.c (do_fclose_cleanup): Delete unused variable.
2405
        (do_all_inferior_continuations): Delete unused variable.
2406
        (initialize_utils): Delete unused variable.
2407
        (internal_problem_mode): Delete unused global.
2408
        * frame.c (get_prev_frame): Delete unused global.
2409
        (get_frame_locals_address): Delete unused global.
2410
        (get_frame_args_address): Delete unused global.
2411
 
2412
        * p-typeprint.c (pascal_type_print_base): Delete unused variable.
2413
        (pascal_type_print_varspec_prefix): Delete unused variable.
2414
        * f-typeprint.c (f_type_print_base): Delete unused variable.
2415
        (f_type_print_varspec_suffix): Delete unused variable.
2416
        * m2-typeprint.c (m2_print_type): Delete unused variable.
2417
        (m2_long_set): Delete unused variable.
2418
        * ada-valprint.c (ada_val_print_1): Delete unused variable.
2419
        * d-valprint.c (dynamic_array_type): Delete unused variable.
2420
        * f-valprint.c (f77_get_dynamic_length_of_aggregate):
2421
        Delete unused variable.
2422
        (f77_create_arrayprint_offset_tbl): Delete unused variable.
2423
        * m2-valprint.c (m2_val_print): Delete unused variable.
2424
 
2425
        * ui-out.c (ui_out_field_int): Delete unused variable.
2426
        (ui_out_field_fmt_int): Delete unused variable.
2427
        * varobj.c (varobj_list_children): Delete unused variable.
2428
        (varobj_set_value): Delete unused variable.
2429
        (install_new_value_visualizer): Delete unused variable.
2430
        (varobj_set_visualizer): Delete unused variable.
2431
        (varobj_update): Delete unused variable.
2432
        (varobj_editable_p): Delete unused variable.
2433
        (c_value_of_root): Delete unused variable.
2434
        (cplus_describe_child): Delete unused variable.
2435
 
2436
        * ada-lang.c (add_defn_to_vec): Delete unused variable.
2437
        (decode_constrained_packed_array_type): Delete unused variable.
2438
        (add_defn_to_vec): Delete unused variable.
2439
        (symbol_completion_match): Delete unused variable.
2440
        (value_tag_from_contents_and_address): Delete unused variable.
2441
        (ada_evaluate_subexp): Delete unused variable.
2442
        * c-lang.c (classify_type): Delete unused variable.
2443
        * f-lang.c (f_printstr): Delete unused variable.
2444
        * objc-lang.c (objc_printstr): Delete unused variable.
2445
        * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
2446
        * jv-lang.c (type_from_class): ifdef unused variable.
2447
        (java_class_name_from_physname): Delete unused variable.
2448
        * m2-lang.c (m2_printstr): Delete unused variable.
2449
 
2450
        * objfiles.c (objfile_relocate): Delete unused variable.
2451
        * maint.c (_initialize_maint_cmds): Delete unused variable.
2452
        * demangle.c (_initialize_demangler): Delete unused variable.
2453
        * corefile.c (reopen_exec_file): Delete unused variable.
2454
        * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
2455
        * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
2456
 
2457
        * osabi.c (_initialize_gdb_osabi): Delete unused variable.
2458
        * memattr.c (mem_delete): Delete unused variable.
2459
        (invalidate_target_mem_regions): Delete unused variable.
2460
        * mem-break.c (default_memory_insert_breakpoint):
2461
        Delete unused variable.
2462
        * target.c (target_get_osdata): Delete unused variable.
2463
        * parse.c (length_of_subexp): Delete unused variable.
2464
        (prefixify_subexp): Delete unused variable.
2465
        (exp_iterate): Delete unused variable.
2466
        * reverse.c (delete_bookmark_command): Delete unused variable.
2467
 
2468
        * macrocmd.c (_initialize_macrocmd): Delete unused variable.
2469
        * macroexp.c (gather_arguments): Delete unused variable.
2470
        (substitute_args): Delete unused variable.
2471
        * completer.c (gdb_completer_loc_break_characters): Unused, delete.
2472
        * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
2473
        (_initialize_gdbarch): Delete unused variable.
2474
        * gdbarch.c, gdbarch.h: Regenerate.
2475
        * arch-utils.c (initialize_current_architecture):
2476
        Delete unused variable.
2477
        (_initialize_gdbarch_utils): Delete unused variable.
2478
        * gdbtypes.c (make_cv_type): Delete unused variable.
2479
        (make_type_with_address_space): Delete unused variable.
2480
 
2481
        * linespec.c (decode_compound): Delete unused variable.
2482
        * dictionary.c (iterator_next_hashed): Delete unused variable.
2483
        * infcall.c (call_function_by_hand): Delete unused variable.
2484
        * infcmd.c (step_1): Delete unused variable.
2485
        (registers_info): Delete unused variable.
2486
        (attach_command): Delete unused variable.
2487
        * infrun.c (follow_exec): Delete unused variable.
2488
        (handle_step_into_function_backwards): Delete unused variable.
2489
        (_initialize_infrun): Delete unused variable.
2490
        * stack.c (parse_frame_specification_1): Delete unused variable.
2491
        (frame_info): Delete unused variable.
2492
        (backtrace_command_1): Delete unused variable.
2493
        (catch_info): Delete unused variable.
2494
 
2495
        * eval.c (evaluate_subexp_standard): Delete unused variable.
2496
        * valops.c (value_cast_pointers): Delete unused variable.
2497
        (value_dynamic_cast): Delete unused variable.
2498
        (value_array): Delete unused variable.
2499
        (find_overload_match): Delete unused variable.
2500
        * valarith.c (value_subscript): Delete unused variable.
2501
        (value_binop): Delete unused variable.
2502
        * valprint.c (_initialize_valprint): Delete unused variable.
2503
        * printcmd.c (print_command_1): Delete unused variable.
2504
        (address_info): Delete unused variable.
2505
        (printf_command): Delete unused variable.
2506
 
2507
        * auxv.c (target_auxv_search): Delete unused variable.
2508
        * blockframe.c (get_frame_block): Delete unused variable.
2509
        * regcache.c (regcache_cpy): Delete unused variable.
2510
        (regcache_cpy_no_passthrough): Delete unused variable.
2511
        * charset.c (wchar_iterate): Delete unused variable.
2512
        (find_charset_names): Delete unused variable.
2513
        (_initialize_charset): Delete unused variable.
2514
        * disasm.c (do_mixed_source_and_assembly):
2515
        Delete unused variable.
2516
        * source.c (set_default_source_symtab_and_line):
2517
        Delete unused variable.
2518
        (set_substitute_path_command): Delete unused variable.
2519
        * value.c (preserve_values): Delete unused variable.
2520
        (value_from_double): Delete unused variable.
2521
 
2522
2010-05-05  Michael Snyder  
2523
 
2524
        * psymtab.c (lookup_partial_symbol): Delete unused variable.
2525
        (find_last_source_symtab_from_partial): Delete unused variable.
2526
        * symfile.c (place_section): Delete unused variable.
2527
        (default_symfile_offsets): Delete unused variable.
2528
        (get_debug_link_info): Delete unused variable.
2529
        (find_separate_debug_file_by_debuglink): Delete unused variable.
2530
        (add_symbol_file_command): Delete unused variable.
2531
        (symfile_find_segment_sections): Delete unused variable.
2532
        * symmisc.c (free_symtab): Delete unused variable.
2533
        (dump_symtab_1): Delete unused variable.
2534
        * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
2535
        (find_pc_sect_symtab): Delete unused variable.
2536
        (skip_prologue_using_lineinfo): Delete unused variable.
2537
        (sources_info): Delete unused variable.
2538
        (completion_list_add_name): Delete unused variable.
2539
        (expand_line_sal): Delete unused variable.
2540
 
2541
        * breakpoint.c (validate_commands_for_breakpoint):
2542
        Delete unused variables.
2543
        (insert_catchpoint): Delete unused variable.
2544
        (update_watchpoint): Delete unused variable.
2545
        (insert_bp_location): Delete unused variable.
2546
        (insert_breakpoint_locations): Delete unused variable.
2547
        (remove_breakpoint_1): Delete unused variable.
2548
        (software_breakpoint_inserted_here_p): Delete unused variable.
2549
        (watchpoints_triggered): Delete unused variable.
2550
        (bpstat_check_watchpoint): Delete unused variable.
2551
        (bpstat_stop_status): Delete unused variable.
2552
        (print_one_breakpoint_location): Delete unused variable.
2553
        (allocate_bp_location): Delete unused variable.
2554
        (create_breakpoint): Delete unused variable.
2555
        (watch_command_1): Delete unused variable.
2556
        (catch_exception_command_1): Delete unused variable.
2557
        (catch_ada_exception_command): Delete unused variable.
2558
        (delete_breakpoint): Delete unused variable.
2559
        (breakpoint_re_set_one): Delete unused variable.
2560
        (do_enable_breakpoint): Delete unused variable.
2561
 
2562
2010-05-06  Pedro Alves  
2563
 
2564
        * amd64-tdep.c: Include disasm.h.
2565
        (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
2566
        (amd64_insn_length): Moved to disasm.c and renamed.
2567
        (fixup_riprel): Adjust.
2568
        * disasm.c (do_ui_file_delete): New.
2569
        (gdb_insn_length): New.
2570
        (gdb_buffered_insn_length_fprintf)
2571
        (gdb_buffered_insn_length_init_dis)
2572
        (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
2573
        renamed.
2574
        * disasm.h (gdb_insn_length): Declare.
2575
        (gdb_buffered_insn_length): Declare.
2576
 
2577
2010-05-06  Pedro Alves  
2578
 
2579
        * remote.c (clear_threads_parsing_context): New.
2580
        (remote_threads_info): Delete unused null_cleanup.  Install a
2581
        cleanup to clear the threads_parsing_context in case parsing
2582
        throws.
2583
 
2584
2010-05-05  Michael Snyder  
2585
 
2586
        * c-exp.y (parse_string_or_char): Delete unused variable.
2587
        (c_lex): Delete unused variable.
2588
        * cp-name-parser.y (cpname_lex): Delete unused variable.
2589
        * ada-exp.y (find_primitive_type): Delete unused variable.
2590
        (write_var_or_type): Delete unused variable.
2591
        * jv-exp.y (java_parse): Delete unused variable.
2592
        (push_expression_name): Delete unused variable.
2593
        * p-exp.y (pascal_lex): Delete unused variable.
2594
 
2595
2010-05-05  Pedro Alves  
2596
 
2597
        * remote.c (remote_threads_info): Really revert previous previous
2598
        change.
2599
 
2600
2010-05-05  Michael Snyder  
2601
 
2602
        * elfread.c (elf_symtab_read): Delete unused variable.
2603
        (find_separate_debug_file_by_buildid): Delete unused variables.
2604
        (elf_symfile_read): Delete unused variable.
2605
 
2606
        * coffread.c (coff_symfile_read): Delete unused variables.
2607
 
2608
        * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
2609
        (read_pe_exported_syms): Delete unused variable.
2610
 
2611
        * stabsread.c (define_symbol): Delete unused variable.
2612
 
2613
        * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
2614
        (process_psymtab_comp_unit): Delete unused variable.
2615
        (dwarf2_build_psymtabs_hard): Delete unused variable.
2616
        (load_partial_comp_unit): Delete unused variable.
2617
        (create_all_comp_units): Delete unused variable.
2618
        (scan_partial_symbols): Delete unused variable.
2619
        (add_partial_symbol): Delete unused variable.
2620
        (add_partial_namespace): Delete unused variable.
2621
        (add_partial_enumeration): Delete unused variable.
2622
        (load_full_comp_unit): Delete unused variable.
2623
        (process_full_comp_unit): Delete unused variable.
2624
        (read_file_scope): Delete unused variable.
2625
        (read_type_unit_scope): Delete unused variable.
2626
        (process_structure_scope): Delete unused variable.
2627
        (process_enumeration_scope): Delete unused variable.
2628
        (read_tag_ptr_to_member_type): Delete unused variable.
2629
        (read_typedef): Delete unused variable.
2630
        (read_partial_die): Delete unused variable.
2631
        (decode_locdesc): Delete unused variable.
2632
        (zeroed_partial_die): Delete unused global variable.
2633
 
2634
        * tui/tui-interp.c (_initialize_tui_interp):
2635
        Delete unused variable.
2636
        * tui/tui-regs.c tui_display_registers_from):
2637
        Delete unused variable.
2638
        (tui_check_register_values): Delete unused variable.
2639
        (tui_register_format): Delete unused variable.
2640
        * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
2641
        * tui/tui-windata.c (tui_display_data_from_line):
2642
        Delete unused variables.
2643
        (tui_vertical_data_scroll): Delete unused variables.
2644
 
2645
2010-05-05  Michael Snyder  
2646
 
2647
        * remote.c (remote_threads_info): Revert questionable part of
2648
        the previous change.
2649
 
2650
2010-05-05  Michael Snyder  
2651
 
2652
        * mi/mi-out.c (mi_table_begin): Delete unused variable.
2653
        * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
2654
        (mi_cmd_var_list_children): Delete unused variable.
2655
        (varobj_update_one): Delete unused variable.
2656
        * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
2657
        * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
2658
        Delete unused variable.
2659
        (mi_cmd_stack_list_variables): Delete unused variable.
2660
        (list_args_or_locals): Delete unused variable.
2661
        * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
2662
        Delete unused variables.
2663
        (mi_cmd_file_list_exec_source_files): Delete unused variable.
2664
        * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
2665
        Delete unused variable.
2666
        * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
2667
        (mi_cmd_interpreter_exec): Delete unused variable.
2668
        (mi_on_normal_stop): Delete unused variable.
2669
        * mi/mi-main.c (run_one_inferior): Delete unused variable.
2670
        (print_one_inferior): Delete unused variables.
2671
        (mi_execute_command): Delete unused variable.
2672
        (mi_cmd_execute): Delete unused variable.
2673
        (timestamp): Delete unused variable.
2674
 
2675
        * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
2676
        (restore_binary_file): Delete unused variable.
2677
        * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
2678
        * cli/cli-script.c (define_command): Delete unused variables.
2679
        (recurse_read_control_structure): Delete unused variable.
2680
        (script_from_file): Delete unused variable.
2681
        * cli/cli-cmds.c (complete_command): Delete unused variable.
2682
        (disassemble_command): Delete unused variable.
2683
 
2684
        * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
2685
        * tracepoint.c (delete_trace_variable_command):
2686
        Delete unused variables.
2687
        (encode_actions_1): Delete unused variables.
2688
        (start_tracing): Delete unused variable.
2689
        (trace_status_mi): Delete unused variable.
2690
        (tfind_1): Delete unused variable.
2691
        (trace_find_pc_command): Delete unused variable.
2692
        (trace_find_line_command): Delete unused variables.
2693
        (trace_find_range_command): Delete unused variables.
2694
        (trace_find_outside_command): Delete unused variables.
2695
        (parse_tracepoint_definition): Delete unused variables.
2696
        (tfile_fetch_registers): Delete unused variable.
2697
 
2698
        * dcache.c (dcache_init): Delete unused variable.
2699
        (dcache_info): Delete unused variable.
2700
 
2701
        * remote.c (remote_threads_info): Delete unused variable.
2702
        (process_stop_reply) :Delete unused variable.
2703
        (remote_get_trace_status): Delete unused variables.
2704
 
2705
        * linux-thread-db.c (add_thread_db_info): Delete unused variable.
2706
        (thread_from_lwp): Delete unused variable.
2707
        (enable_thread_event_reporting): Delete unused variable.
2708
        (check_for_thread_db): Delete unused variables.
2709
        (thread_db_find_new_threads_2): Delete unused variable.
2710
 
2711
        * linux-fork.c (info_checkpoints_command): Delete unused variables.
2712
        (checkpoint_command): Delete unused variable.
2713
        (linux_fork_context): Delete unused variables.
2714
 
2715
        * linux-nat.c (linux_parent_pid): Delete unused global variable.
2716
        (linux_tracefork_child): Delete unused variable.
2717
        (linux_child_follow_fork): Delete unused variable.
2718
        (linux_nat_detach): Delete unused variable.
2719
        (linux_handle_extended_wait): Delete unused variable.
2720
        (linux_nat_has_pending_sigint): Delete unused variable.
2721
        (linux_nat_find_memory_regions): Delete unused variable.
2722
        (linux_nat_make_corefile_notes): Delete unused variables.
2723
        (linux_nat_info_proc_cmd): Delete unused variable.
2724
        (linux_proc_pending_signals): Delete unused variable.
2725
        (linux_nat_stop_lwp): Delete unused variables.
2726
        (_initialize_linux_nat): Delete unused variable.
2727
 
2728
        * ser-pipe.c (pipe_ops): Delete unused global variable.
2729
 
2730
        * linux-record.c (record_linux_system_call):
2731
        Delete unused variables.
2732
 
2733
        * corelow.c (core_xfer_partial): Delete unused variables.
2734
 
2735
        * solib-svr4.c (find_program_interpreter): Delete unused variable.
2736
        (svr4_solib_create_inferior_hook): Add ifdef around
2737
        conditionally-used variable declarations.
2738
 
2739
        * solib.c (solib_find): Delete unused variable.
2740
        (free_so_symbols): Delete unused variable.
2741
        (info_sharedlibrary_command): Delete unused variable.
2742
        (reload_shared_libraries_1): Delete unused variable.
2743
        (_initialize_solib): Delete unused variable.
2744
 
2745
        * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
2746
        (i386_collect_xstateregset): Delete unused variable.
2747
        * i387-tdep.c (i387_print_float_info): Delete unused variable.
2748
 
2749
        * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
2750
        Delete unused variable 'type'.
2751
 
2752
2010-05-05  Joel Brobecker  
2753
 
2754
        * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros.  *
2755
        ada-lang.c: Remove comment mentioning these macros.
2756
        * m2-exp.y: Delete commented out code.
2757
 
2758
2010-05-05  Joel Brobecker  
2759
 
2760
        * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
2761
        for array types.
2762
        * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
2763
 
2764
2010-05-04  Pierre Muller  
2765
 
2766
        ARI fix: Remove ATTRIBUTE_UNUSED throughout.
2767
        * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
2768
        ATTRIBUTE_UNUSED.
2769
        (cleanup_kernel_helper_return): Likewise.
2770
        * arm-tdep.c (copy_unmodified): Likewise.
2771
        (copy_preload): Likewise.
2772
        (copy_copro_load_store): Likewise.
2773
        (cleanup_branch): Likewise.
2774
        (copy_b_bl_blx): Likewise.
2775
        (copy_bx_blx_reg): Likewise.
2776
        (copy_alu_imm): Likewise.
2777
        (copy_alu_reg): Likewise.
2778
        (copy_alu_shifted_reg): Likewise.
2779
        (cleanup_load): Likewise.
2780
        (cleanup_store): Likewise.
2781
        (cleanup_block_load_pc): Likewise.
2782
        (cleanup_svc): Likewise.
2783
        (copy_undef): Likewise.
2784
        (copy_unpred): Likewise.
2785
        * remote.c (register_remote_support_xml): Likewise.
2786
 
2787
2010-05-05  Hui Zhu  
2788
 
2789
        * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
2790
 
2791
2010-05-04  Mark Kettenis  
2792
 
2793
        * remote.c (register_remote_support_xml)
2794
        (remote_query_supported_append, remote_query_supported): Add cast
2795
        to NULL used as sentinel.
2796
        * tracepoint.c (tvariables_info_1): Likewise.
2797
        * utils.c (add_internal_problem_command): Likewise.
2798
 
2799
2010-05-04  Matthew Gretton-Dann  
2800
 
2801
        * dwarf2loc.c (read_pieced_value, write_pieced_value,
2802
        dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
2803
        registers gracefully.
2804
 
2805
2010-05-04  Matthew Gretton-Dann  
2806
 
2807
        * exec.c (print_section_info): Display entry point without arch
2808
        specific parts.
2809
 
2810
2010-05-04  Pierre Muller  
2811
 
2812
        PR exp/11349.
2813
        * printcmd.c (x_command): Only dereference once implicitly for
2814
        TYPE_CODE_REF.
2815
 
2816
2010-05-03  Doug Evans  
2817
 
2818
        * event-loop.c (gdb_timer): Delete unused global.
2819
        (create_timer): Update.
2820
 
2821
2010-05-03  Jan Kratochvil  
2822
 
2823
        * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
2824
        CURRENT->DECLARATION case.
2825
        * cp-support.h (struct using_direct): Provide extended comment.
2826
 
2827
2010-05-03  Mark Kettenis  
2828
 
2829
        * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
2830
        HPPABSD_SIZEOF_GREGS.
2831
        (HPPAOBSD_SIZEOF_FPREGS): New define.
2832
        (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
2833
        (hppaobsd_supply_fpregset): New function.
2834
        (hppaobsd_gregset): Renamed from hppabsd_gregset.
2835
        (hppaobsd_fpregset): New variable.
2836
        (hppaobsd_regset_from_core_section): Handle floating-point registers.
2837
        (_initialize_hppabsd_tdep): Remove spurious blank line.
2838
 
2839
2010-05-03  Pierre Muller  
2840
 
2841
        PR pascal/11349.
2842
        * p-valprint.c (pascal_value_print): Always dereference a value with
2843
        type code TYPE_CODE_REF.
2844
 
2845
2010-05-03  Pedro Alves  
2846
 
2847
        * remote.c (remote_notice_signals): New.
2848
        (remote_start_remote): In non-stop mode, update the remote end on
2849
        which signals it can silently pass.
2850
        (init_remote_ops): Install remote_notice_signals.
2851
 
2852
2010-05-02  Jan Kratochvil  
2853
 
2854
        * cli/cli-cmds.h (error_no_arg): Remove.  Move the comment ...
2855
        * command.h (error_no_arg): ... here.  Remove NORETURN, change
2856
        ATTR_NORETURN to ATTRIBUTE_NORETURN.
2857
        * defs.h (NORETURN, ATTR_NORETURN): Remove.
2858
        (perror_with_name, verror, error, error_stream, vfatal, fatal)
2859
        (internal_verror, internal_error, nomem): Remove NORETURN, change
2860
        ATTR_NORETURN to ATTRIBUTE_NORETURN.
2861
        * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
2862
        (throw_vfatal, throw_error): Remove NORETURN.
2863
        (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
2864
        * exceptions.h (throw_exception, throw_verror, throw_vfatal)
2865
        (throw_error, deprecated_throw_reason): Remove NORETURN, change
2866
        ATTR_NORETURN to ATTRIBUTE_NORETURN.
2867
        * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
2868
        to ATTRIBUTE_NORETURN for prototype, for the definition only remove
2869
        NORETURN.
2870
        * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
2871
        * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
2872
        ATTRIBUTE_NORETURN.
2873
        * target.c (tcomplain): Likewise.
2874
        * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
2875
        ATTRIBUTE_NORETURN.
2876
        * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
2877
        (internal_error, perror_with_name, nomem): Remove NORETURN.
2878
        * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
2879
        ATTRIBUTE_NORETURN.
2880
 
2881
2010-05-02  Jan Kratochvil  
2882
 
2883
        * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2884
        * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
2885
        * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
2886
        (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2887
        * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
2888
        (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2889
        * complaints.h (complaint, internal_complaint): Likewise.
2890
        * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
2891
        (ATTR_FORMAT): Remove.
2892
        (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
2893
        (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
2894
        (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
2895
        (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
2896
        (xsnprintf, verror, error, vfatal, fatal, internal_verror)
2897
        (internal_error, internal_vwarning, internal_warning, warning)
2898
        (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2899
        * disasm.c (fprintf_disasm): Likewise.
2900
        * exceptions.c (throw_it): Likewise.
2901
        * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
2902
        (throw_error): Likewise.
2903
        * language.h (type_error, range_error): Likewise.
2904
        * linespec.c (cplusplus_error): Likewise.
2905
        * mi/mi-interp.c (mi_interp_query_hook): Likewise.
2906
        * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
2907
        * monitor.c (monitor_debug): Likewise.
2908
        * parser-defs.h (parser_fprintf): Likewise.
2909
        * serial.h (serial_printf): Likewise.
2910
        * tui/tui-hooks.c (tui_query_hook): Likewise.
2911
        * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
2912
        (uo_message): Likewise.
2913
        * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
2914
        * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
2915
        Likewise.
2916
        * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
2917
 
2918
2010-05-02  Pedro Alves  
2919
 
2920
        * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
2921
        (cli_table_header, cli_begin, cli_end, cli_field_int)
2922
        (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
2923
        (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
2924
        Delete forward declarations.
2925
        (cli_ui_out_impl): Move below the callbacks.
2926
        (_initialize_cli_out): Delete.
2927
 
2928
2010-05-02  Pedro Alves  
2929
 
2930
        * README: Use consistent `GDB' and `GDBserver' spellings.
2931
 
2932
2010-05-02  Jan Kratochvil  
2933
 
2934
        * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
2935
 
2936
2010-05-01  Pedro Alves  
2937
 
2938
        * infrun.c (prepare_for_detach): In non-stop, context switch to
2939
        the thread that got the event before handling the event.
2940
 
2941
2010-04-30  Tom Tromey  
2942
 
2943
        * symtab.c (symbol_set_names): Fix typo.
2944
 
2945
2010-04-30  Pierre Muller  
2946
 
2947
        * python/py-param.c (parm_constants): Avoid ARI warning
2948
        by adding ARI comment.
2949
        (parmpy_init): Likewise.
2950
 
2951
2010-04-30  Pierre Muller  
2952
 
2953
        * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
2954
        and created type for re-use.
2955
 
2956
2010-04-30  Pierre Muller  
2957
 
2958
        * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
2959
 
2960
2010-04-29  Doug Evans  
2961
 
2962
        * ser-base.h (reschedule): Delete prototype.
2963
        * ser-base.c (reschedule): Make static.
2964
 
2965
2010-04-29  Matthew Gretton-Dann  
2966
 
2967
        * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
2968
        (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
2969
        (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
2970
        EABI.
2971
        (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
2972
        use.
2973
 
2974
2010-04-29  Pedro Alves  
2975
 
2976
        PR gdb/11557
2977
 
2978
        * regcache.c (registers_changed): Rename to ...
2979
        (registers_changed_ptid): ... this, and only delete register cache
2980
        entries matching the ptid filter argument.
2981
        (registers_changed): Reimplement on top of registers_changed_ptid.
2982
        * regcache.h (registers_changed_ptid): Declare.
2983
        * target.c (target_resume): Flush register caches.
2984
 
2985
2010-04-29  Phil Muldoon  
2986
            Tom Tromey  
2987
            Thiago Jung Bauermann  
2988
 
2989
        * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
2990
        (SUBDIR_PYTHON_SRCS): Likewise.
2991
        (py-parameter.o): New rule.
2992
        * python/py-parameter.c: New file.
2993
        * python/python-internal.h (gdbpy_initialize_parameter)
2994
        (gdbpy_parameter, gdbpy_parameter_value)
2995
        (gdbpy_parse_command_name): Declare.
2996
        * python/py-cmd.c (parse_command_name): Rename to
2997
        gdbpy_parse_command_name.
2998
        (gdbpy_parse_command_name): Accept a starting list parameter and
2999
        use over cmdlist.
3000
        (cmdpy_init): Use gdbpy_parse_command_name.
3001
        * python/python.c (parameter_to_python): Rename to
3002
        gdbpy_parameter_to_python.  Accept enum var_types and value.
3003
        (gdbpy_parameter): Use gdbpy_parameter_value.
3004
        (_initialize_python): Call gdbpy_initialize_parameters.
3005
 
3006
2010-04-29  Matthew Gretton-Dann  
3007
 
3008
        * MAINTAINERS: Add myself for write after approval privileges.
3009
 
3010
2010-04-29  Mihail Zenkov  
3011
 
3012
        D language support.
3013
        * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
3014
        (COMMON_OBS): Add d-lang.o d-valprint.o.
3015
        (HFILES_NO_SRCDIR): Add d-lang.h.
3016
        * NEWS: Mention D language support.
3017
        * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
3018
        * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
3019
        * d-lang.c: New file.
3020
        * d-lang.h: New file.
3021
        * d-valprint.c: New file.
3022
        * defs.h (enum language): Add language_d.
3023
        * dwarf2read.c (set_cu_language): Add DW_LANG_D.
3024
        * language.c (binop_result_type, integral_type, character_type)
3025
        (string_type, boolean_type, structured_type): Add language_d.
3026
        * symfile.c (init_filename_language_table): Add language_d.
3027
        * symtab.c: Include d-lang.h.
3028
        (symbol_init_language_specific, symbol_find_demangled_name)
3029
        (symbol_natural_name, lookup_symbol_in_language)
3030
        (symbol_demangled_name, symbol_matches_domain): Add language_d.
3031
 
3032
2010-04-27  Joel Brobecker  
3033
 
3034
        * solib-svr4.c (solib_svr4_r_map): Expand function description.
3035
 
3036
2010-04-27  Joel Brobecker  
3037
 
3038
        * symfile.c (init_filename_language_table): Register .dg files
3039
        with language_ada.
3040
 
3041
2010-04-27  Joel Brobecker  
3042
 
3043
        * gdbtypes.h (struct main_type): Expand comment about target_type
3044
        field.
3045
 
3046
2010-04-27  Pedro Alves  
3047
            Tristan Gingold  
3048
 
3049
        * symfile.c (reread_symbols): Also search for file in libraries.
3050
        Update comment.
3051
 
3052
2010-04-27  Joel Brobecker  
3053
 
3054
        * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
3055
        in terms of configuration.
3056
 
3057
2010-04-27  Jan Kratochvil  
3058
 
3059
        * objfiles.c: Include solist.h.
3060
        (free_all_objfiles): New variable so.  Check stale solist objfiles.
3061
        * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
3062
        and no_shared_libraries.
3063
 
3064
2010-04-27  Joel Brobecker  
3065
 
3066
        ARI warning fix.
3067
        * python/py-auto-load.c (source_section_scripts): Remove trailing
3068
        new-line in i18n string.
3069
 
3070
2010-04-26  Doug Evans  
3071
 
3072
        * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
3073
 
3074
2010-04-26  Tom Tromey  
3075
 
3076
        * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
3077
        command list.
3078
 
3079
2010-04-26  Pierre Muller  
3080
 
3081
        Removal of config/i386/nm-i386sol2.h native configuration file.
3082
        * config/i386/nm-i386sol2.h: Remove file.
3083
        * config/i386/i386sol2.mh: Remove NAT_FILE definition.
3084
        * config/i386/sol2-64.mh: Idem.
3085
        * config/djgpp/fnchange.lst: Remove reference to that file.
3086
        * Makefile.in (HFILES_NO_SRCDIR): Idem.
3087
 
3088
2010-04-26  Pierre Muller  
3089
 
3090
        PR breakpoints/11531.
3091
        * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
3092
        macro definition and related comment.
3093
        * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
3094
        (resume): Remove code and comment related to this macro.
3095
 
3096
2010-04-26  Jan Kratochvil  
3097
 
3098
        * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
3099
        Fix whitespace.
3100
 
3101
2010-04-24  Pedro Alves  
3102
 
3103
        * defs.h: Adjust comment.
3104
        * filesystem.h, filesystem.c: New files.
3105
        * Makefile.in (SFILES): Add filesystem.c.
3106
        (COMMON_OBS): Add filesystem.o.
3107
        * solib.c (solib_find): Handle DOS-based filesystems.  Handle
3108
        different target and host path flavours.
3109
        * arm-symbian-tdep.c (arm_symbian_init_abi): Set
3110
        has_dos_based_file_system on the gdbarch.
3111
        * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
3112
        * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
3113
        * i386-tdep.c (i386_go32_init_abi): Ditto.
3114
        * gdbarch.sh (has_dos_based_file_system): New.
3115
        * gdbarch.h, gdbarch.c: Regenerate.
3116
        * NEWS: Mention improved support for remote targets with DOS-based
3117
        filesystems.  Mention new `set/show target-file-system-kind'
3118
        commands.
3119
 
3120
2010-04-23  Stan Shebs  
3121
 
3122
        * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
3123
        comments.
3124
        (struct agent_reqs): Remove.
3125
        (ax_reg_mask): Declare.
3126
        * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
3127
        (free_agent_expr): Free reg_mask.
3128
        (ax_print): Add scope and register mask info.
3129
        (ax_reqs): Remove agent_reqs argument, use agent expression
3130
        fields, and move part of register mask computation to...
3131
        (ax_reg_mask): New function.
3132
        * ax-gdb.c (gen_trace_static_fields): Call it.
3133
        (gen_traced_pop): Ditto.
3134
        (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
3135
        (gen_trace_for_var): Pass gdbarch to new_agent_expr.
3136
        (gen_trace_for_expr): Ditto, and clear optimized_out flag.
3137
        (gen_eval_for_expr): Ditto, and require an rvalue.
3138
        (agent_command): Call ax_reqs.
3139
        (agent_eval_command): Ditto.
3140
        * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
3141
        (validate_action_line): Ditto.
3142
        (collect_symbol): Ditto.
3143
        (encode_actions_1): Ditto.
3144
 
3145
2010-04-23  Daniel Jacobowitz  
3146
            Paul Pluzhnikov  
3147
            Jan Kratochvil  
3148
 
3149
        Fix deadlock on looped list of loaded shared objects.
3150
        * solib-svr4.c (LM_PREV): New function.
3151
        (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
3152
        (svr4_current_sos): Check for correct l_prev.  New variables prev_lm
3153
        and next_lm.  Clear prev_lm for solib_svr4_r_ldsomap.
3154
        * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
3155
 
3156
2010-04-23  Doug Evans  
3157
 
3158
        * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
3159
        python.
3160
        * configure: Regenerate.
3161
        * main.c: #include "python/python.h".
3162
        (captured_main): Defer loading auto-loaded scripts until after
3163
        local_gdbinit has been sourced.
3164
        * python/py-auto-load.c (gdbpy_global_auto_load): New global.
3165
        (load_auto_scripts_for_objfile): New function.
3166
        (auto_load_new_objfile): Call it.
3167
        * python/python.h (gdbpy_global_auto_load): Declare.
3168
        (load_auto_scripts_for_objfile): Declare.
3169
 
3170
        Add support for auto-loading scripts from .debug_gdb_scripts section.
3171
        * NEWS: Add entry for .debug_gdb_scripts.
3172
        * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
3173
        (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
3174
        (py-auto-load.o): New rule.
3175
        * cli/cli-cmds.c (find_and_open_script): Make externally visible.
3176
        * cli/cli-cmds.h (find_and_open_script): Update prototype.
3177
        * python/py-auto-load.c: New file.
3178
        * python/python-internal.h: #include .
3179
        (set_python_list, show_python_list): Declare.
3180
        (gdbpy_initialize_auto_load): Declare.
3181
        (source_python_script_for_objfile): Declare.
3182
        * python/python.c: Remove #include of observer.h.
3183
        (gdbpy_auto_load): Moved to py-auto-load.c.
3184
        (GDBPY_AUTO_FILENAME): Ditto.
3185
        (gdbpy_new_objfile): Delete.
3186
        (source_python_script_for_objfile): New function.
3187
        (set_python_list, show_python_list): Make externally visible.
3188
        (_initialize_python): Move "auto-load" command to py-auto-load.c
3189
        and observer_attach_new_objfile to py-auto-load.c.
3190
 
3191
2010-04-23  Jerome Guitton  
3192
 
3193
        * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
3194
        (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
3195
        (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
3196
        New constants.
3197
        (alpha_heuristic_analyze_probing_loop): New function.
3198
        (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
3199
        and handle cases when a stack probe loop is generated.
3200
        * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
3201
        (alpha_mdebug_max_frame_size_exceeded): New function.
3202
        (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
3203
        (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
3204
        Return 0 when the maximum debuggable frame size has been exceeded.
3205
 
3206
2010-04-23  Joel Brobecker  
3207
 
3208
        Fix ARI warning.
3209
        * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
3210
 
3211
2010-04-20  Chris Moller  
3212
 
3213
        PR 10179
3214
 
3215
        * symtab.c (rbreak_command): Added code to include a filename
3216
        specification in the rbreak argument.
3217
        * NEWS: Added a brief description of filename-qualified rbreak.
3218
 
3219
2010-04-22  Jan Kratochvil  
3220
 
3221
        Fix crashes on dangling display expressions.
3222
        * ada-lang.c (ada_operator_check): New function.
3223
        (ada_exp_descriptor): Fill-in the field operator_check.
3224
        * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
3225
        * jv-lang.c (exp_descriptor_java): Likewise.
3226
        * m2-lang.c (exp_descriptor_modula2): Likewise.
3227
        * scm-lang.c (exp_descriptor_scm): Likewise.
3228
        * parse.c (exp_descriptor_standard): Likewise.
3229
        (operator_check_standard): New function.
3230
        (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
3231
        * parser-defs.h (struct exp_descriptor): New field operator_check.
3232
        (operator_check_standard, exp_uses_objfile): New declarations.
3233
        * printcmd.c: Remove the inclusion of solib.h.
3234
        (display_uses_solib_p): Remove the function.
3235
        (clear_dangling_display_expressions): Call lookup_objfile_from_block
3236
        and exp_uses_objfile instead of display_uses_solib_p.
3237
        * solist.h (struct so_list) : New comment.
3238
        * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
3239
        * symtab.h (lookup_objfile_from_block): New declaration.
3240
        (struct general_symbol_info) : Extend the comment.
3241
 
3242
2010-04-22  Sergio Durigan Junior  
3243
            Thiago Jung Bauermann  
3244
 
3245
        * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
3246
        (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
3247
        ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
3248
        PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
3249
        PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
3250
        PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
3251
        PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
3252
        PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
3253
        PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
3254
        PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
3255
        PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
3256
        PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
3257
        PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
3258
        Define, in case  doesn't provide it.
3259
        (booke_debug_info): New variable.
3260
        (max_slots_number): Ditto.
3261
        (hw_break_tuple): New struct.
3262
        (thread_points): Ditto.
3263
        (ppc_threads): New variable.
3264
        (PPC_DEBUG_CURRENT_VERSION): New define.
3265
        (have_ptrace_new_debug_booke): New function.
3266
        (ppc_linux_check_watch_resources): Renamed to ...
3267
        (ppc_linux_can_use_hw_breakpoint): ... this.  Handle BookE processors.
3268
        (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
3269
        (booke_cmp_hw_point): New function.
3270
        (booke_find_thread_points_by_tid): Ditto.
3271
        (booke_insert_point): Ditto.
3272
        (booke_remove_point): Ditto.
3273
        (ppc_linux_insert_hw_breakpoint): Ditto.
3274
        (ppc_linux_remove_hw_breakpoint): Ditto.
3275
        (get_trigger_type): Ditto.
3276
        (ppc_linux_insert_watchpoint): Handle BookE processors.
3277
        (ppc_linux_remove_watchpoint): Ditto.
3278
        (ppc_linux_new_thread): Ditto.
3279
        (ppc_linux_thread_exit): New function..
3280
        (ppc_linux_stopped_data_address): Handle BookE processors.
3281
        (ppc_linux_watchpoint_addr_within_range): Ditto.
3282
        (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
3283
        to_remove_hw_breakpoint fields of the target operations struct.
3284
        Add observe for the thread_exit event.
3285
 
3286
2010-04-22  H.J. Lu  
3287
 
3288
        * i386-linux-nat.c (regmap): Removed.
3289
        (fetch_register): Replace regmap with
3290
        i386_linux_gregset_reg_offset.
3291
        (store_register): Likewise.
3292
        (supply_gregset): Likewise.
3293
        (fill_gregset): Likewise.
3294
 
3295
        * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
3296
        global.
3297
 
3298
        * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
3299
 
3300
2010-04-22  Chris Moller  
3301
 
3302
        * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
3303
        method of popping recursion-detection stack with a method based on
3304
        obstack_object_size().  (Similar to the PR9167 patch below, but for
3305
        the static array obstack rather than the static member obstack.)
3306
 
3307
2010-04-22  H.J. Lu  
3308
 
3309
        * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
3310
        (_initialize_amd64_linux_nat): Replace
3311
        amd64_linux_gregset64_reg_offset with
3312
        amd64_linux_gregset_reg_offset.
3313
 
3314
        * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
3315
        global.
3316
 
3317
        * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
3318
 
3319
2010-04-22  Pierre Muller  
3320
 
3321
        PR stabs/11479.
3322
        * stabsread.c (set_length_in_type_chain): New function.
3323
        (read_struct_type): Call set_length_in_type_chain function.
3324
        (read_enum_type): Idem.
3325
 
3326
2010-04-21  Stan Shebs  
3327
            Nathan Sidwell  
3328
 
3329
        * tracepoint.c (trace_save): Open in binary mode.
3330
 
3331
2010-04-22  Pierre Muller  
3332
 
3333
        * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
3334
        fields.
3335
        * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
3336
        builtin_char32 fields.
3337
        * printcmd.c (decode_format): Set char size to '\0'
3338
        for strings unless explicit size is given.
3339
        (print_formatted): Correct calculation of NEXT_ADDRESS
3340
        for 16 or 32 bit strings.
3341
        (do_examine): Do not force byte size for strings.
3342
        Use builtin_char16 and builtin_char32 types to display
3343
        16 or 32 bit-wide strings.
3344
        (x_command): Set LAST_SIZE to 'b' for string type.
3345
 
3346
2010-04-21  H.J. Lu  
3347
 
3348
        PR corefiles/11523
3349
        * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3350
        XCR0 first.
3351
 
3352
        * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
3353
        there is no .reg-xstate section.
3354
        (i386_linux_core_read_description): Check XCR0 first.
3355
 
3356
2010-04-21  Mike Frysinger  
3357
 
3358
        * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
3359
        for len <= 8.
3360
 
3361
2010-04-21  Chris Moller  
3362
 
3363
        PR 9167
3364
        * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
3365
        method of popping recursion-detection stack with a method based on
3366
        obstack_object_size().
3367
 
3368
2010-04-21  Pierre Muller  
3369
 
3370
        PR pascal/11492.
3371
        * p-valprint.c (pascal_val_print): Fix default printing of integer
3372
        arrays.
3373
 
3374
2010-04-21  Pierre Muller  
3375
 
3376
        Fix compilation warning on gcc-4.1.2.
3377
        * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
3378
        local variable`pc' to zero.
3379
 
3380
2010-04-20  Joel Brobecker  
3381
 
3382
        Implement thread support with core files on alpha-tru64.
3383
        * dec-thread.c (dec_thread_find_new_threads): New function,
3384
        extracted from resync_thread_list.
3385
        (resync_thread_list): Add OPS parameter.  Replace extracted-out
3386
        code by call to dec_thread_find_new_threads.
3387
        (dec_thread_wait): Update call to resync_thread_list.
3388
        (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
3389
 
3390
2010-04-20  Joel Brobecker  
3391
 
3392
        * ada-lang.c (value_pointer): New function.
3393
        (make_array_descriptor): Call value_pointer to convert addresses to
3394
        pointers.
3395
 
3396
2010-04-20  Joel Brobecker  
3397
 
3398
        * rs6000-aix-tdep.c: #include exceptions.h.
3399
        (rs6000_convert_from_func_ptr_addr): If an exception is thrown
3400
        while reading the memory at ADDR, then ADDR cannot be a function
3401
        descriptor.
3402
 
3403
2010-04-20  Joel Brobecker  
3404
 
3405
        * ada-typeprint.c (ada_print_typedef): New function.
3406
        * ada-lang.h (ada_print_typedef): Add declaration.
3407
        * ada-lang.c (ada_language_defn): set la_print_typdef field
3408
        to ada_print_typedef.
3409
 
3410
2010-04-20  Joel Brobecker  
3411
 
3412
        * procfs.c (procfs_address_to_host_pointer): Only define when used.
3413
 
3414
2010-04-20  Joel Brobecker  
3415
 
3416
        * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
3417
        (iterate_over_mappings): Adjust function profile. Add declaration.
3418
        (insert_dbx_link_bpt_in_region, info_mappings_callback):
3419
        Adjust accordingly.
3420
 
3421
2010-04-20  Joel Brobecker  
3422
 
3423
        * procfs.c (solib_mappings_callback): Move function up to avoid
3424
        a compiler warning.
3425
 
3426
2010-04-20  Joel Brobecker  
3427
 
3428
        * procfs.c (find_signalled_thread, find_stop_signal): Move
3429
        these functions down to define them only when used.
3430
 
3431
2010-04-20  Joel Brobecker  
3432
 
3433
        * valprint.c (common_val_print): Fix the value before extracting
3434
        its contents.
3435
        * ada-lang.c (ada_to_fixed_value): Make this function extern.
3436
        * ada-lang.h (ada_to_fixed_value): New function declaration.
3437
        * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
3438
        to avoid code duplication and fix a bug in the handling of
3439
        fixed types contents.
3440
 
3441
2010-04-20  Tom Tromey  
3442
 
3443
        * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
3444
        (read_partial_die): Likewise.
3445
        (dwarf_attr_name): Likewise.
3446
 
3447
2010-04-20  Chris Moller  
3448
 
3449
        PR 10867
3450
 
3451
        * cp-valprint.c (global): Adding new static array recursion
3452
        detection obstack.
3453
        (cp_print_value_fields, cp_print_static_field): Added new static
3454
        array recursion detection code.
3455
 
3456
2010-04-20  Mark Kettenis  
3457
 
3458
        * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
3459
        general-purpose register set should be 68 instead of 144.
3460
        (i386_linux_sse_regset_sections): Likewise.
3461
        (i386_linux_avx_regset_sections): Likewise.
3462
 
3463
2010-04-20  Stan Shebs  
3464
            Nathan Sidwell  
3465
 
3466
        * dwarf2loc.c (struct axs_var_loc): New struct.
3467
        (dwarf2_tracepoint_var_loc): New function.
3468
        (dwarf2_tracepoint_var_access): New function.
3469
        (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
3470
        with DW_OP_piece.
3471
        (locexpr_describe_location_piece): New function.
3472
        (locexpr_describe_location_1): New function.
3473
        (locexpr_describe_location): Call it, update signature.
3474
        (loclist_describe_location): Rewrite to loop over locations,
3475
        update signature.
3476
        * symtab.h (struct symbol_computed_ops): Add address to
3477
        describe_location arguments, return void.
3478
        * printcmd.c (address_info): Get context PC, pass to computed
3479
        location description.
3480
        * tracepoint.c (scope_info): Ditto.
3481
        * ax-gdb.c (trace_kludge): Export.
3482
 
3483
2010-04-20  Tom Tromey  
3484
 
3485
        * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
3486
        (struct dwarf2_cie) : New field.
3487
        * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
3488
        (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
3489
        DW_FORM_exprloc.
3490
        (read_attribute_value): Handle DW_FORM_flag_present,
3491
        DW_FORM_sec_offset, DW_FORM_exprloc.
3492
        (dump_die_shallow): Likewise.
3493
        (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
3494
        (dwarf2_const_value): Handle DW_FORM_exprloc.
3495
        (attr_form_is_block): Likewise.
3496
        (struct line_header) : New field.
3497
        (dwarf_decode_line_header): Set new field.
3498
        (dwarf_decode_lines): Handle new field.
3499
 
3500
2010-04-20  Jan Kratochvil  
3501
 
3502
        * f-exp.y: Add new production to recognize the `logical*8' type.
3503
        (LOGICAL_S8_KEYWORD): New token.
3504
        * f-lang.c (enum f_primitive_types)
3505
        : New field.
3506
        (f_language_arch_info): Handling `logical*8' type.
3507
        (build_fortran_types): Building `logical*8' type.
3508
        * f-lang.h (struct builtin_f_type) : New field.
3509
 
3510
2010-04-19  Doug Evans  
3511
 
3512
        * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
3513
        * ser-pipe.c (pipe_open): Fix file descriptor leaks.
3514
        (pipe_close): Ditto.
3515
 
3516
2010-04-19  Pierre Muller  
3517
 
3518
        * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
3519
 
3520
2010-04-19  Pierre Muller  
3521
 
3522
        * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
3523
        type to void function.
3524
 
3525
2010-04-19  Stan Shebs  
3526
            Vladimir Prus  
3527
 
3528
        * tracepoint.c (tfind_1): Add missing newline, report exit from
3529
        tfind mode as such.
3530
        * target.c (update_current_target): Make default
3531
        to_trace_find return -1.
3532
 
3533
2010-04-19  Mike Frysinger  
3534
 
3535
        * objc-lang.c (find_methods): Move symname check up.
3536
 
3537
2010-04-19  Pedro Alves  
3538
 
3539
        * ada-lang.c (print_recreate_exception)
3540
        : It's "catch exception unhandled",
3541
        not "catch unhandled".
3542
 
3543
2010-04-19  Pedro Alves  
3544
 
3545
        PR breakpoints/8554.
3546
 
3547
        Implement `save-breakpoints'.
3548
 
3549
        * breakpoint.c (save_cmdlist): New.
3550
        (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
3551
        to save_cmdlist.
3552
        (print_recreate_catch_fork): New.
3553
        (catch_fork_breakpoint_ops): Install it.
3554
        (print_recreate_catch_vfork): New.
3555
        (catch_vfork_breakpoint_ops): Install it.
3556
        (print_recreate_catch_syscall): New.
3557
        (catch_syscall_breakpoint_ops): Install it.
3558
        (print_recreate_catch_exec): New.
3559
        (catch_exec_breakpoint_ops): Install it.
3560
        (print_recreate_exception_catchpoint): New.
3561
        (gnu_v3_exception_catchpoint_ops): Install it.
3562
        (save_breakpoints): New, based on tracepoint_save_command, but
3563
        handle all breakpoint types.
3564
        (save_breakpoints_command): New.
3565
        (tracepoint_save_command): Rename to...
3566
        (save_tracepoints_command): ... this, and reimplement using
3567
        save_breakpoints.
3568
        (save_command): New.
3569
        (_initialize_breakpoints): Install the "save" command prefix.
3570
        Install the "save breakpoints" command.  Make "save-tracepoints" a
3571
        deprecated alias for "save tracepoints".
3572
        * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
3573
        * ada-lang.c (print_recreate_exception): New.
3574
        (print_recreate_catch_exception): New.
3575
        (catch_exception_breakpoint_ops): Install it.
3576
        (print_recreate_catch_exception_unhandled): New.
3577
        (catch_exception_unhandled_breakpoint_ops): Install it.
3578
        (print_recreate_catch_assert): New.
3579
        (catch_assert_breakpoint_ops): Install it.
3580
 
3581
        * NEWS: Mention the new `save breakpoints' command.  Mention the
3582
        new `save tracepoints' alias and that `save-tracepoints' is now
3583
        deprecated.
3584
 
3585
2010-04-18  Pedro Alves  
3586
 
3587
        PR tui/9217
3588
 
3589
        * tui/tui-out.c: Include cli-out.h.
3590
        (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3591
        (tui_begin, tui_end, tui_field_int, tui_field_skip)
3592
        (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
3593
        (tui_message, tui_wrap_hint, tui_flush): Delete forward
3594
        declarations.
3595
        (struct ui_out_data): Rename to...
3596
        (struct tui_ui_out_data): ... this.  Remove `stream' and
3597
        `suppress_output' fields, and inherit cli_ui_out_data.
3598
        (tui_out_data): New typedef.
3599
        (tui_ui_out_impl): Don't initialize fields staticaly.
3600
        (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3601
        (tui_begin, tui_end): Delete.
3602
        (tui_field_int): Adjust to delegate most work to the base type.
3603
        (tui_field_skip): Delete.
3604
        (tui_field_string, tui_field_fmt): Adjust comment.  Adjust to
3605
        delegate most work to the base type.
3606
        (tui_spaces): Delete.
3607
        (tui_text): Adjust to delegate most work to the base type.
3608
        (tui_message): Delete.
3609
        (tui_wrap_hint): Delete.
3610
        (tui_flush): Delete.
3611
        (out_field_fmt): Delete.
3612
        (field_separator): Delete.
3613
        (tui_out_new): Adjust to initialize the base type.
3614
        (_initialize_tui_out): Initialize tui_ui_out_impl.
3615
        * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
3616
        cli_ui_out_data.
3617
        (cli_out_data): Adjust.
3618
        (cli_ui_out_impl): Make extern.
3619
        (cli_table_header, cli_field_int, cli_field_skip): Use
3620
        uo_field_string instead of cli_field_string.
3621
        (cli_redirect): Adjust to use cli_out_data.
3622
        (cli_out_data_ctor): New.
3623
        (cli_out_new): Use it.
3624
        * cli-out.h (struct ui_file): Remove forward declaration.
3625
        (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
3626
        (cli_ui_out_impl): Declare.
3627
        (cli_out_data_ctor): Declare.
3628
        * ui-out.c (struct ui_out) : Change type to void pointer.
3629
        (uo_field_string): No longer static.
3630
        (ui_out_data): Change return type to void pointer.
3631
        (ui_out_new): Change `data' parameter type to void pointer.
3632
        * ui-out.h (struct ui_out_data): Don't forward declare.
3633
        (ui_out_data): Change return type to void pointer.
3634
        (ui_out_new): Change `data' parameter type to void pointer.
3635
        (uo_field_string): Declare.
3636
 
3637
2010-04-17  Pedro Alves  
3638
 
3639
        * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
3640
        instead of always false.
3641
 
3642
2010-04-17  H.J. Lu  
3643
 
3644
        PR corefiles/11511
3645
        * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
3646
        orig_rax.
3647
 
3648
2010-04-17  Pedro Alves  
3649
 
3650
        * breakpoint.c (watchpoints_triggered): Use
3651
        is_hardware_watchpoint.
3652
        (watchpoints_triggered): Ditto.
3653
        (bpstat_check_location): Use is_watchpoint and
3654
        is_hardware_watchpoint.
3655
        (bpstat_check_watchpoint): Use is_watchpoint and
3656
        is_hardware_watchpoint.
3657
        (bpstat_stop_status): Fix comment.
3658
        (user_settable_breakpoint): Use is_watchpoint.
3659
        (hw_watchpoint_used_count): Use is_hardware_watchpoint.
3660
        (disable_watchpoints_before_interactive_call_start): Use
3661
        is_watchpoint.
3662
        (enable_watchpoints_after_interactive_call_stop): Use
3663
        is_watchpoint.
3664
        (clear_command): Use is_watchpoint.
3665
        (do_enable_breakpoint): Use is_watchpoint.
3666
 
3667
2010-04-16  Mike Frysinger  
3668
 
3669
        * solib-frv.c (enable_break1_done): Delete.
3670
        (enable_break2): Do not check enable_break1_done.  Move the
3671
        enable_break2_done setting and call to
3672
        remove_solib_event_breakpoints() to the end.  Return without
3673
        warning when the contents of _dl_debug_addr are 0.
3674
        (enable_break): Do not set enable_break1_done.
3675
        (frv_clear_solib): Likewise.
3676
 
3677
2010-04-16  Kevin Buettner  
3678
 
3679
        * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
3680
        instead of an error if no PLT entry is found.  Return a
3681
        potentially useful result.
3682
        (m32c_m16c_pointer_to_address): Add code to search for function
3683
        address when no .plt entry is found.
3684
 
3685
2010-04-16  Stan Shebs  
3686
 
3687
        * tracepoint.c (trace_variable_command): Run a cleanup.
3688
 
3689
2010-04-16  Pierre Muller  
3690
 
3691
        * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
3692
 
3693
2010-04-16  Pierre Muller  
3694
 
3695
        Support for Windows OS Thread Information Block.
3696
        * NEWS: Document new feature.
3697
        * remote.c (PACKET_qGetTIBAddr): New enum element.
3698
        (remote_get_tib_address): New function.
3699
        (init_remote_ops): Set to_get_tib_address field
3700
        to remote_get_tib_address.
3701
        (_initialize_remote): Add add_packet_config_cmd
3702
        for PACKET_qGetTIBAddr.
3703
        * target.c (update_current_target): Set default value for
3704
        new to_get_tib_address field.
3705
        * target.h (target_ops): New field to_get_tib_address.
3706
        (target_get_tib_address): New macro.
3707
        * windows-nat.c (thread_info): Add thread_local_base field.
3708
        (windows_add_thread): Add tlb argument of type 'void *'.
3709
        (fake_create_process): Adapt windows_add_thread call.
3710
        (get_windows_debug_event): Idem.
3711
        (windows_get_tib_address): New function.
3712
        (init_windows_ops): Set to_get_tib_address field
3713
        to remote_get_tib_address.
3714
        (_initialize_windows_nat): Replace info_w32_cmdlist
3715
        initialization by a call to init_w32_command_list.
3716
        (info_w32_command, info_w32_cmdlist): Removed from here...
3717
        to windows-tdep.c file.
3718
        * windows-tdep.h (info_w32_cmdlist): Declare.
3719
        (init_w32_command_list): New external function
3720
        declaration.
3721
        * windows-tdep.c: Add several headers.
3722
        (info_w32_cmdlist): to here, made global.
3723
        (thread_information_32): New struct.
3724
        (thread_information_64): New struct.
3725
        (TIB_NAME): New char array.
3726
        (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
3727
        (maint_display_all_tib): New static variable.
3728
        (windows_get_tlb_type): New function.
3729
        (tlb_value_read, tlb_value_write): New functions.
3730
        (tlb_value_funcs): New static struct.
3731
        (tlb_make_value): New function.
3732
        (display_one_tib): New function.
3733
        (display_tib): New function.
3734
        (show_maint_show_all_tib):New function.
3735
        (info_w32_command): Moved from windows-nat.c.
3736
        (init_w32_command_list): New function.
3737
        (_initialize_windows_tdep): New function.
3738
        New "maint set/show show-all-tib" command
3739
        New "$_tlb" internal variable.
3740
 
3741
2010-04-16  Joel Brobecker  
3742
 
3743
        * tui/tui-regs.c (tui_display_register): Add comment about
3744
        a couple of casts.
3745
        * tui/tui-stack.c (tui_show_locator_content): Ditto.
3746
 
3747
2010-04-15  Stan Shebs  
3748
 
3749
        * frame.c: Include tracepoint.h.
3750
        (get_current_frame): Allow a trace frame to be an alternate source
3751
        of stack frame data.
3752
        * tracepoint.c (tfind_1): Don't try to get current stack frame if
3753
        it won't succeed.
3754
 
3755
2010-04-15  Pedro Alves  
3756
 
3757
        * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
3758
        flags.
3759
        * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
3760
 
3761
2010-04-15  Doug Evans  
3762
 
3763
        * NEWS: Add entry for python program space support.
3764
        * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
3765
        (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
3766
        (py-progspace.o): New rule.
3767
        * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
3768
        function.
3769
        (find_pretty_printer_from_progspace): New function.
3770
        (find_pretty_printer_from_gdb): New function.
3771
        (find_pretty_printer): Rewrite.
3772
        * python/py-progspace.c: New file.
3773
        * python/python-internal.h (program_space): Add forward decl.
3774
        (pspace_to_pspace_object, pspy_get_printers): Declare.
3775
        (gdbpy_initialize_pspace): Declare.
3776
        * python/python.c: #include "progspace.h".
3777
        (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
3778
        (_initialize_python): Call gdbpy_initialize_pspace.
3779
        (GdbMethods): Add current_progspace, progspaces.
3780
 
3781
        Add -s option to source command.
3782
        * NEWS: Document new option.
3783
        * cli/cli-cmds.c (find_and_open_script): Add function comment.
3784
        Delete from_tty and cleanupp args.  Split filep arg into file and
3785
        full_pathp.  New arg search_path.
3786
        (source_script_from_stream): New function.
3787
        (source_script_with_search): New function.
3788
        (source_script): Rewrite.
3789
        (source_command): Parse "-s" option.
3790
        (init_cli_cmds): Add "-s" docs to source command help, and reformat.
3791
        * python/python.c (source_python_script): Make file arg a const char *.
3792
        Don't call fclose, leave for caller.
3793
        * python/python.h (source_python_script): Update.
3794
 
3795
2010-04-14  Daniel Jacobowitz  
3796
            Pedro Alves  
3797
 
3798
        Avoid rereading shared libraries that haven't changed.
3799
 
3800
        * solib.c (free_so_symbols): New function, from ...
3801
        (free_so): ... here.  Call it.
3802
        (solib_read_symbols): Don't warn here if symbols have already been
3803
        loaded.
3804
        (solib_add): Warn here instead, if a pattern was specified.
3805
        (reload_shared_libraries_1): New.
3806
        (reload_shared_libraries): Rewrite to not fetch the library list.
3807
 
3808
2010-04-14  Doug Evans  
3809
 
3810
        * source.c (openp): Strip DOS drive letter if present before
3811
        concatenating string to search path.
3812
 
3813
2010-04-14  Pedro Alves  
3814
 
3815
        * objfiles.h (gdb_bfd_close_or_warn): Declare.
3816
        * objfiles.c (gdb_bfd_close_or_warn): New.
3817
        * corelow.c: Include objfiles.h
3818
        (core_close): Use gdb_bfd_close_or_warn.
3819
        * elfread.c (build_id_verify): Ditto.
3820
        * exec.c (exec_close, exec_close_1): Ditto.
3821
 
3822
2010-04-14  Daniel Jacobowitz  
3823
            Pedro Alves  
3824
 
3825
        Group errors for many missing shared libraries.
3826
 
3827
        * solist.h (struct so_list): Remove from_tty.
3828
        * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
3829
        (solib_map_sections): Take so_list argument.  Return 0 if we
3830
        failed to open a BFD.  Add target sections here.
3831
        (symbol_add_stub): Delete.
3832
        (solib_read_symbols): Inline symbol_add_stub.  Use current flags,
3833
        not from_tty copied from the so_list.  Don't warn a second time
3834
        for a missing library.
3835
        (update_solib_list): Don't save from_tty.  Use TRY_CATCH.  Do not
3836
        add to the section table here.  Print out a single warning for all
3837
        missing libraries.
3838
        * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
3839
        flags.
3840
 
3841
2010-04-14  Phil Muldoon  
3842
 
3843
        * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
3844
        error/warning messages.  Capitalize and use complete sentences.
3845
        (blpy_block_syms_iternext): Likewise.
3846
        * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
3847
        * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
3848
        (frame_info_to_frame_object, frapy_read_var)
3849
        (gdbpy_frame_stop_reason_string): Likewise.
3850
        * python/py-lazy-string.c (stpy_convert_to_value)
3851
        (gdbpy_create_lazy_string_object): Likewise.
3852
        * python/py-objfile.c (objfpy_set_printers): Likewise.
3853
        * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
3854
        * python/python.c (parameter_to_python): Likewise.
3855
        * python/py-type.c (typy_range, typy_target): Likewise.
3856
        * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
3857
        (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
3858
 
3859
 
3860
2010-04-14  Phil Muldoon  
3861
 
3862
        PR python/11381
3863
 
3864
        * python/py-prettyprint.c (pretty_print_one_value): Test for
3865
        Py_None.
3866
        (print_string_repr): Test for Py_None.  Set flags accordingly.
3867
        Return value depending on return type.
3868
        (print_children): Take a value indicating whether data was printed
3869
        before this function was called.  Alter output accordingly.
3870
        (apply_val_pretty_printer): Capture return value from
3871
        print_string_repr and pass to print_children.
3872
 
3873
2010-04-13  Mark Kettenis  
3874
 
3875
        PR corefiles/11481
3876
        * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
3877
        register note sections.
3878
        (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3879
        New variables.
3880
        (i386_linux_init_abi): Install list of supported register note
3881
        sections that matches the target description.
3882
 
3883
2010-04-13  Pedro Alves  
3884
 
3885
        * remote.c (remote_get_noisy_reply): Don't error out on empty
3886
        replies.
3887
        (remote_start_remote): Update and merge tracepoints and trace
3888
        state variables as long as the target supports tracepoints.
3889
        (remote_trace_init): Fix prototype.
3890
        (remote_download_trace_state_variable): Validate reply.
3891
        (remote_trace_set_readonly_regions): Fix prototype.
3892
        (remote_trace_start): Fix prototype.  Check for empty reply.
3893
        (remote_get_trace_status): Small cleanup.
3894
        (remote_trace_stop): Fix prototype.  Check for empty reply.
3895
        (remote_trace_find): Check for empty reply.
3896
        (remote_save_trace_data): Validate reply.
3897
        (remote_set_disconnected_tracing): Check for empty reply, and
3898
        validate reply.
3899
        (remote_set_circular_trace_buffer): Ditto.
3900
 
3901
2010-04-13  Pierre Muller  
3902
 
3903
        Suppress unused value warning during compilation.
3904
        * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
3905
        calls to void.
3906
        * tui/tui-stack.c (tui_show_locator_content): Likewise.
3907
 
3908
2010-04-12  Stan Shebs  
3909
 
3910
        * tracepoint.c (tfile_xfer_partial): Check read result.
3911
 
3912
2010-04-12  Mike Frysinger  
3913
 
3914
        * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
3915
        * remote-sim.c (gdbsim_files_info): Likewise.
3916
 
3917
2010-04-12  Matthew Gretton-Dann  
3918
 
3919
        * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
3920
        * arm-linux-nat.c (arm_linux_vfp_register_count): New
3921
        variable.
3922
        (fetch_vfp_registers): New function to fetch VFP registers.
3923
        (store_vfp_registers): New function to store VFP registers.
3924
        (arm_linux_fetch_inferior_registers): Add support for VFP
3925
        registers.
3926
        (arm_linux_store_inferior_registers): Likewise.
3927
        (arm_linux_read_description): Likewise.
3928
        (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
3929
        until we need it.
3930
 
3931
2010-04-11  H.J. Lu  
3932
 
3933
        * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
3934
        tdep.
3935
        (amd64_collect_xstateregset): Likewise.
3936
 
3937
2010-04-09  Stan Shebs  
3938
 
3939
        * tracepoint.c (trace_status_mi): Report frames created.
3940
 
3941
        * tracepoint.c (trace_dump_command): Include default-collect
3942
        expressions.
3943
 
3944
2010-04-09  Ulrich Weigand  
3945
 
3946
        * symtab.c (find_function_start_sal): Never return SAL pointing
3947
        before function start address, even if line info is missing.
3948
 
3949
2010-04-09  Pedro Alves  
3950
 
3951
        * NEWS: Mention tracepoints support.
3952
 
3953
2010-04-09  Pedro Alves  
3954
 
3955
        * tracepoint.c (trace_status_mi): Report disconnected tracing and
3956
        circular trace buffer statuses.
3957
 
3958
2010-04-09  Jan Kratochvil  
3959
 
3960
        * config/djgpp/fnchange.lst: Fix typo in translations for
3961
        symbol-without-target_section.exp and symbol-without-target_section.c.
3962
 
3963
2010-04-09  Pedro Alves  
3964
 
3965
        * breakpoint.c (condition_command): Pass condition expression to
3966
        set_breakpoint_condition stripped from breakpoint number.
3967
 
3968
2010-04-09  Phil Muldoon  
3969
            Thiago Jung Bauermann  
3970
            Tom Tromey  
3971
 
3972
        * breakpoint.c (condition_command): Simplify.  Move condition
3973
        setting code to ...
3974
        (set_breakpoint_condition): ... here.  New function.
3975
        * breakpoint.h  (set_breakpoint_condition): Declare.
3976
        * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
3977
        (SUBDIR_PYTHON_SRCS): Likewise.
3978
        (py-breakpoint.o): New rule.
3979
        * python/py-breakpoint.c: New file.
3980
        * python/python-internal.h (gdbpy_breakpoints)
3981
        (gdbpy_initialize_breakpoints): Declare.
3982
        (GDB_PY_SET_HANDLE_EXCEPTION) Define.
3983
 
3984
2010-04-09  Pedro Alves  
3985
 
3986
        * regformats/regdat.sh: Include server.h.  Don't include
3987
        regcache.h.
3988
 
3989
2010-04-08  Stan Shebs  
3990
            Pedro Alves  
3991
 
3992
        * tracepoint.h (struct trace_status): New fields disconnected_tracing
3993
        and circular_buffer.
3994
        (disconnect_tracing): Rename from disconnect_or_stop_tracing.
3995
        * tracepoint.c (trace_status_command): Display target's status for
3996
        disconnected tracing and circular buffer.
3997
        (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
3998
        query for non-disconnected-tracing case, remove the stop_tracing
3999
        call.
4000
        (tfile_open): Clear disconnected and circular buffer status.
4001
        (trace_save): Save disconnected and circular buffer status.
4002
        (parse_trace_status): Parse disconnected and circular buffer status,
4003
        also recognize disconnected as a stop reason.
4004
        * remote.c (remote_set_disconnected_tracing): Only set
4005
        QTDisconnected if the remote end supports disconnected tracing.
4006
        Warn otherwise, if trying to enable disconnected tracing.
4007
        * infcmd.c (detach_command): Update disconnect_tracing call.
4008
        * cli/cli-cmds.c (quit_command): Ditto.
4009
 
4010
2010-04-08  H.J. Lu  
4011
 
4012
        * i387-tdep.c (i387_collect_xsave): Replace abort with
4013
        internal_error.
4014
 
4015
2010-04-08  Stan Shebs  
4016
 
4017
        * breakpoint.c (default_collect_info): New function.
4018
        (breakpoints_info): Call it.
4019
        (maintenance_info_breakpoints): Ditto.
4020
        (tracepoints_info): Ditto.
4021
 
4022
2010-04-08  H.J. Lu  
4023
 
4024
        * i387-tdep.c (i387_collect_xsave): Re-indent.
4025
 
4026
2010-04-08  H.J. Lu  
4027
 
4028
        * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
4029
        if HAVE_PTRACE_GETFPXREGS is defined.
4030
        (i386_linux_read_description): Set have_ptrace_getfpxregs and
4031
        have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
4032
 
4033
        * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
4034
        (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
4035
        if .reg-xfp section doesn't exist.
4036
        (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
4037
 
4038
        * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
4039
 
4040
        * i386-tdep.c: Include "features/i386/i386-mmx.c".
4041
        (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
4042
        (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional.  Set
4043
        xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
4044
        (i386_gdbarch_init): Update comments.
4045
        (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
4046
 
4047
        * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
4048
 
4049
        * config/djgpp/fnchange.lst: Add i386 MMX XML files.
4050
 
4051
        * features/Makefile (i386/i386-mmx-expedite): New.
4052
        (i386/i386-mmx-linux-expedite): Likewise.
4053
        ($(outdir)/i386/i386-mmx.dat): Likewise.
4054
        ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
4055
 
4056
        * features/i386/i386-mmx-linux.c: New.
4057
        * features/i386/i386-mmx-linux.xml: Likewise.
4058
        * features/i386/i386-mmx.c: Likewise.
4059
        * features/i386/i386-mmx.xml: Likewise.
4060
        * regformats/i386/i386-mmx-linux.dat: Likewise.
4061
        * regformats/i386/i386-mmx.dat: Likewise.
4062
 
4063
        * features/Makefile (WHICH): Add i386/i386-mmx and
4064
        i386/i386-mmx-linux.
4065
 
4066
2010-04-08  Doug Evans  
4067
 
4068
        * source.c (openp): Skip $cdir in PATH.
4069
 
4070
2010-04-08  Phil Muldoon  
4071
 
4072
        PR python/11417
4073
        * python/py-lazy-string.c (stpy_convert_to_value): Check for
4074
        a NULL address.
4075
        (gdbpy_create_lazy_string_object): Allow strings with a NULL
4076
        address and a zero length.
4077
 
4078
2010-04-08  Hui Zhu  
4079
 
4080
        * i386-tdep.c (i386_process_record): Add support for insn
4081
        rdtsc.
4082
 
4083
2010-04-07  Doug Evans  
4084
 
4085
        * python/python.c (source_python_script): Use ensure_python_env
4086
        to prepare environment for script.
4087
 
4088
2010-04-07  H.J. Lu  
4089
 
4090
        * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
4091
         and "i386-xstate.h".
4092
        (PTRACE_GETREGSET): New.
4093
        (PTRACE_SETREGSET): Likewise.
4094
        (have_ptrace_getregset): Likewise.
4095
        (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
4096
        registers.
4097
        (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
4098
        registers.
4099
        (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
4100
        (amd64_linux_store_inferior_registers): Likewise.
4101
        (amd64_linux_read_description): Check and enable AVX target
4102
        descriptions.
4103
 
4104
        * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
4105
        and "features/i386/amd64-avx-linux.c".
4106
        (amd64_linux_regset_sections): New.
4107
        (amd64_linux_core_read_description): Check and enable AVX
4108
        target description.
4109
        (amd64_linux_init_abi): Set xsave_xcr0_offset.  Call
4110
        set_gdbarch_core_regset_sections.
4111
        (_initialize_amd64_linux_tdep): Call
4112
        initialize_tdesc_amd64_avx_linux.
4113
 
4114
        * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
4115
        AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
4116
        (tdesc_amd64_avx_linux): New.
4117
        (amd64_linux_update_xstateregset): Likewise.
4118
 
4119
        * amd64-tdep.c: Include "features/i386/amd64-avx.c".
4120
        (amd64_ymm_names): New.
4121
        (amd64_ymmh_names): Likewise.
4122
        (amd64_register_name): Likewise.
4123
        (amd64_supply_xstateregset): Likewise.
4124
        (amd64_collect_xstateregset): Likewise.
4125
        (amd64_supply_xsave): Likewise.
4126
        (amd64_collect_xsave): Likewise.
4127
        (AMD64_NUM_REGS): Removed.
4128
        (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
4129
        %xmmN if AVX is available.
4130
        (amd64_pseudo_register_name): Support pseudo YMM registers.
4131
        (amd64_regset_from_core_section): Support .reg-xstate section.
4132
        (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
4133
        and ymm0h_regnum.  Call set_gdbarch_register_name.
4134
        (amd64_init_abi): Call initialize_tdesc_amd64_avx.
4135
 
4136
        * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
4137
        AMD64_YMM15H_REGNUM.
4138
        (AMD64_NUM_REGS): New.
4139
        (amd64_supply_xsave): Likewise.
4140
        (amd64_collect_xsave): Likewise.
4141
        (amd64_register_name): Removed.
4142
        (amd64_register_type): Likewise.
4143
 
4144
2010-04-07  H.J. Lu  
4145
 
4146
        * i387-tdep.c: Include "i386-xstate.h".
4147
        (XSAVE_XSTATE_BV_ADDR): New.
4148
        (xsave_avxh_offset): Likewise.
4149
        (XSAVE_AVXH_ADDR): Likewise.
4150
        (i387_supply_xsave): Likewise.
4151
        (i387_collect_xsave): Likewise.
4152
 
4153
        * i387-tdep.h (I387_NUM_YMM_REGS): New.
4154
        (I387_YMM0H_REGNUM): Likewise.
4155
        (I387_YMMENDH_REGNUM): Likewise.
4156
        (i387_supply_xsave): Likewise.
4157
        (i387_collect_xsave): Likewise.
4158
 
4159
2010-04-07  H.J. Lu  
4160
 
4161
        * i386-linux-nat.c: Include "regset.h", "elf/common.h",
4162
         and "i386-xstate.h".
4163
        (PTRACE_GETREGSET): New.
4164
        (PTRACE_SETREGSET): Likewise.
4165
        (fetch_xstateregs): Likewise.
4166
        (store_xstateregs): Likewise.
4167
        (GETXSTATEREGS_SUPPLIES): Likewise.
4168
        (regmap): Include 8 upper YMM registers.
4169
        (i386_linux_fetch_inferior_registers): Support XSAVE extended
4170
        state.
4171
        (i386_linux_store_inferior_registers): Likewise.
4172
        (i386_linux_read_description): Check and enable AVX target
4173
        descriptions.
4174
 
4175
        * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
4176
        "i386-xstate.h" and "features/i386/i386-avx-linux.c".
4177
        (i386_linux_regset_sections): Add ".reg-xstate".
4178
        (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
4179
        (i386_linux_core_read_xcr0): New.
4180
        (i386_linux_core_read_description): Check and enable AVX target
4181
        description.
4182
        (i386_linux_init_abi): Set xsave_xcr0_offset.
4183
        (_initialize_i386_linux_tdep): Call
4184
        initialize_tdesc_i386_avx_linux.
4185
 
4186
        * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
4187
        I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
4188
        (i386_linux_core_read_xcr0): New.
4189
        (tdesc_i386_avx_linux): Likewise.
4190
        (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
4191
 
4192
        * i386-tdep.c: Include "i386-xstate.h" and
4193
        "features/i386/i386-avx.c".
4194
        (i386_ymm_names): New.
4195
        (i386_ymmh_names): Likewise.
4196
        (i386_ymmh_regnum_p): Likewise.
4197
        (i386_ymm_regnum_p): Likewise.
4198
        (i386_xmm_regnum_p): Likewise.
4199
        (i386_register_name): Likewise.
4200
        (i386_ymm_type): Likewise.
4201
        (i386_supply_xstateregset): Likewise.
4202
        (i386_collect_xstateregset): Likewise.
4203
        (i386_sse_regnum_p): Removed.
4204
        (i386_pseudo_register_name): Support pseudo YMM registers.
4205
        (i386_pseudo_register_type): Likewise.
4206
        (i386_pseudo_register_read): Likewise.
4207
        (i386_pseudo_register_write): Likewise.
4208
        (i386_dbx_reg_to_regnum): Return %ymmN register number for
4209
        %xmmN if AVX is available.
4210
        (i386_regset_from_core_section): Support .reg-xstate section.
4211
        (i386_register_reggroup_p): Supper upper YMM and YMM registers.
4212
        (i386_process_record): Replace i386_sse_regnum_p with
4213
        i386_xmm_regnum_p.
4214
        (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
4215
        Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
4216
        (i386_gdbarch_init): Set xstateregset.  Set xsave_xcr0_offset.
4217
        Call set_gdbarch_register_name.  Replace I386_SSE_NUM_REGS with
4218
        I386_AVX_NUM_REGS.  Set ymmh_register_names, ymm0h_regnum and
4219
        num_ymm_regs.  Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
4220
        Set ymm0_regnum.
4221
        (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
4222
 
4223
        * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
4224
        xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
4225
        i386_ymm_type.
4226
        (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
4227
        (I386_AVX_NUM_REGS): New.
4228
        (i386_xmm_regnum_p): Likewise.
4229
        (i386_ymm_regnum_p): Likewise.
4230
        (i386_ymmh_regnum_p): Likewise.
4231
 
4232
        * common/i386-xstate.h: New.
4233
 
4234
2010-04-07  H.J. Lu  
4235
 
4236
        * config/djgpp/fnchange.lst: Add x86 AVX XML files.
4237
 
4238
        * features/Makefile (WHICH): Add i386/i386-avx,
4239
        i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
4240
        (i386/i386-avx-expedite): New.
4241
        (i386/i386-avx-linux-expedite): Likewise.
4242
        (i386/x86-64-avx-expedite):Likewise.
4243
        (i386/x86-64-avx-linux-expedite): Likewise.
4244
        ($(outdir)/i386/i386-avx.dat): New dependency.
4245
        ($(outdir)/i386/i386-avx-linux.dat): Likewise.
4246
        ($(outdir)/i386/x86-avx-64.dat): Likewise.
4247
        ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
4248
 
4249
        * features/i386/32bit-avx.xml: New.
4250
        * features/i386/64bit-avx.xml: Likewise.
4251
        * features/i386/i386-avx-linux.c: Likewise.
4252
        * features/i386/i386-avx-linux.xml: Likewise.
4253
        * features/i386/i386-avx.c: Likewise.
4254
        * features/i386/i386-avx.xml: Likewise.
4255
        * features/i386/x86-64-avx-linux.c: Likewise.
4256
        * features/i386/x86-64-avx-linux.xml: Likewise.
4257
        * features/i386/x86-64-avx.c: Likewise.
4258
        * features/i386/x86-64-avx.xml: Likewise.
4259
        * regformats/i386/i386-avx-linux.dat: Likewise.
4260
        * regformats/i386/i386-avx.dat: Likewise.
4261
        * regformats/i386/x86-64-avx-linux.dat: Likewise.
4262
        * regformats/i386/x86-64-avx.dat: Likewise.
4263
 
4264
2010-04-07  Doug Evans  
4265
 
4266
        * top.c (source_file_name): Make const char *.
4267
        * top.h (source_file_name): Update.
4268
        * cli/cli-script.c (source_cleanup_lines_args): Make old_file
4269
        const char *.
4270
        (script_from_file): Change `file' arg to const char *.
4271
        * cli/cli-script.h (script_from_file): Update.
4272
 
4273
2010-04-06  Doug Evans  
4274
 
4275
        * cli/cli-cmds.c (source_command): Run cleanups.
4276
 
4277
2010-04-06  Stan Shebs  
4278
 
4279
        * defs.h (char_ptr): Move typedef here from...
4280
        * ada-lang.c (char_ptr): Remove.
4281
        * charset.c (char_ptr): Remove.
4282
        * tracepoint.h (struct uploaded_string): Remove.
4283
        (struct uploaded_tp): Use vectors for string arrays.
4284
        * tracepoint.c (trace_save): Use vectors of actions.
4285
        (parse_tracepoint_definition): Ditto.
4286
        (get_uploaded_tp): Clear vectors.
4287
        * breakpoint.c (create_tracepoint_from_upload): Use vectors.
4288
        (next_cmd): Change to an int.
4289
        (read_next_cmd): Use vector of command strings.
4290
 
4291
2010-04-06  Doug Evans  
4292
 
4293
        * top.h (source_script, cd_command): Delete.
4294
        * main.c: #include "cli/cli-cmds.h"
4295
 
4296
2010-04-06  Kevin Buettner  
4297
 
4298
        * m32c-tdep.c (make_types): When calling `arch_type', pass size of
4299
        type in bytes, not bits.
4300
 
4301
2010-04-06  Pierre Muller  
4302
 
4303
        * stabsread.c (define_symbol): Add support for char
4304
        and string constants.
4305
 
4306
2010-04-06  Pierre Muller  
4307
 
4308
        Remove remaining "%ll" uses.
4309
        * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
4310
        hex_string call.
4311
        * rs6000-nat.c (rs6000_ptrace64): Idem.
4312
        * solib-pa64.c (pa64_current_sos): Idem.
4313
        * solib-spu.c (spu_current_sos): Idem.
4314
        * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
4315
        plongest call.
4316
        * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
4317
        phex (VAR, 8) call.
4318
        * sh64-tdep.c (sh64_show_media_regs): Idem.
4319
 
4320
2010-04-05  Stan Shebs  
4321
 
4322
        * tracepoint.c: Include gdbcore.h.
4323
        (tfile_xfer_partial): Return partial results, also try reading
4324
        from executable.
4325
        (tfile_has_all_memory): New function.
4326
        (init_tfile_ops): Use it.
4327
 
4328
2010-04-05  Sergio Durigan Junior  
4329
 
4330
        PR gdb/10736:
4331
        * xml-syscall.c (my_gdb_datadir): New variable to keep track of
4332
        the changes in data-directory.
4333
        (init_sysinfo): Reload the syscall XML file if the data-directory
4334
        has changed.
4335
 
4336
2010-04-05  Jan Kratochvil  
4337
 
4338
        Code cleanup.
4339
        * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
4340
 
4341
2010-04-04  Stan Shebs  
4342
            Nathan Sidwell  
4343
 
4344
        * breakpoint.c (breakpoint_1): Add filter argument, return number of
4345
        breakpoints printed.
4346
        (is_hardware_watchpoint): Make argument const.
4347
        (is_watchpoint): Ditto.
4348
        (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
4349
        use it everywhere.
4350
        (breakpoints_info): Pass NULL to breakpoint_1.
4351
        (maintenance_info_breakpoints): Ditto.
4352
        (watchpoints_info): New function.
4353
        (tracepoints_info): Use breakpoint_1 filter.
4354
        (set_ignore_count): Warn that tracepoint ignore count will be ignored.
4355
        (_initialize_breakpoint): Make "info watchpoints" its own command.
4356
        * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
4357
        * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
4358
 
4359
2010-04-04  Stan Shebs  
4360
 
4361
        * tracepoint.c (tfile_fetch_registers): Add fallback case.
4362
 
4363
2010-04-04  Jan Kratochvil  
4364
 
4365
        * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
4366
        * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
4367
 
4368
2010-04-04  Jan Kratochvil  
4369
 
4370
        * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
4371
        * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
4372
 
4373
2010-04-02  Jan Kratochvil  
4374
 
4375
        * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
4376
        code form.
4377
 
4378
2010-04-02  Hui Zhu  
4379
 
4380
        * i386-tdep.c (OT_DQUAD): New enum.
4381
        (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
4382
        SSE3, SSSE3 and SSE4.
4383
 
4384
2010-04-02  Hui Zhu  
4385
 
4386
        * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
4387
        "*addr = 0".
4388
 
4389
2010-04-02  Pedro Alves  
4390
 
4391
        * tracepoint.c (trace_dump_actions): New, factored out from
4392
        trace_dump_command, and adjusted to recurse into while-stepping's
4393
        action list.
4394
        (trace_dump_command): Use it.
4395
 
4396
2010-04-02  Pedro Alves  
4397
 
4398
        * breakpoint.h (struct counted_command_line): Moved definition to
4399
        breakpoint.c, and forward declare.
4400
        (breakpoint_commands): Declare.
4401
        * breakpoint.c (struct counted_command_line): Moved here.
4402
        (breakpoint_commands): New.
4403
        * tracepoint.c (encode_actions): Use breakpoint_commands.
4404
        * remote.c (remote_download_tracepoint): Ditto.
4405
 
4406
2010-04-01  H.J. Lu  
4407
 
4408
        * remote.c (remote_parse_stop_reply): Use hex_string instead
4409
        of phex_nz for error.
4410
 
4411
2010-04-01  Stan Shebs  
4412
            Nathan Sidwell  
4413
 
4414
        * tracepoint.h (enum actionline_type): Remove.
4415
        (validate_actionline): Change return to void.
4416
        * tracepoint.c (report_agent_reqs_errors): New function.
4417
        (validate_actionline): Call it, change return to void, report errors
4418
        more consistently.
4419
        (collect_symbol): Call report_agent_reqs_errors.
4420
        (encode_actions_1): Ditto.
4421
        (encode_actions): Don't expect a result from validate_actionline.
4422
 
4423
2010-04-01  Stan Shebs  
4424
 
4425
        * tracepoint.c (trace_start_command): Confirm if trace is running.
4426
        (trace_stop_command): Error if trace not running.
4427
 
4428
2010-04-01  H.J. Lu  
4429
 
4430
        * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
4431
        (AMD64_NUM_LOWER_BYTE_REGS): New.
4432
        (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
4433
        (amd64_pseudo_register_write): Likewise.
4434
        (amd64_init_abi): Set num_byte_regs to 20.
4435
 
4436
2010-04-01  Pedro Alves  
4437
 
4438
        * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
4439
        (prev_breakpoint_count): New.
4440
        (set_breakpoint_count): Adjust.
4441
        (rbreak_start_breakpoint_count): New.
4442
        (start_rbreak_breakpoints): Adjust.
4443
        (end_rbreak_breakpoints): Adjust.
4444
        (struct commands_info) : New field.
4445
        (do_map_commands_command): Tweak output to include breakpoint spec
4446
        range.
4447
        (commands_command_1): Adjust.  Avoid setting an xfree cleanup if
4448
        ARG was empty on entry.  Set INFO's arg.
4449
        (create_breakpoint): Adjust.
4450
 
4451
        * NEWS: Clarify `commands' changes.
4452
 
4453
2010-04-01  Pedro Alves  
4454
 
4455
        * tracepoint.c: Include stack.h.
4456
        (struct add_local_symbols_data): New.
4457
        (do_collect_symbol): New.
4458
        (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
4459
        iterate_over_block_local_vars.
4460
        * stack.c (print_block_frame_locals): Rewrite as ...
4461
        (iterate_over_block_locals): ... this.  Take a callback function
4462
        pointer and generic data pointer, and call that instead of
4463
        print_variable_and_value.
4464
        (struct print_variable_and_value_data): New.
4465
        (do_print_variable_and_value): New.
4466
        (iterate_over_block_local_vars): New, abstracted out from
4467
        print_frame_local_vars.
4468
        (print_frame_local_vars): Rewrite using
4469
        iterate_over_block_local_vars.
4470
        (iterate_over_block_arg_vars): New, abstracted out from
4471
        print_frame_arg_vars.
4472
        (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
4473
        * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
4474
        (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
4475
 
4476
2010-03-31  Richard Earnshaw  
4477
 
4478
        * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
4479
        instructions.  Use the PC+4 if the base of the TBB or TBH is the
4480
        PC register.
4481
 
4482
2010-03-31  Jan Kratochvil  
4483
 
4484
        Fix crash on reading wrong function declaration DWARF.
4485
        * dwarf2read.c (read_subroutine_type): New variable void_type.
4486
        Pre-fill all TYPE_FIELD_TYPEs.  Move nparams and iparams initialization
4487
        more close to their use.
4488
 
4489
2010-03-31  Stan Shebs  
4490
 
4491
        * breakpoint.c (tracepoint_save_command): Include variables,
4492
        conditionals, tracepoint types, and default-collect.
4493
        * tracepoint.c (save_trace_state_variables): New function.
4494
        * tracepoint.h (save_trace_state_variables): Declare it.
4495
 
4496
2010-03-31  Pierre Muller  
4497
 
4498
        * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
4499
 
4500
2010-03-30  Keith Seitz  
4501
 
4502
        * c-typeprint.c (c_type_print_args): Don't print "void"
4503
        for java, regardless of whether it is TYPE_PROTOTYPED.
4504
        Use the passed-in language instead of current_language.
4505
        (c_type_print_varspec_suffix): Use current_language instead
4506
        of assuming language_c.
4507
        * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
4508
        any return type specifier from the physname.
4509
 
4510
2010-03-30  Pedro Alves  
4511
 
4512
        * tui/tui-interp.c (tui_is_toplevel): New.
4513
        (tui_init): Set it.
4514
        (tui_allowed_p): New.
4515
        * tui/tui.c (tui_enable): Check if the TUI is allowed before
4516
        enabling it.
4517
        * tui/tui.h (tui_allowed_p): Declare.
4518
 
4519
2010-03-30  Ozkan Sezer  
4520
 
4521
        * serial.h: Include winsock2.h before windows.h.
4522
 
4523
2010-03-30  H.J. Lu  
4524
 
4525
        * NEWS: Mention xmlRegisters= in qSupported packet.
4526
 
4527
        * i386-tdep.c: Include "remote.h".
4528
        (_initialize_i386_tdep): Call register_remote_support_xml.
4529
 
4530
        * remote.c (remote_support_xml): New.
4531
        (register_remote_support_xml): Likewise.
4532
        (remote_query_supported_append): Likewise.
4533
        (remote_query_supported): Support remote_support_xml.
4534
 
4535
        * remote.h (register_remote_support_xml): New.
4536
 
4537
2010-03-29  Stan Shebs  
4538
 
4539
        * tracepoint.c (trace_find_line_command): Remove dead code.
4540
 
4541
        * tracepoint.h (struct uploaded_string): New struct.
4542
        (struct uploaded_tp): New fields for source strings.
4543
        * breakpoint.c (this_utp, next_cmd): New globals.
4544
        (read_uploaded_action): New function.
4545
        (create_tracepoint_from_upload): Fill in more parts
4546
        of a tracepoint.
4547
        * tracepoint.c (encode_source_string): New function.
4548
        (trace_save): Write out source strings, fix error checks.
4549
        (parse_tracepoint_definition): Add source string parsing.
4550
        * remote.c (PACKET_TracepointSource): New packet type.
4551
        (remote_download_command_source): New function.
4552
        (remote_download_tracepoint): Download source pieces also.
4553
        (_initialize_remote): Add packet config command.
4554
 
4555
        * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
4556
        expression handler.
4557
 
4558
        * tracepoint.c (start_tracing): Check tracepoints before sending
4559
        commands to target, don't start if all tracepoints disabled.
4560
 
4561
2010-03-28  Pedro Alves  
4562
 
4563
        * cli/cli-script.c (process_next_line): Handle 'stepping'.
4564
 
4565
2010-03-26  Stan Shebs  
4566
 
4567
        * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
4568
 
4569
2010-03-26  Tom Tromey  
4570
 
4571
        * breakpoint.c (commands_command_1): Duplicate 'arg'.
4572
 
4573
2010-03-26  Ulrich Weigand  
4574
 
4575
        * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
4576
        (skip_prologue_sal): Remove local definition.
4577
        (resolve_sal_pc): Remove now unnecessary code.
4578
        * linespec.c (minsym_found): Call skip_prologue_sal.
4579
        * symtab.c (find_function_start_pc): Remove.
4580
        (find_function_start_sal): Extract prologue skipping into ...
4581
        (skip_prologue_sal): ... this new function.  Handle code both
4582
        with and without debug info.  Respect SAL's explicit_pc and
4583
        explicit_line flags.  Inline old find_function_start_pc.
4584
        * symtab.h (find_function_start_pc): Remove.
4585
        (skip_prologue_sal): Add prototype.
4586
 
4587
2010-03-26  Ulrich Weigand  
4588
 
4589
        * dwarf2read.c (read_func_scope): Also scan specification DIEs
4590
        for DW_TAG_imported_module children.
4591
 
4592
2010-03-26  Ulrich Weigand  
4593
 
4594
        * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
4595
        ignoring spurious DW_AT_name attributes for unnamed structs or unions.
4596
        * completer.c (add_struct_fields): Fix inverted logic.
4597
 
4598
2010-03-26  Ulrich Weigand  
4599
 
4600
        * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
4601
 
4602
2010-03-26  Pedro Alves  
4603
 
4604
        * tracepoint.c (current_trace_status): Don't make sure error_desc
4605
        is non-NULL here.
4606
        (parse_trace_status): Release a previous error_desc string, and
4607
        set it to NULL by default.  If stop reason is tracepoint_error,
4608
        make sure error_desc is not left NULL.
4609
 
4610
2010-03-26  Pedro Alves  
4611
 
4612
        * tracepoint.c (trace_save): Remove X from tracepoint error
4613
        description.
4614
 
4615
2010-03-26  Pedro Alves  
4616
 
4617
        * tracepoint.c (parse_trace_status): Don't allow plain strings in
4618
        the terror description.  Don't expect an X prefix.
4619
 
4620
2010-03-25  Stan Shebs  
4621
 
4622
        * tracepoint.h (trace_stop_reason): Add tracepoint_error.
4623
        (struct trace_status): New field error_desc.
4624
        * tracepoint.c (stop_reason_names): Add terror.
4625
        (current_trace_status): Ensure non-NULL error description.
4626
        (trace_status_command): Add error report.
4627
        (trace_status_mi): Ditto.
4628
        (trace_save): Add special case for error description.
4629
        (parse_trace_status): Add case for errors.
4630
 
4631
2010-03-25  Keith Seitz  
4632
 
4633
        * dwarf2read.c (read_subroutine_type): If the compilation unit
4634
        language is Java, mark any formal parameter named "this" as
4635
        artificial (GCC/43521).
4636
        (dwarf2_name): Add special handling for Java constructors.
4637
 
4638
2010-03-25  Tom Tromey  
4639
 
4640
        PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
4641
        * infrun.c (handle_inferior_event): Change initialization of
4642
        stop_stack_dummy.
4643
        (handle_inferior_event): Change assignment to stop_stack_dummy.
4644
        (normal_stop): Update use of stop_stack_dummy.
4645
        (struct inferior_status) : Change type.
4646
        * inferior.h (stop_stack_dummy): Update.
4647
        * infcmd.c (stop_stack_dummy): Change type.
4648
        * infcall.c (cleanup_delete_std_terminate_breakpoint): New
4649
        function.
4650
        (call_function_by_hand): Call set_std_terminate_breakpoint.
4651
        Rewrite std::terminate handling.
4652
        * breakpoint.h (enum bptype) 
4653
        bp_std_terminate_master>: New.
4654
        (enum stop_stack_kind): New.
4655
        (struct bpstat_what) : Change type.
4656
        (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
4657
        Declare.
4658
        * breakpoint.c (create_std_terminate_master_breakpoint): New
4659
        function.
4660
        (update_breakpoints_after_exec): Handle bp_std_terminate_master.
4661
        Call create_std_terminate_master_breakpoint.
4662
        (print_it_typical): Handle new breakpoint kinds.
4663
        (bpstat_stop_status): Handle bp_std_terminate_master.
4664
        (bpstat_what): Correctly set call_dummy field.  Handle
4665
        bp_std_terminate_master and bp_std_terminate.
4666
        (print_one_breakpoint_location): Update.
4667
        (allocate_bp_location): Update.
4668
        (set_std_terminate_breakpoint): New function.
4669
        (delete_std_terminate_breakpoint): Likewise.
4670
        (create_thread_event_breakpoint): Update.
4671
        (delete_command): Update.
4672
        (breakpoint_re_set_one): Update.
4673
        (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
4674
 
4675
2010-03-25  Jan Kratochvil  
4676
 
4677
        * symfile.c (build_section_addr_info_from_bfd): New.
4678
        (build_section_addr_info_from_objfile): Base it on
4679
        build_section_addr_info_from_bfd.
4680
        (addrs_section_compar, addrs_section_sort): New.
4681
        (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
4682
        addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs.  Build
4683
        addrs_to_abfd_addrs.  Use it for recalculating ADDRS.
4684
 
4685
2010-03-24  Michael Snyder  
4686
 
4687
        * elfread.c (find_separate_debug_file_by_buildid):
4688
        Remove unused local variable.
4689
 
4690
2010-03-24  Tom Tromey  
4691
 
4692
        PR breakpoints/9352:
4693
        * NEWS: Mention changes to `commands' and `rbreak'.
4694
        * symtab.c (do_end_rbreak_breakpoints): New function.
4695
        (rbreak_command): Call start_rbreak_breakpoints; arrange to call
4696
        end_rbreak_breakpoints.
4697
        * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
4698
        (set_breakpoint_count): Likewise.  Clear last_was_multi.
4699
        (multi_start, multi_end, last_was_multi): New globals.
4700
        (start_rbreak_breakpoints, end_rbreak_breakpoints): New
4701
        functions.
4702
        (struct commands_info): New
4703
        (do_map_commands_command): New function.
4704
        (commands_command_1): New function.
4705
        (commands_command): Use it.
4706
        (commands_from_control_command): Likewise.
4707
        (do_delete_breakpoint): New function.
4708
        (delete_command): Use it.
4709
        (map_breakpoint_numbers): Add 'data' argument.  Pass to callback.
4710
        (do_map_disable_breakpoint): New function.
4711
        (disable_command): Use it.
4712
        (do_map_enable_breakpoint): New function.
4713
        (enable_command): Use it.
4714
        (enable_once_breakpoint): Add argument.
4715
        (enable_once_command): Update.
4716
        (enable_delete_breakpoint): Add argument.
4717
        (enable_delete_command): Update.
4718
        (break_command_really): Set last_was_multi when needed.
4719
        (check_tracepoint_command): Fix formatting.
4720
        (validate_commands_for_breakpoint): New function.
4721
        (breakpoint_set_commands): Use it.
4722
        (tracepoint_save_command): Update.
4723
        * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
4724
        Declare.
4725
 
4726
2010-03-24  Tom Tromey  
4727
 
4728
        * breakpoint.h (struct counted_command_line): New struct.
4729
        (struct breakpoint) : Change type.
4730
        (struct bpstats) : Change type.
4731
        : New field.
4732
        * breakpoint.c (alloc_counted_command_line): New function.
4733
        (incref_counted_command_line): Likewise.
4734
        (decref_counted_command_line): Likewise.
4735
        (do_cleanup_counted_command_line): Likewise.
4736
        (make_cleanup_decref_counted_command_line): Likewise.
4737
        (breakpoint_set_commands): Use decref_counted_command_line and
4738
        alloc_counted_command_line.
4739
        (commands_command): Don't error if breakpoint commands are
4740
        executing.
4741
        (commands_from_control_command): Likewise.
4742
        (bpstat_free): Update.
4743
        (bpstat_copy): Likewise.
4744
        (bpstat_clear_actions): Likewise.
4745
        (bpstat_do_actions_1): Likewise.
4746
        (bpstat_stop_status): Likewise.
4747
        (print_one_breakpoint_location): Likewise.
4748
        (delete_breakpoint): Likewise.
4749
        (bpstat_alloc): Initialize new field.
4750
        (tracepoint_save_command): Update.
4751
        * tracepoint.c (encode_actions): Update.
4752
        (trace_dump_command): Update.
4753
 
4754
2010-03-24  Daniel Jacobowitz  
4755
 
4756
        * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
4757
        * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
4758
        (read_structure_type): For RealView, set TYPE_STUB on structures with
4759
        no byte size and no children.
4760
        (read_subroutine_type): Mark functions as prototyped by default.
4761
        * symtab.c (producer_is_realview): New function.
4762
        * symtab.h (expand_line_sal): Fix declaration formatting.
4763
        (producer_is_realview): Declare.
4764
 
4765
2010-03-24  Daniel Jacobowitz  
4766
 
4767
        * arm-tdep.c (skip_prologue_function): New function.
4768
        (submask, bit, bits, sbits, BranchDest): Move higher in the file.
4769
        (thumb_analyze_prologue): Document return value.  Recognize more
4770
        Thumb instructions, skippable calls, and some Thumb-2 instructions.
4771
        Add debug output.
4772
        (arm_skip_prologue): Remove call dummy check.  Check the prologue
4773
        for non-GNU compilers.
4774
        (arm_instruction_changes_pc): New function.
4775
        (arm_analyze_prologue): New function, broken out from
4776
        arm_scan_prologue.  Recognize more ARM instructions and skippable
4777
        calls.  Update comments.  Handle NULL cache.  Return the address
4778
        of the first unrecognized instruction.  Do not skip past other
4779
        instructions which change control flow.  Add debug output.
4780
        (arm_scan_prologue): Use arm_analyze_prologue.
4781
        (ARM_PC_32): Delete.
4782
        (shifted_reg_val): Simplify ARM_PC_32 check.
4783
 
4784
2010-03-24  Vladimir Prus  
4785
 
4786
        * tracepoint.c (tvariables_info_1): Actually compute
4787
        the number of rows in the result.
4788
 
4789
2010-03-24  Pedro Alves  
4790
 
4791
        * remote.c (crc32): Constify `buf' parameter.
4792
        (remote_verify_memory): New, abstracted out from...
4793
        (compare_sections_command): ... this.  Remove hardcoded target
4794
        checks.
4795
        (init_remote_ops): Install remote_verify_memory.
4796
        * target.c (target_verify_memory): New.
4797
        * target.h (struct target_ops) : New field.
4798
        (target_verify_memory): Declare.
4799
 
4800
2010-03-24  Vladimir Prus  
4801
 
4802
        Implement -trace-save.
4803
 
4804
        * mi-cmds.h (mi_cmds_trace_save): Declare.
4805
        * mi-cmds.c (mi_cmds): Register -trace-save.
4806
        * mi/mi-main.c (mi_cmd_trace_save): New.
4807
        * remote.c (remote_save_trace_data): Take const parameter.
4808
        * target.h (struct target_ops::to_save_trace_data): Take
4809
        const parameter.
4810
        * target.c (update_current_target): Adjust to the above.
4811
        * tracepoint.c (trave_save): New, extracted from
4812
        (trace_save_command): ...this.
4813
        (tfile_trace_find): Remove message that is unnecessary now
4814
        that 'tfind' reports found frame.
4815
        * tracepoint.h (trace_save): Declare.
4816
 
4817
2010-03-24  Vladimir Prus  
4818
 
4819
        Implement -trace-find.
4820
 
4821
        * mi/mi-cmds.c (mi_cmds): Register -trace-find.
4822
        * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
4823
        * mi/mi-main.c (mi_cmd_trace_find): New.
4824
        * target.h (struct target_ops): Document to_trace_find.
4825
        * tracepoint.h (tfind_1): Declare.
4826
        * tracepoint.c (finish_tfind_command): Rename to...
4827
        (tfind_1): ...this.
4828
        * remote.c (remote_trace_find): Return -1 if target say
4829
        there's no frame.  Improve error diagnostics.
4830
 
4831
2010-03-24  Vladimir Prus  
4832
 
4833
        -trace-define-variable and -trace-list-variables.
4834
 
4835
        * tracepoint.c (create_trace_state_variable): Make
4836
        private copy of name, as opposed to assuming the
4837
        pointer lives forever.
4838
        (tvariables_info_1): New.
4839
        (tvariables_info): Use the above.
4840
        * tracepoint.h (create_trace_state_variable, tvariables_info_1):
4841
        Declare.
4842
        * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
4843
        and -trace-list-variables.
4844
        * mi/mi-cmds.h (mi_cmd_trace_define_variable)
4845
        (mi_cmd_trace_list_variables): New.
4846
        * mi/mi-main.c (mi_cmd_trace_define_variable)
4847
        (mi_cmd_trace_list_variables): New.
4848
 
4849
2010-03-24  Vladimir Prus  
4850
 
4851
        Implement -break-passcount.
4852
 
4853
        * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
4854
        * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
4855
        * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
4856
 
4857
2010-03-24  Vladimir Prus  
4858
 
4859
        -trace-start/-trace-end/-trace-status.
4860
 
4861
        * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
4862
        and -trace-stop.
4863
        * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
4864
        (mi_cmd_trace_stop): Declare.
4865
        * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
4866
        (mi_cmd_trace_stop): New.
4867
        * tracepoint.c (start_tracing): New, extracted from...
4868
        (trace_start_command): ...this.
4869
        (trace_status_mi): New.
4870
        * tracepoint.h (struct trace_status): Document
4871
        stopping_tracepoint.
4872
        (start_tracing, stop_tracing, trace_status_mi): Declare.
4873
 
4874
2010-03-24  Vladimir Prus  
4875
 
4876
        Implement creating tracepoints with -break-insert.
4877
 
4878
        * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
4879
        to mean that tracepoint should be created.
4880
 
4881
2010-03-24  Vladimir Prus  
4882
 
4883
        * breakpoint.c (check_no_tracepoint_commands): Use
4884
        current spelling of 'teval'.
4885
 
4886
2010-03-24  Vladimir Prus  
4887
 
4888
        Unify actions and commands
4889
 
4890
        * defs.h (read_command_lines, read_command_lines_1): New
4891
        parameters validator and closure.
4892
        * tracepoint.h (struct action_line): Remove.
4893
        * breakpoint.h (struct breakpoint): Remove the 'actions'
4894
        field.
4895
        * defs.h (enum command_control_type): New value
4896
        while_stepping_control.
4897
        (struct command_line): Add comments.
4898
        * breakpoint.c (breakoint_is_tracepoint): New.
4899
        (breakpoint_set_commands): For tracepoints,
4900
        verify the commands are permissible.
4901
        (check_tracepoint_commands): New.
4902
        (commands_command): Require that each new line is validated using
4903
        check_tracepoint_command, if we set commands for a tracepoint.
4904
        (create_tracepoint_from_upload): Likewise.
4905
        (print_one_breakpoint_location): Remove the code to print
4906
        actions specifically.
4907
        (tracepoint_save_command): Relay to print_command_lines.
4908
        * cli/cli-script.c (process_next_line): New parameters validator
4909
        and closure. Handle 'while-stepping'. Call validator if not null.
4910
        (read_command_lines, read_command_lines1): Likewise.
4911
        (recurse_read_control_structure): New parameters validator and
4912
        closure. Handle while_stepping_control.
4913
        (print_command_lines): Handle while-stepping.
4914
        (get_command_line, define_command, document_command): Adjust.
4915
        * remote.c (remote_download_tracepoint): Adjust.
4916
        * tracepoint.c (make_cleanup_free_actions, read_actions)
4917
        (free_actions, do_free_actions_cleanup): Remove.
4918
        (trace_actions_command): Use read_command_lines.
4919
        (validate_actionline): Use error in one place.
4920
        (encode_actions_1): New, extracted from...
4921
        (encode_actions): ...this. Also use cleanups for exception
4922
        safety.
4923
        (trace_dump_command): Adjust.
4924
        * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
4925
        it's tracepoint.
4926
 
4927
2010-03-23  Mike Frysinger  
4928
 
4929
        * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
4930
 
4931
2010-03-22  Stan Shebs  
4932
 
4933
        * value.c (value_static_field): Be lazy about the field's value.
4934
 
4935
2010-03-22  Reid Kleckner  
4936
 
4937
        PR gdb/11094
4938
        * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
4939
        bp_jit_event.
4940
        (disable_breakpoints_in_shlibs): Likewise.
4941
 
4942
2010-03-22  Ulrich Weigand  
4943
 
4944
        * dwarf2read.c (partial_die_parent_scope): Work around buggy
4945
        GCC 4.1 debug info generation (GCC PR c++/28460).
4946
        (determine_prefix): Likewise.
4947
 
4948
2010-03-20  Daniel Jacobowitz  
4949
 
4950
        * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
4951
        get_current_arch.
4952
        * tui/tui-layout.c (extract_display_start_addr): Likewise.
4953
 
4954
2010-03-19  Stan Shebs  
4955
 
4956
        * ax-gdb.c (gen_fetch): Handle bool.
4957
        (gen_usual_unary): Ditto.
4958
        (gen_cast): Ditto.
4959
        (gen_equal): New function.
4960
        (gen_less): New function.
4961
        (gen_expr_binop_rest): Call them, also return integer type from
4962
        logical operations.
4963
        (gen_expr): Ditto.
4964
 
4965
2010-03-19  Tom Tromey  
4966
 
4967
        * jv-lang.c (jv_dynamics_objfile_data_key)
4968
        (jv_type_objfile_data_key): New globals.
4969
        (class_symtab): Move earlier.
4970
        (jv_per_objfile_free): New function.
4971
        (get_dynamics_objfile): Call set_objfile_data.  Add 'gdbarch'
4972
        parameter.
4973
        Remove ancient #if 1.
4974
        (add_class_symbol): Remove redundant declaration.
4975
        (java_lookup_class): Use alloc_type, not alloc_type_arch.
4976
        (java_link_class_type): Mark as static.  Update.
4977
        (jv_clear_object_type): New function.
4978
        (set_java_object_type): Likewise.
4979
        (get_java_object_type): Use set_java_object_type.
4980
        (is_object_type): Likewise.
4981
        (_initialize_java_language): Register new objfile keys.
4982
        (get_java_class_symtab): Add 'gdbarch' parameter.
4983
        (add_class_symtab_symbol): Update.
4984
        (type_from_class): Update.
4985
 
4986
2010-03-19  Stan Shebs  
4987
 
4988
        * ax-general.c (ax_const_l): Fix a sizing bug.
4989
 
4990
2010-03-18  Joel Brobecker  
4991
 
4992
        GDB 7.1 released.
4993
 
4994
2010-03-18  Stan Shebs  
4995
            Pedro Alves  
4996
 
4997
        * target.h (struct target_ops): New method
4998
        to_set_circular_trace_buffer.
4999
        (target_set_circular_trace_buffer): New macro.
5000
        * target.c (update_current_target): Add
5001
        to_set_circular_trace_buffer, fix to_set_disconnected_tracing
5002
        default behavior.
5003
        * remote.c (remote_set_circular_trace_buffer): New function.
5004
        (init_remote_ops): Add it to vector.
5005
        * tracepoint.h (struct trace_status): New field traceframes_created,
5006
        change buffer_size and buffer_free to int.
5007
        * tracepoint.c (circular_trace_buffer): New global.
5008
        (start_tracing): Send values of disconnected tracing and circular
5009
        trace buffer settings.
5010
        (set_circular_trace_buffer): New function.
5011
        (parse_trace_state): Handle total space and frames created.
5012
        (trace_status_command): Display total space and total frames
5013
        created.
5014
        (trace_save): Write out new status values.
5015
        (parse_trace_status): Set traceframe_count, traceframes_created,
5016
        buffer_free and buffer_size to -1 by default.
5017
        (_initialize_tracepoint): New setshow for circular-trace-buffer.
5018
        * NEWS: Mention the circular trace buffer option.
5019
 
5020
2010-03-18  Tom Tromey  
5021
 
5022
        * infcmd.c (finish_command_continuation): Wrap print_return_value
5023
        in TRY_CATCH.
5024
 
5025
2010-03-18  Joel Brobecker  
5026
 
5027
        * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
5028
        DIE has a name before creating the associated partial symbol.
5029
        (read_func_scope): Emit a complaint if the subprogram does not
5030
        have a name or when we can't extract the subprogram PC bounds.
5031
 
5032
2010-03-18  Ulrich Weigand  
5033
 
5034
        * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
5035
        instead of selected frame architecture.
5036
 
5037
2010-03-18  Pedro Alves  
5038
 
5039
        * infcmd.c (until_command): Use ERROR_NO_INFERIOR.  Ensure there's
5040
        a valid selected thread, and that it is not running.
5041
        (advance_command): Ditto.
5042
        (finish_command): Ditto.
5043
 
5044
2010-03-17 Stan Shebs  
5045
 
5046
        * ax-gdb.c (require_rvalue): Disallow non-scalars.
5047
 
5048
        * infcall.c: Include tracepoint.h.
5049
        (call_function_by_hand): Disallow calls in tfind mode.
5050
        * infcmd.c: Include tracepoint.h.
5051
        (ensure_not_tfind_mode): New function.
5052
        (continue_1): Call it.
5053
        (step_1) Ditto.
5054
        (jump_command): Ditto.
5055
        (signal_command): Ditto.
5056
        (advance_command): Ditto.
5057
        (until_command): Ditto.
5058
        (finish_command): Ditto.
5059
        * tracepoint.h (disconnect_or_stop_tracing): Declare.
5060
 
5061
        * ax-gdb.h (struct axs_value): New field optimized_out.
5062
        (gen_trace_for_var): Add gdbarch argument.
5063
        * ax-gdb.c (gen_trace_static_fields): New function.
5064
        (gen_traced_pop): Call it, add gdbarch argument.
5065
        (gen_trace_for_expr): Update call to it.
5066
        (gen_trace_for_var): Ditto, and report optimized-out variables.
5067
        (gen_struct_ref_recursive): Check for optimized-out value.
5068
        (gen_struct_elt_for_reference): Ditto.
5069
        (gen_static_field): Pass gdbarch instead of expression, assume
5070
        optimization if field not found.
5071
        (gen_var_ref): Set the optimized_out flag.
5072
        (gen_expr): Error on optimized-out variable.
5073
        * tracepoint.c (collect_symbol): Handle struct-valued vars as
5074
        expressions, skip optimized-out variables with computed locations.
5075
        * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
5076
        erroring out if location expression missing.
5077
        (loclist_tracepoint_var_ref): Don't error out here.
5078
 
5079
2010-03-17  Tom Tromey  
5080
 
5081
        * dwarf2read.c (dwarf2_get_section_info): Handle case where no
5082
        DWARF data is available.
5083
 
5084
2010-03-17  Daniel Jacobowitz  
5085
 
5086
        * symfile.c (generic_load): Reset breakpoints after loading.
5087
 
5088
2010-03-17  Tom Tromey  
5089
 
5090
        * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
5091
 
5092
2010-03-17  Jan Kratochvil  
5093
 
5094
        * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
5095
        create_breakpoint call, adjust the parameters.
5096
 
5097
2010-03-16  Jan Kratochvil  
5098
            Chandru 
5099
 
5100
        * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
5101
        * valarith.c (value_subscripted_rvalue): Suppress error if
5102
        TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
5103
 
5104
2010-03-16  Holger Hans Peter Freyther  
5105
 
5106
        * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
5107
 
5108
2010-03-16  Joel Brobecker  
5109
 
5110
        * ada-tasks.c (task_command_1): Check that the task ptid is valid
5111
        before doing the associated thread switch.
5112
 
5113
2010-03-16  Daniel Jacobowitz  
5114
 
5115
        * MAINTAINERS: Update my email address.
5116
 
5117
2010-03-16  Vladimir Prus  
5118
 
5119
        Simplify MI breakpoint setting.
5120
 
5121
        * breakpoint.c (break_command_really): Make nonstatic and
5122
        rename to...
5123
        (create_breakpoint): ...this. Rename prior function by this name
5124
        to...
5125
        (create_breakpoint_sal): ...this.
5126
        (create_breakpoints): Rename to...
5127
        (create_breakpoints_sal): ...this.
5128
        (set_breakpoint): Remove.
5129
        * breakpoint.h: Adjust to above changes.
5130
        * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
5131
 
5132
2010-03-15 Stan Shebs  
5133
 
5134
        * ax-gdb.c: Include cp-support.h.
5135
        (find_field): Remove.
5136
        (gen_primitive_field): New function.
5137
        (gen_struct_ref_recursive): New function.
5138
        (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
5139
        of find_field.
5140
        (gen_static_field): New function.
5141
        (gen_struct_elt_for_reference): New.
5142
        (gen_namespace_elt): New.
5143
        (gen_maybe_namespace_elt): New.
5144
        (gen_aggregate_elt_ref): New.
5145
        (gen_expr): Add OP_SCOPE, display opcode name in error message.
5146
 
5147
2010-03-15  Tom Tromey  
5148
 
5149
        * dwarf2read.c (die_needs_namespace): Also return 0 for
5150
        DW_TAG_subprogram.
5151
 
5152
2010-03-15  Sami Wagiaalla  
5153
 
5154
        PR c++/7936:
5155
        * cp-support.h: Added char *declaration element to using_direct
5156
        data struct.
5157
        (cp_add_using): Added char *declaration argument.
5158
        (cp_add_using_directive): Ditto.
5159
        (cp_lookup_symbol_imports): made extern.
5160
        * cp-namespace.c: Updated with the above changes.
5161
        * dwarf2read.c (read_import_statement): Ditto.
5162
        (read_namespace): Ditto.
5163
        (read_import_statement): Support import declarations.
5164
        * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
5165
        declarations.
5166
        Added support for 'declaration_only' search.
5167
        (cp_lookup_symbol_namespace): Attempt to search for the name as
5168
        is before consideration of imports.
5169
        * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
5170
        search at every block level search.
5171
        Now takes language argument.
5172
        (lookup_symbol_aux): Updated.
5173
 
5174
2010-03-15  Tom Tromey  
5175
 
5176
        * c-exp.y (name_not_typename): Add 'operator' clause.
5177
 
5178
2010-03-15  Ralf Corsepius    (tiny change)
5179
 
5180
        * configure.ac: Exit if ${gdb_target_obs}" is not set.
5181
        * configure: Regenerate.
5182
 
5183
2010-03-15  Jan Kratochvil  
5184
 
5185
        * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
5186
        and ".sdynbss".  Update the comment.
5187
 
5188
2010-03-15  Jie Zhang  
5189
 
5190
        * MAINTAINERS: Update my email address.
5191
 
5192
2010-03-14  Daniel Jacobowitz  
5193
 
5194
        * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
5195
 
5196
2010-03-14  Daniel Jacobowitz  
5197
 
5198
        * charset.c [USE_WIN32API]: Include .
5199
         (_initialize_charset): Correct type of w32_host_default_charset.
5200
 
5201
2010-03-14  Pedro Alves  
5202
 
5203
        * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
5204
 
5205
2010-03-12  Tom Tromey  
5206
 
5207
        PR c++/9708:
5208
        * dwarf2read.c (die_needs_namespace) : A variable
5209
        in a lexical block does not need a namespace.
5210
        (new_symbol) : Put extern variables on
5211
        list_in_scope in all cases.
5212
 
5213
2010-03-12 Stan Shebs  
5214
 
5215
        * ax-gdb.c (gen_expr): Add shift expressions.
5216
        (gen_expr_binop_rest): Ditto.
5217
 
5218
2010-03-12  Sami Wagiaalla  
5219
 
5220
        * buildsym.c (finish_block): Reset using_directives pointer
5221
        after block initialization.
5222
 
5223
2010-03-12  H.J. Lu  
5224
 
5225
        * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
5226
        * i386-tdep.c (i386_word_names): Likewise.
5227
 
5228
2010-03-12  Pedro Alves  
5229
 
5230
        * target.c (memory_xfer_partial): Don't use the stack cache if
5231
        inspecting trace frames.
5232
        * tracepoint.c (finish_tfind_command): Invalidate the target
5233
        dcache.
5234
 
5235
2010-03-11  Jan Kratochvil  
5236
 
5237
        * solib-svr4.c (LM_ADDR_CHECK) : Use printf_unfiltered
5238
        for the PIC displacement, print also the displacement value.
5239
        (svr4_exec_displacement):  Print DISPLACEMENT if INFO_VERBOSE.
5240
 
5241
2010-03-10  Kevin Buettner  
5242
 
5243
        * remote-mips.c (close_ports, mips_initialize_cleanups)
5244
        (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
5245
        (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
5246
        (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
5247
        (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
5248
        (pmon_check_entry_address, pmon_check_total, pmon_end_download)
5249
        (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
5250
        comments describing each of these functions.
5251
        (mips_enter_debug, mips_exit_debug, common_open)
5252
        (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
5253
        blank line after the comment describing the function.
5254
 
5255
2010-03-10  Jan Kratochvil  
5256
 
5257
        * solib-svr4.c (svr4_exec_displacement): Return now success, new
5258
        parameter displacementp.  Update comment.
5259
        (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
5260
        element exists.  Return if svr4_exec_displacement was not successful.
5261
        Update comment.
5262
 
5263
2010-03-10  Jan Kratochvil  
5264
            Daniel Jacobowitz  
5265
 
5266
        * solib-svr4.c (read_program_header): Support type == -1 to read
5267
        all program headers.
5268
        (read_program_headers_from_bfd): New function.
5269
        (svr4_static_exec_displacement): Remove and move the comment ...
5270
        (svr4_exec_displacement): ... here.  Remove variable found.  New
5271
        variable displacement.  Check also DYNAMIC.  Verify DISPLACEMENT
5272
        alignment for ELF targets.  Compare target vs. exec_bfd PHDRs for ELF
5273
        targets using read_program_headers_from_bfd.  Remove the call of
5274
        svr4_static_exec_displacement.
5275
 
5276
2010-03-10  Tom Tromey  
5277
 
5278
        * dwarf2read.c (struct pubnames_header): Remove.
5279
        (_PUBNAMES_HEADER): Remove.
5280
        (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
5281
        (struct aranges_header): Remove.
5282
        (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
5283
        (struct dwarf2_per_objfile) : Remove.
5284
        (PUBNAMES_SECTION): Remove.
5285
        (ARANGES_SECTION): Remove.
5286
        (dwarf2_locate_sections): Don't handle pubnames or aranges.
5287
        (dwarf2_build_psymtabs): Remove dead code.
5288
        (dwarf2_build_psymtabs_easy): Remove.
5289
 
5290
2010-03-10  Tom Tromey  
5291
 
5292
        * elfread.c (elf_symfile_read): Don't call
5293
        dwarf2_build_frame_info.
5294
        * dwarf2read.c (struct dwarf2_section_info) : New field.
5295
        (struct dwarf2_per_objfile) : New field.
5296
        (dwarf2_has_info): Now idempotent.  Set objfile field.
5297
        (dwarf2_read_section): Check and set readin field.  Call
5298
        posix_madvise.
5299
        (dwarf2_build_psymtabs): Don't read all sections.
5300
        (read_type_comp_unit_head): Read types section.
5301
        (create_debug_types_hash_table): Likewise.
5302
        (init_cu_die_reader): Add asserts.
5303
        (process_type_comp_unit): Add assert.
5304
        (dwarf2_build_psymtabs_hard): Read info section.
5305
        (load_partial_comp_unit): Add assert.
5306
        (create_all_comp_units): Read info section.
5307
        (load_full_comp_unit): Likewise.
5308
        (dwarf2_ranges_read): Read ranges section.
5309
        (dwarf2_record_block_ranges): Add assert.
5310
        (dwarf2_read_abbrevs): Read abbrev section.
5311
        (read_indirect_string): Read str section.
5312
        (dwarf_decode_line_header): Read line section.
5313
        (read_signatured_type_at_offset): Read types section.
5314
        (dwarf_decode_macros): Read macinfo section.
5315
        (dwarf2_symbol_mark_computed): Read loc section.
5316
        * dwarf2-frame.c (dwarf2_frame_find_fde): Call
5317
        dwarf2_build_frame_info.
5318
        (dwarf2_build_frame_info): Unconditionally set
5319
        dwarf2_frame_objfile_data on the objfile.
5320
        * configure.ac: Check for posix_madvise.
5321
        * config.in, configure: Rebuild.
5322
 
5323
2010-03-10  Tom Tromey  
5324
 
5325
        * xcoffread.c (xcoff_start_psymtab): Update.
5326
        (xcoff_end_psymtab): Update.
5327
        * psymtab.c (allocate_psymtab): Remove dead code.
5328
        * psympriv.h (struct partial_symtab) : Now
5329
        void*.
5330
        * mdebugread.c (parse_partial_symbols): Update.
5331
        (new_psymtab): Likewise.
5332
        * dwarf2read.c (process_psymtab_comp_unit): Update.
5333
        (psymtab_to_symtab_1): Update.
5334
        * dbxread.c (start_psymtab): Update.
5335
        (end_psymtab): Likewise.
5336
 
5337
2010-03-10  Tom Tromey  
5338
 
5339
        * xcoffread.c: Include psymtab.h.
5340
        (xcoff_sym_fns): Update.
5341
        * symtab.h (struct partial_symbol): Remove.
5342
        (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
5343
        (struct partial_symtab): Remove.
5344
        (PSYMTAB_TO_SYMTAB): Remove.
5345
        (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
5346
        (find_pc_sect_psymtab): Remove.
5347
        (find_pc_sect_symtab_via_partial): Declare.
5348
        (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
5349
        (find_main_psymtab): Remove.
5350
        (find_main_filename): Declare.
5351
        (fixup_psymbol_section): Remove.
5352
        (fixup_section): Declare.
5353
        * symtab.c: Include psymtab.h.
5354
        (lookup_symtab): Use lookup_symtab method.
5355
        (lookup_partial_symtab): Remove.
5356
        (find_pc_sect_psymtab_closer): Remove.
5357
        (find_pc_sect_psymtab): Remove.
5358
        (find_pc_sect_symtab_via_partial): New function.
5359
        (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
5360
        (fixup_section): No longer static.
5361
        (fixup_psymbol_section): Remove.
5362
        (lookup_symbol_aux): Use lookup_symbol_aux_quick.
5363
        (lookup_global_symbol_from_objfile): Likewise.
5364
        (lookup_symbol_aux_psymtabs): Remove.
5365
        (lookup_symbol_aux_quick): New function.
5366
        (lookup_symbol_global): Use lookup_symbol_aux_quick.
5367
        (lookup_partial_symbol): Remove.
5368
        (basic_lookup_transparent_type_quick): New function.
5369
        (basic_lookup_transparent_type): Use it.
5370
        (find_main_psymtab): Remove.
5371
        (find_main_filename): New function.
5372
        (find_pc_sect_symtab): Use find_pc_sect_symtab method.
5373
        (find_line_symtab): Use expand_symtabs_with_filename method.
5374
        (output_partial_symbol_filename): New function.
5375
        (sources_info): Use map_partial_symbol_filenames.
5376
        (struct search_symbols_data): New type.
5377
        (search_symbols_file_matches): New function.
5378
        (search_symbols_name_matches): Likewise.
5379
        (search_symbols): Use expand_symtabs_matching method.
5380
        (struct add_name_data): Rename from add_macro_name_data.
5381
        (add_macro_name): Update.
5382
        (add_partial_symbol_name): New function.
5383
        (default_make_symbol_completion_list): Use
5384
        map_partial_symbol_names.
5385
        (struct add_partial_symbol_name): New type.
5386
        (maybe_add_partial_symtab_filename): New function.
5387
        (make_source_files_completion_list): Use
5388
        map_partial_symbol_filenames.
5389
        (expand_line_sal): Use expand_symtabs_with_filename method.
5390
        * symmisc.c: Include psymtab.h.
5391
        (print_objfile_statistics): Use print_stats method.
5392
        (dump_objfile): Use dump method.
5393
        (dump_psymtab, maintenance_print_psymbols)
5394
        (maintenance_info_psymtabs, maintenance_check_symtabs)
5395
        (extend_psymbol_list): Remove.
5396
        * symfile.h (struct quick_symbol_functions): New struct.
5397
        (struct sym_fns) : New field.
5398
        (sort_pst_symbols): Remove.
5399
        (increment_reading_symtab): Declare.
5400
        * symfile.c: Include psymtab.h.
5401
        (compare_psymbols, sort_pst_symbols): Remove.
5402
        (psymtab_to_symtab): Remove.
5403
        (increment_reading_symtab): New function.
5404
        (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
5405
        method.
5406
        (set_initial_language): Use find_main_filename.
5407
        (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
5408
        (free_named_symtabs): Remove unused code.
5409
        (start_psymtab_common, add_psymbol_to_bcache)
5410
        (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
5411
        Remove.
5412
        * stack.c: Include psymtab.h, symfile.h.
5413
        (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
5414
        * source.h (psymtab_to_fullname): Don't declare.
5415
        * source.c: Include psymtab.h.
5416
        (select_source_symtab): Use find_last_source_symtab method.
5417
        (forget_cached_source_info): Use forget_cached_source_info
5418
        method.
5419
        (find_and_open_source): No longer static.
5420
        (psymtab_to_fullname): Remove.
5421
        * somread.c: Include psymtab.h.
5422
        (som_sym_fns): Update.
5423
        * psympriv.h: New file.
5424
        * psymtab.h: New file.
5425
        * psymtab.c: New file.
5426
        * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
5427
        (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
5428
        * objfiles.c: Include psymtab.h.
5429
        (objfile_relocate1): Use relocate method.
5430
        (objfile_has_partial_symbols): Use has_symbols method.
5431
        * mipsread.c: Include psymtab.h.
5432
        (ecoff_sym_fns): Update.
5433
        * mi/mi-cmd-file.c: Include psymtab.h.
5434
        (print_partial_file_name): New function.
5435
        (mi_cmd_file_list_exec_source_files): Use
5436
        map_partial_symbol_filenames.
5437
        * mdebugread.c: Include psympriv.h.
5438
        * machoread.c: Include psympriv.h.
5439
        (macho_sym_fns): Update.
5440
        * m2-exp.y (yylex): Use lookup_symtab.
5441
        * elfread.c: Include psympriv.h.
5442
        (elf_sym_fns): Update.
5443
        * dwarf2read.c: Include psympriv.h.
5444
        * dbxread.c: Include psympriv.h.
5445
        (aout_sym_fns): Update.
5446
        * cp-support.c: Include psymtab.h.
5447
        (read_in_psymtabs): Remove.
5448
        (make_symbol_overload_list_qualified): Use
5449
        expand_symtabs_for_function method.
5450
        * coffread.c: Include psympriv.h.
5451
        (coff_sym_fns): Update.
5452
        * blockframe.c: Include psymtab.h.
5453
        (find_pc_partial_function): Use find_pc_sect_symtab method.
5454
        * ada-lang.h (ada_update_initial_language): Update.
5455
        * ada-lang.c: Include psymtab.h.
5456
        (ada_update_initial_language): Remove 'main_pst' argument.
5457
        (ada_lookup_partial_symbol): Remove.
5458
        (struct ada_psym_data): New type.
5459
        (ada_add_psyms): New function.
5460
        (ada_add_non_local_symbols): Use map_ada_symtabs method.
5461
        (struct add_partial_datum): New type.
5462
        (ada_add_partial_symbol_completions): New function.
5463
        (ada_make_symbol_completion_list): Use map_partial_symbol_names.
5464
        (ada_exception_support_info_sniffer): Update.
5465
        * Makefile.in (SFILES): Add psymtab.c.
5466
        (COMMON_OBS): Add psymtab.o.
5467
        (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
5468
 
5469
2010-03-10  Pierre Muller  
5470
 
5471
        * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
5472
 
5473
2010-03-10  Sami Wagiaalla  
5474
 
5475
        PR C++/11236:
5476
        * cp-namespace.c (cp_add_using): Deleted.
5477
        (cp_add_using_directive): Use obstack allocations.
5478
        Merged the function cp_add_using into this one.
5479
        Added 'struct obstack *' argument.
5480
        (cp_scan_for_anonymous_namespaces): Updated.
5481
        * cp-support.h: Updated.
5482
        * dwarf2read.c (read_import_statement): Updated.
5483
        (read_namespace): Updated.
5484
 
5485
2010-03-10  Pierre Muller  
5486
 
5487
        * windows-nat.c (cygwin_conv_path): Remove old macro.
5488
 
5489
2010-03-10  Pedro Alves  
5490
 
5491
        * breakpoint.c (condition_command): Handle watchpoint conditions.
5492
        (is_hardware_watchpoint): Add comment.
5493
        (is_watchpoint): New.
5494
        (update_watchpoint): Don't reparse the watchpoint's condition
5495
        unless necessary.
5496
        (WP_IGNORE): New.
5497
        (watchpoint_check): Use it.
5498
        (bpstat_check_watchpoint): Handle it.
5499
        (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
5500
        conditions in a frame where it makes sense.
5501
        (watch_command_1): Store the innermost block of the condition
5502
        expression.
5503
        (delete_breakpoint): Delete the watchpoint condition expression.
5504
        * breakpoint.h (struct bp_location) : Update comment.
5505
        (struct breakpoint): New field `cond_exp_valid_block'.
5506
 
5507
2010-03-09  Joel Brobecker  
5508
 
5509
        Adjust handling of Ada DIEs after dwarf2_physname patch.
5510
        * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
5511
 
5512
2010-03-09  Christopher Faylor  
5513
            Pierre Muller  
5514
 
5515
        * windows-nat.c (cygwin_conv_path): Redefine to properly convert
5516
        from/to posix/win32.
5517
        (windows_make_so): Use non-Cygwin 1.7 specific function.
5518
        (windows_create_inferior): Make sure that cygallargs points to
5519
        original args in non Cygwin 1.7. case.
5520
 
5521
2010-03-09  Michael Snyder  
5522
 
5523
        * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
5524
        after target_read_memory to get host byte order.
5525
        (i386_process_record): Ditto.
5526
 
5527
2010-03-09  Keith Seitz  
5528
 
5529
        Based on work from Daniel Jacobowitz  
5530
        * c-typeprint.c (cp_type_print_method_args): For non-static methods,
5531
        print out const or volatile qualifiers, too.
5532
        (c_type_print_args): Add parameters show_artificial and language.
5533
        Skip artificial parameters when requested.
5534
        Use the appropriate language printer.
5535
        (c_type_print_varspec): Tell c_type_print_args to skip artificial
5536
        parameters and pass language_c.
5537
        * dwarf2read.c (die_list): New file global.
5538
        (struct partial_die_info): Update comments for name field.
5539
        (pdi_needs_namespace): Renamed to ...
5540
        (die_needs_namespace): ... this. Rewrite.
5541
        (dwarf2_linkage_name): Remove.
5542
        (add_partial_symbol): Do not predicate the call to
5543
        partial_die_full_name based on pdi_needs_namespace.
5544
        Remove call to cp_check_possible_namespace_symbols and associated
5545
        outdated comments.
5546
        (guess_structure_name): Do not inspect child subprogram DIEs.
5547
        (dwarf2_fullname): Update comments.
5548
        Use die_needs_namespace to assist in computing the name.
5549
        (read_func_scope): Use dwarf2_name to get the DIE's name.
5550
        Use dwarf2_physname to get the "linkage name" of the DIE.
5551
        (dwarf2_add_member_field): Use dwarf2_physname instead of
5552
        dwarf2_linkage_name.
5553
        (read_structure_type): For structs and classes, set TYPE_NAME, too.
5554
        (determine_class): Remove.
5555
        (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
5556
        except Ada.
5557
        (new_symbol): Unconditionally call dwarf2_name.
5558
        Compute the "linkage name" using dwarf2_physname.
5559
        Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
5560
        When determining to scan for anonymous C++ namespaces, ignore
5561
        the linkage name.
5562
        (dwarf2_physname): New function.
5563
        (dwarf2_full_name): Move content to new function and call
5564
        that.
5565
        (dwarf2_compute_name): "New" function.
5566
        (_initialize_dwarf2_read): Initialize die_list.
5567
        * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
5568
        physname.
5569
        (gnu_v3_print_method_ptr): Use the physname for virtual methods
5570
        without a demangled name.
5571
        Print out type information for non-virtual methods.
5572
        * linespec.c (decode_line_1): Force ANY string using "::" (or
5573
        "." for java) to use decode_compound, and clean up any stray quoting.
5574
        If we found a file symtab, re-evaluate whether the remainder is_quoted.
5575
        (decode_compound): Stop consuming at an open parenthesis.
5576
        Keep template parameters.
5577
        Keep any overload information.
5578
        Keep keywords like "const".
5579
        Remove paren_pointer.
5580
        Move is_quoted check from set_flags to here.
5581
        Remove #if 0 code from 2000. Ten years is long enough.
5582
        (find_method): Before comparing symbol names, canonicalize the string
5583
        from the user.
5584
        If a specific overload is requested, find it. Otherwise throw an error.
5585
        (find_method_overload_end): New function.
5586
        (set_flags): Remove.
5587
        (decode_compound): Assume that parentheses are matched.
5588
        It's a lot easier.
5589
        * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
5590
        to cplus_demangle.
5591
        * linespec.c (decode_line_1): Keep important keywords like
5592
        "const" and "volatile".
5593
        * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
5594
        * typeprint.h (c_type_print_args): Add declaration.
5595
        * ui-file.c (do_ui_file_obsavestring): New function.
5596
        (ui_file_obsavestring): New function.
5597
        * ui-file.h (ui_file_obsavestring): Add declaration.
5598
        * valops.c (find_overload_match): Resolve the object to
5599
        a non-pointer type.
5600
        If the object is a data member, search the object for the member
5601
        and return with staticp set.
5602
        Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
5603
        Do not attempt to extract a function name from non-function types.
5604
        If the extracted function name and the original name are the same,
5605
        we don't have a C++ method.
5606
 
5607
        From Jan Kratochvil  :
5608
        * dwarf2read.c (new_symbol ): Call dwarf2_full_name.
5609
 
5610
        * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
5611
        and arguments from symbol lookups.
5612
        * ax-gdb.c (gen_expr): Likewise.
5613
        * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
5614
        cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
5615
        lookup_possible_namespace_symbol): Likewise.
5616
        * cp-support.c (read_in_psymtabs): Likewise.
5617
        * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
5618
        * language.h (la_lookup_symbol_nonlocal): Likewise.
5619
        * scm-valprint.c (scm_inferior_print): Likewise.
5620
        * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
5621
        * solib-svr.c (elf_lookup_lib): Likewise.
5622
        * solib.c (show_auto_solib_add): Likewise.
5623
        * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
5624
        * symmisc.c (maintenance_check_symtabs): Likewise.
5625
        * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
5626
        lookup_symbol_aux_local, lookup_symbol_aux_block,
5627
        lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
5628
        lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
5629
        lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
5630
        basic_lookup_transparent_type, find_main_psymtab,
5631
        lookup_block_symbol): Likewise.
5632
        * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
5633
        lookup_symbol_global, lookup_symbol_aux_block,
5634
        lookup_symbol_partial_symbol, lookup_block_symbol,
5635
        lookup_global_symbol, value_maybe_namespace_elt): Likewise.
5636
 
5637
2010-03-09  Pierre Muller  
5638
 
5639
        * python/python-internal.h: Include symtab.h.
5640
 
5641
2010-03-09  Joel Brobecker  
5642
            Pierre Muller  
5643
 
5644
        * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
5645
        * p-valprint.c (pascal_val_print): Remove undeed block and fix
5646
        indentation.
5647
 
5648
2010-03-08  Tom Tromey  
5649
 
5650
        * breakpoint.c (breakpoint_1): Add "QUIT".
5651
 
5652
2010-03-08  Daniel Jacobowitz  
5653
            Pedro Alves  
5654
 
5655
        * solib.c (solib_find): Replace extension if
5656
        solib_symbols_extension is set in the target gdbarch.
5657
        * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5658
        solib_symbols_extension to "sym".
5659
        * gdbarch.sh (solib_symbols_extension): New variable.
5660
        (pstring): New function.
5661
        * gdbarch.h, gdbarch.c: Regenerate.
5662
 
5663
2010-03-08  Tom Tromey  
5664
 
5665
        PR cli/9591:
5666
        * NEWS: Update.
5667
        * utils.c: Include main.h.
5668
        (fputs_maybe_filtered): Don't paginate if `batch_flag'.
5669
        (defaulted_query): Use default answer if `batch_flag'.
5670
        * main.h (batch_flag): Declare.
5671
        * main.c (batch_flag): New global.
5672
        (captured_main): Remove 'batch'.  Update.
5673
 
5674
2010-03-08  Kevin Buettner  
5675
 
5676
        From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
5677
        and Kevin Buettner:
5678
 
5679
        * remote-mips.c (rockhopper_ops): New target_ops struct.
5680
        (MON_ROCKHOPPER): New mips_monitor_type.
5681
        (read_hex_value): New function.
5682
        (mips_request): Send 8-byte values with a 'T' packet.  Read the
5683
        packet argument as a string and use read_hex_value to parse it.
5684
        (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
5685
        (rockhopper_open): New function.
5686
        (mips_wait): Read the PC, FP and SP fields as strings.  Use
5687
        read_hex_value to parse them and mips_set_register to commit them.
5688
        (mips_set_register): New function.
5689
        (mips_fetch_registers): Do not cast register value to "unsigned"
5690
        when reading a MON_ROCKHOPPER 't' packet.  Use mips_set_register.
5691
        (mips_store_registers): Use a 'T' packet to set registers when
5692
        using MON_ROCKHOPPER.
5693
        (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
5694
        and expect the total to be printed before the entry address.
5695
        (_initialize_remote_mips): Initialize and add rockhopper_ops.
5696
 
5697
2010-03-08  Kevin Buettner  
5698
 
5699
        * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
5700
        Change return value to int.  Store value fetched in location
5701
        addressed by `val'.  Use function's return value as success
5702
        or failure indicator.  Adjust all callers.
5703
 
5704
2010-03-08  Pierre Muller  
5705
 
5706
        * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
5707
 
5708
2010-03-08  Jan Kratochvil  
5709
            Hui Zhu  
5710
 
5711
        * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
5712
        tmp_to_stopped_data_address.
5713
        (record_open): Reset tmp_to_stopped_by_watchpoint and
5714
        tmp_to_stopped_data_address.
5715
        * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
5716
        to_stopped_data_address.
5717
 
5718
2010-03-08  Hui Zhu  
5719
 
5720
        * i386-tdep.c (i386_process_record): Initialize regnum.
5721
 
5722
2010-03-08  Jan Kratochvil  
5723
 
5724
        * symfile.c (addr_info_make_relative): New variable sect_name, use it.
5725
        Do not warn on ".gnu.liblist" and ".gnu.conflict".
5726
 
5727
2010-03-08  Joel Brobecker  
5728
 
5729
        Memory error when reading wrong core file.
5730
        * solib-svr4.c (solib_svr4_r_map): catch and print all exception
5731
        errors while reading the inferior memory, and return zero if
5732
        an exception was raised.
5733
 
5734
2010-03-07  Michael Snyder  
5735
 
5736
        * record.c (record_restore): Rename tmpu8 to rectype.
5737
 
5738
        * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
5739
        tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
5740
 
5741
        (i386_record_push): Rename local tmpulongest to addr.
5742
 
5743
        (i386_process_record): Rename local tmpulongest to addr.
5744
 
5745
        Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
5746
        addr64.
5747
 
5748
        Rename local variable tmpu8 to opcode8 and regnum.
5749
 
5750
2010-03-07  Joel Brobecker  
5751
 
5752
        * remote.c (remote_get_ada_task_ptid): New function.
5753
        (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
5754
 
5755
2010-03-06  Christopher Faylor  
5756
 
5757
        * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
5758
        block.  Define helper macros to reduce ifdefs in code.
5759
        (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
5760
        size.  Call unadorned GetModuleFileNameEx rather than
5761
        GetModuleFileNameEx*.
5762
        (windows_make_so): Use __PMAX to denote maximum buffer size and
5763
        cygwin_buf_t for buffer type.  Use GetSystemDirectory{W,A} as
5764
        appropriate.
5765
        (get_image_name): Use __PMAX to denote maximum buffer size.
5766
        (handle_load_dll): Likewise.
5767
        (windows_pid_to_exec_file): Likewise.
5768
        (windows_create_inferior): Add many accommodations for older Cygwin and
5769
        non-Cygwin.
5770
        (bad_GetModuleFileNameExW): Control inclusion of this function based on
5771
        __USEWIDE conditional.
5772
        (bad_GetModuleFileNameExA): Likewise.
5773
        (_initialize_loadable): Just use real function names without the dyn_
5774
        part since they are defined earlier.
5775
 
5776
2010-03-05  Corinna Vinschen  
5777
            Tom Tromey  
5778
 
5779
        * utils.c (host_char_to_target): Add 'gdbarch' argument.
5780
        (parse_escape): Likewise.
5781
        * python/py-utils.c (unicode_to_target_string): Update.
5782
        (unicode_to_target_python_string): Update.
5783
        (target_string_to_unicode): Update.
5784
        * printcmd.c (printf_command): Update.
5785
        * p-exp.y (yylex): Update.
5786
        * objc-exp.y (yylex): Update.
5787
        * mi/mi-parse.c: Include charset.h.
5788
        (mi_parse_escape): New function.
5789
        (mi_parse_argv): Use it.
5790
        * jv-exp.y (yylex): Update.
5791
        * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
5792
        function.
5793
        (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
5794
        * gdbarch.sh (auto_charset, auto_wide_charset): New.
5795
        * gdbarch.c: Rebuild.
5796
        * gdbarch.h: Rebuild.
5797
        * defs.h (parse_escape): Update.
5798
        * cli/cli-setshow.c: Include arch-utils.h.
5799
        (do_setshow_command): Update.
5800
        * cli/cli-cmds.c (echo_command): Update.
5801
        * charset.h (target_charset, target_wide_charset): Update.
5802
        * charset.c: Include arch-utils.h.
5803
        (target_charset_name): Default to "auto".
5804
        (target_wide_charset_name): Likewise.
5805
        (show_target_charset_name): Handle "auto".
5806
        (show_target_wide_charset_name): Likewise.
5807
        (be_le_arch): New global.
5808
        (set_be_le_names): Add 'gdbarch' argument.
5809
        (validate): Likewise.  Don't call set_be_le_names.
5810
        (set_charset_sfunc, set_host_charset_sfunc)
5811
        (set_target_charset_sfunc, set_target_wide_charset_sfunc):
5812
        Update.
5813
        (target_charset): Add 'gdbarch' argument.
5814
        (target_wide_charset): Likewise.  Remove 'byte_order' argument.
5815
        (auto_target_charset_name): New global.
5816
        (default_auto_charset, default_auto_wide_charset): New functions.
5817
        (_initialize_charset): Set auto_target_charset_name.  Allow "auto"
5818
        for target charsets.  Copy result of nl_langinfo.  Use GetACP if
5819
        USE_WIN32API.
5820
        * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
5821
        remove 'byte_order' argument.  Update.
5822
        (classify_type): Likewise.
5823
        (c_emit_char): Update.
5824
        (c_printchar): Update.
5825
        (c_printstr): Update.
5826
        (c_get_string): Update.
5827
        (evaluate_subexp_c): Update.
5828
        * arch-utils.h (default_auto_charset, default_auto_wide_charset):
5829
        Declare.
5830
        * python/python.c (gdbpy_target_charset): New function.
5831
        (gdbpy_target_wide_charset): Likewise.
5832
        (GdbMethods): Update.
5833
        * NEWS: Update.
5834
 
5835
2010-03-05  Ulrich Weigand  
5836
 
5837
        * symfile.c (build_section_addr_info_from_objfile): Do not mask
5838
        off high address bits.
5839
 
5840
2010-03-05  Ulrich Weigand  
5841
 
5842
        * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
5843
        address as UnsignedLongLong, not LongLong.
5844
 
5845
2010-03-05  Kevin Buettner  
5846
            Pedro Alves  
5847
 
5848
        * remote-mips.c (gdbthread.h): Include.
5849
        (remote_mips_ptid): Declare.
5850
        (mips_error): Only mourn the inferior when inferior_ptid is non-null.
5851
        (common_open): Set inferior_ptid, add it as an inferior, and
5852
        as a thread too.  Delete FIXME comment regarding start_remote().
5853
        (mips_close): Invoke generic_mourn_inferior().
5854
        (mips_kill): Make sure that target_mourn_inferior is invoked.
5855
        (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
5856
        it's now invoked from mips_close().
5857
        (mips_load): Don't null out inferior_ptid.  Don't call
5858
        clear_symtab_users().
5859
        (mips_thread_alive, mips_pid_to_str): New functions.
5860
        (_initialize_remote_mips): Initialize remote_mips_ptid.  Initialize
5861
        to_thread_alive and to_pid_to_str operations.
5862
 
5863
2010-03-04  Tom Tromey  
5864
 
5865
        * dwarf2read.c (skip_one_die) : Use offset size
5866
        in DWARF 3 and later.
5867
        (read_attribute_value) : Likewise.
5868
 
5869
2010-03-04  Keith Seitz  
5870
 
5871
        * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
5872
        If the filename portion of the linespec was quoted, recheck the
5873
        remainder for additional quoting.
5874
        (locate_first_half): Skip over completer chars, too.
5875
 
5876
2010-03-04  Tom Tromey  
5877
 
5878
        * printcmd.c (printf_command): Pass dummy argument to
5879
        printf_filtered.
5880
 
5881
2010-03-04  Doug Evans  
5882
 
5883
        * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
5884
        unwound_fp.
5885
 
5886
        * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
5887
 
5888
2010-03-04  Pedro Alves  
5889
 
5890
        * breakpoint.c (update_watchpoint): Create a sentinel location if
5891
        the software watchpoint isn't watching any memory.
5892
        (breakpoint_address_bits): Skip dummy software watchpoint locations.
5893
 
5894
2010-03-04  Pedro Alves  
5895
 
5896
        * utils.c (fputs_maybe_filtered): Check if there's already a top
5897
        level interpreter before dereferencing it.  If there isn't one,
5898
        don't paginate either.
5899
 
5900
2010-03-04  Matthew Gretton-Dann  
5901
 
5902
        * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
5903
        the state right when single stepping.
5904
        (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
5905
        Get the next PC along with the instruction state.
5906
        (thumb_get_next_pc): Remove.
5907
        (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
5908
 
5909
2010-03-04  Hui Zhu  
5910
 
5911
        * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
5912
 
5913
2010-03-03  Pedro Alves  
5914
 
5915
        * utils.c (fputs_maybe_filtered): Always disable pagination if the
5916
        top level interpreter is MI.
5917
 
5918
2010-03-03 Stan Shebs  
5919
 
5920
        * remote.c (remote_download_tracepoint): Iterate over locations.
5921
        * tracepoint.c (validate_actionline): Ditto.
5922
        (encode_actions): Add location argument.
5923
        (trace_dump_command): Check all locations to see if stepping
5924
        frame.
5925
 
5926
2010-03-03  H.J. Lu  
5927
            Eli Zaretskii  
5928
 
5929
        * NEWS: Add X86 general purpose registers section.
5930
 
5931
2010-03-03  Tom Tromey  
5932
 
5933
        PR mi/11098:
5934
        * varobj.c (install_new_value): Handle case where new print_value
5935
        is NULL.
5936
 
5937
2010-03-03  Dainis Jonitis  
5938
 
5939
        PR gdb/11345:
5940
        * printcmd.c (printf_command): Print end of format string using
5941
        printf_filtered.
5942
 
5943
2010-03-02  Tom Tromey  
5944
 
5945
        * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
5946
        * defs.h (read_command_lines_1): Add missing 'void'.
5947
        * cli/cli-script.c (recurse_read_control_structure): Add missing
5948
        'void'.
5949
        (read_next_line): Likewise.
5950
        (read_command_lines_1): Likewise.
5951
 
5952
2010-03-02  Ulrich Weigand  
5953
 
5954
        * spu-tdep.c (spu_analyze_prologue): Track instruction to
5955
        store backchain as part of prologue.
5956
 
5957
2010-03-02  Daniel Jacobowitz  
5958
 
5959
        * progspace.c (update_address_spaces): Update inferior address spaces
5960
        also.
5961
 
5962
2010-03-02  Doug Evans  
5963
 
5964
        * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
5965
        lowpc,highpc args to addrmap_set_empty.
5966
 
5967
2010-03-02  H.J. Lu  
5968
 
5969
        * amd64-tdep.c (amd64_byte_names): New.
5970
        (amd64_word_names): Likewise.
5971
        (amd64_dword_names): Likewise.
5972
        (amd64_pseudo_register_name): Likewise.
5973
        (amd64_pseudo_register_read): Likewise.
5974
        (amd64_pseudo_register_write): Likewise.
5975
        (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
5976
        and num_mmx_regs.  Call set_gdbarch_pseudo_register_read,
5977
        set_gdbarch_pseudo_register_write and
5978
        set_tdesc_pseudo_register_name.  Don't call
5979
        set_gdbarch_num_pseudo_regs.  Don't set mm0_regnum.
5980
 
5981
        * i386-tdep.c (i386_num_mmx_regs): Removed.
5982
        (i386_num_pseudo_regs): Likewise.
5983
        (i386_byte_names): New.
5984
        (i386_word_names): Likewise.
5985
        (i386_byte_regnum_p): Likewise.
5986
        (i386_word_regnum_p): Likewise.
5987
        (i386_mmx_regnum_p): Updated.
5988
        (i386_pseudo_register_name): Make it global.  Handle byte and
5989
        word pseudo-registers.
5990
        (i386_pseudo_register_read): Likewise.
5991
        (i386_pseudo_register_write): Likewise.
5992
        (i386_pseudo_register_type): Handle byte, word and dword
5993
        pseudo-registers
5994
        (i386_register_reggroup_p): Don't include pseudo
5995
        registers, except for MXX, in any register groups.  Don't
5996
        include pseudo byte, word, dword registers in general_reggroup.
5997
        (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
5998
        num_dword_regs, al_regnum, ax_regnum and eax_regnum.  Put MMX
5999
        pseudo-registers after word pseudo-registers.  Call
6000
        set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
6001
 
6002
        * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
6003
        al_regnum, num_word_regs, ax_regnum, num_dword_regs and
6004
        eax_regnum.
6005
        (i386_byte_regnum_p): New.
6006
        (i386_word_regnum_p): Likewise.
6007
        (i386_dword_regnum_p): Likewise.
6008
        (i386_pseudo_register_name): Likewise.
6009
        (i386_pseudo_register_read): Likewise.
6010
        (i386_pseudo_register_write): Likewise.
6011
 
6012
2010-03-01  H.J. Lu  
6013
 
6014
        * target-descriptions.c (tdesc_type): Remove
6015
        TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6016
        (tdesc_predefined_types): Likewise.
6017
        (tdesc_gdb_type): Likewise.  Pass NULL to append_flags_type_flag
6018
        if flag name is empty.
6019
        (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
6020
 
6021
        * features/i386/32bit-core.xml: Define i386_eflags.
6022
        * features/i386/64bit-core.xml: Likewise.
6023
 
6024
        * features/i386/32bit-sse.xml: Define i386_mxcsr.
6025
        * features/i386/64bit-sse.xml: Likewise.
6026
 
6027
        * features/i386/amd64-linux.c: Regenerated.
6028
        * features/i386/amd64.c: Likewise.
6029
        * features/i386/i386-linux.c: Likewise.
6030
        * features/i386/i386.c: Likewise.
6031
 
6032
2010-03-01  Daniel Jacobowitz  
6033
 
6034
        * gdbtypes.c (append_composite_type_field_raw): New.
6035
        (append_composite_type_field_aligned): Use the new function.
6036
        * gdbtypes.h (append_composite_type_field_raw): Declare.
6037
        * target-descriptions.c (struct tdesc_type_field): Add start and end.
6038
        (struct tdesc_type_flag): New type.
6039
        (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
6040
        kind.  Add size to u.u.  Add u.f for flags.
6041
        (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
6042
        (tdesc_free_type): Likewise.
6043
        (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
6044
        (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
6045
        (tdesc_add_bitfield, tdesc_add_flag): New.
6046
        * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
6047
        (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
6048
        * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
6049
        current_type.  Add current_type_size and current_type_is_flags.
6050
        (tdesc_start_union): Clear the new fields.
6051
        (tdesc_start_struct, tdesc_start_flags): New.
6052
        (tdesc_start_field): Handle struct fields, including bitfields.
6053
        (field_attributes): Make type optional.  Add start and end.
6054
        (union_children): Rename to struct_union_children.
6055
        (union_attributes): Rename to struct_union_attributes.  Add optional
6056
        size.
6057
        (flags_attributes): New.
6058
        (feature_children): Add struct and flags.
6059
        * features/gdb-target.dtd: Add flags and struct to features.
6060
        Make field type optional.  Add field start and end.
6061
 
6062
2010-03-01  H.J. Lu  
6063
 
6064
        * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
6065
        (amd64_linux_read_description): Likewise.
6066
        (_initialize_amd64_linux_nat): Set to_read_description to
6067
        amd64_linux_read_description.
6068
 
6069
        * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
6070
        (amd64_linux_register_name): Removed.
6071
        (amd64_linux_register_type): Likewise.
6072
        (amd64_linux_core_read_description): New.
6073
        (amd64_linux_init_abi): Set target description to
6074
        tdesc_amd64_linux if needed.  Support orig_rax in target
6075
        description.  Don't call set_gdbarch_register_name nor
6076
        set_gdbarch_register_type.  Call
6077
        set_gdbarch_core_read_description.
6078
        (_initialize_amd64_linux_tdep): Call
6079
        initialize_tdesc_amd64_linux.
6080
 
6081
        * amd64-linux-tdep.h (tdesc_amd64_linux): New.
6082
 
6083
        * amd64-tdep.c:  Include "features/i386/amd64.c".
6084
        (amd64_register_names): Removed.
6085
        (amd64_register_name): Likewise.
6086
        (amd64_register_type): Likewise.
6087
        (amd64_init_abi):  Set num_core_regs and register_names.  Set
6088
        target description to tdesc_amd64 if needed.  Don't call
6089
        set_gdbarch_register_name nor set_gdbarch_register_type.
6090
        (_initialize_amd64_tdep): New.
6091
 
6092
        * i386-linux-nat.c (i386_linux_read_description): New.
6093
        (_initialize_i386_linux_nat): Set to_read_description to
6094
        i386_linux_read_description.
6095
 
6096
        * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
6097
        (i386_linux_register_name): Removed.
6098
        (i386_linux_core_read_description): New.
6099
        (i386_linux_read_description): Likewise.
6100
        (i386_linux_init_abi): Don't call set_gdbarch_register_name.
6101
        Set target description to tdesc_i386_linux if needed.  Support
6102
        orig_eax.  Set register_reggroup_p.  Call
6103
        set_gdbarch_core_read_description.
6104
        (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
6105
 
6106
        * i386-linux-tdep.h (tdesc_i386_linux): New.
6107
 
6108
        * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
6109
        with I387_NUM_REGS.
6110
 
6111
        * i386-tdep.c: Include "features/i386/i386.c".
6112
        (i386_register_names): Make it const.
6113
        (i386_mmx_names): Likewise.
6114
        (i386_num_register_names): Removed.
6115
        (i386_register_name): Likewise.
6116
        (i386_eflags_type): Likewise.
6117
        (i386_mxcsr_type): Likewise.
6118
        (i386_sse_type): Likewise.
6119
        (i386_register_type): Likewise.
6120
        (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
6121
        (i386_pseudo_register_name): New.
6122
        (i386_pseudo_register_type): Likewise.
6123
        (i386_mmx_type): Make it static.
6124
        (i386_gdbarch_init): Check arch.  Replace I386_NUM_FREGS with
6125
        I387_NUM_REGS.  Set num_core_regs and register_names.  Don't
6126
        call set_gdbarch_register_name nor set_gdbarch_register_type.
6127
        Set register_reggroup_p.  Set target description to tdesc_i386
6128
        if needed.  Call set_tdesc_pseudo_register_type,
6129
        set_tdesc_pseudo_register_name and tdesc_use_registers.
6130
        (_initialize_i386_tdep): Call initialize_tdesc_i386.
6131
        initialize_tdesc_x86_64.
6132
 
6133
        * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
6134
        i386_mxcsr_type and i386_sse_type.  Add num_core_regs,
6135
        register_names, tdesc and register_reggroup_p.
6136
        (I386_NUM_FREGS): Removed.
6137
        (i386_eflags_type): Likewise.
6138
        (i386_mxcsr_type): Likewise.
6139
        (i386_mmx_type): Likewise.
6140
        (i386_sse_type): Likewise.
6141
        (i386_register_name): Likewise.
6142
        (i386_regnum): Add I386_MXCSR_REGNUM.
6143
        (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
6144
 
6145
        * i387-tdep.h (I387_NUM_REGS): New.
6146
 
6147
        * regformats/i386/i386-linux.dat: Generated.
6148
        * regformats/i386/i386.dat: Likewise.
6149
        * regformats/i386/amd64-linux.dat: Likewise.
6150
        * regformats/i386/amd64.dat: Likewise.
6151
 
6152
        * regformats/reg-i386-linux.dat: Removed.
6153
        * regformats/reg-i386.dat: Likewise.
6154
        * regformats/reg-x86-64-linux.dat: Likewise.
6155
        * regformats/reg-x86-64.dat: Likewise.
6156
 
6157
2010-03-01  Corinna Vinschen  
6158
 
6159
        * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
6160
        cygwin_conv_path API rather than the deprecated
6161
        cygwin_conv_to_full_posix_path.
6162
        * windows-nat.c:
6163
        (GetModuleFileNameExA): Undefine for Cygwin.
6164
        (GetModuleFileNameExW): Define for Cygwin.
6165
        (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
6166
        Call GetModuleFileNameExW and convert path to POSIX using
6167
        cygwin_conv_path.
6168
        (windows_make_so): Always define p.  Drop unused variable m.
6169
        Don't use Win32 functions to check file existance, rather use
6170
        access on Cygwin.  Fetch system directory using GetSystemDirectoryW.
6171
        Use canonicalize_file_name to get full path.
6172
        (get_image_name): Use wcstombs, rather than WideCharToMultiByte
6173
        to convert Unicode pathname to multibyte on Cygwin.  Otherwise,
6174
        use correct target buffer size in call to WideCharToMultiByte.
6175
        (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
6176
        (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
6177
        (windows_create_inferior): Convert all paths and arguments to wchar_t
6178
        and use CreateProcessW on Cygwin.
6179
        (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
6180
        (bad_GetModuleFileNameExA): Undefine for Cygwin.
6181
        (bad_GetModuleFileNameExW): Define for Cygwin.
6182
        (_initialize_loadable): Load GetModuleFileNameExW into
6183
        dyn_GetModuleFileNameExW on Cygwin.  Don't load ANSI function on Cygwin.
6184
 
6185
2010-02-28  Phil Muldoon  
6186
 
6187
        PR python/11036
6188
        * python/py-frame.c (frapy_read_var): Add block argument and logic
6189
        to cope with user provided blocks.
6190
 
6191
2010-02-28  Jan Kratochvil  
6192
 
6193
        * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
6194
        New comment.
6195
 
6196
2010-02-28  Corinna Vinschen  
6197
 
6198
        * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
6199
        (COMMON_OBS): ... to here since it's used unconditionally.
6200
        (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
6201
        (SFILES): To here.
6202
 
6203
2010-02-26  David Daney  
6204
 
6205
        * mips-linux-tdep.c: Update struct sigframe comments.
6206
        (SIGFRAME_CODE_OFFSET): Delete macro.
6207
        (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
6208
        this_frame's sp.
6209
        (mips_linux_n32n64_sigframe_init): Same.
6210
 
6211
2010-02-26  Kevin Buettner  
6212
 
6213
        * remote-mips.c (mips_load): Don't use pseudo-register when
6214
        invalidating regcache.
6215
 
6216
2010-02-26  Daniel Jacobowitz  
6217
 
6218
        * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
6219
 
6220
2010-02-26  Pedro Alves  
6221
 
6222
        * NEWS: Add "New targets" section, and mention ARM Symbian
6223
        support.
6224
 
6225
2010-02-26  Ulrich Weigand  
6226
 
6227
        * dwarf2loc.c (struct piece_closure): Remove ARCH member,
6228
        add ADDR_SIZE member.
6229
        (allocate_piece_closure): Update.
6230
        (copy_pieced_value_closure): Likewise.
6231
        (dwarf2_evaluate_loc_desc): Likewise.
6232
        (read_pieced_value): Use DWARF address size instead of
6233
        GDB's gdbarch_addr_bit as size of values on the DWARF stack.
6234
 
6235
2010-02-26  Phil Muldoon  
6236
            Tom Tromey  
6237
 
6238
        * python/py-type.c (typy_lookup_typename): Add in block argument.
6239
        If provided restrict lookup to specified blocks.
6240
        (gdbpy_lookup_type): Likewise.
6241
        (typy_lookup_type): Likewise.
6242
 
6243
2010-02-25  Daniel Jacobowitz  
6244
 
6245
        Symbian config
6246
 
6247
        gdb/
6248
        * arm-symbian-tdep.c: New.
6249
        * configure.tgt (arm*-*-symbianelf*): New target.
6250
        (*-*-symbianelf*): New OS.
6251
        * osabi.c (gdb_osabi_names): Add Symbian.
6252
        * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
6253
        * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
6254
        (ALLDEPFILES): Add arm-symbian-tdep.c.
6255
 
6256
2010-02-25  Daniel Jacobowitz  
6257
 
6258
        * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
6259
 
6260
2010-02-24  Pedro Alves  
6261
 
6262
        * mi/mi-main.c (mi_cmd_execute): Fix typo.
6263
 
6264
2010-02-24  Phil Muldoon  
6265
            Tom Tromey  
6266
            Thiago Jung Bauermann  
6267
 
6268
        * python/python.c (_initialize_python): Call
6269
        gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
6270
        gdbpy_initialize_blocks.
6271
        * python/python-internal.h: Declare struct symbol, block and
6272
        symtab_and_line.  Declare block_object_type and
6273
        symbol_object_type
6274
        (gdbpy_lookup_symbol gdbpy_block_for_pc)
6275
        (symtab_and_line_to_sal_object, symtab_to_symtab_object)
6276
        (symbol_to_symbol_object,  block_to_block_object)
6277
        (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
6278
        (gdbpy_initialize_blocks ): Declare.
6279
        * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
6280
        (frapy_select): Add methods.
6281
        (frapy_read_var): Add symbol branch.
6282
        * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
6283
        py-block.
6284
        (SUBDIR_PYTHON_SRCS): Likewise.
6285
        (py-symbol.o): New rule.
6286
        (py-symtab.o): Likewise.
6287
        (py-block.o): Likewise.
6288
        * python/py-symbol.c: New file.
6289
        * python/py-symtab.c: Likewise.
6290
        * python/py-block.c: Likewise.
6291
 
6292
2010-02-24  Pedro Alves  
6293
 
6294
        PR gdb/11321
6295
 
6296
        * inferior.h (prepare_for_detach): Declare.
6297
        (struct inferior) : New field.
6298
        * infrun.c (prepare_for_detach): New.
6299
        (handle_inferior_event) : Don't stop if detaching.
6300
        * target.c (target_detach): Call prepare_for_detach.
6301
 
6302
2010-02-24  Pedro Alves  
6303
 
6304
        Per-process displaced stepping queue.
6305
 
6306
        * infrun.c (displaced_step_ptid, displaced_step_request_queue)
6307
        (displaced_step_gdbarch, displaced_step_closure,
6308
        (displaced_step_original, displaced_step_copy): Move globals to
6309
        this...
6310
        (struct displaced_step_inferior_state): ... new structure.
6311
        (displaced_step_inferior_states): New global.
6312
        (get_displaced_stepping_state, add_displaced_stepping_state)
6313
        (remove_displaced_stepping_state, infrun_inferior_exit): New
6314
        functions.
6315
        (displaced_step_clear): Add displaced_step_inferior_state
6316
        parameter, and adjust to handle it.
6317
        (displaced_step_clear_cleanup): Parameter is now a
6318
        displaced_step_inferior_state.  Adjust.
6319
        (displaced_step_prepare): Adjust.
6320
        (displaced_step_fixup, displaced_step_fixup)
6321
        (infrun_thread_ptid_changed, resume): Adjust.
6322
        (init_wait_for_inferior): Don't call displaced_step_clear.
6323
        (infrun_thread_stop_requested): Rewrite.
6324
        (_initialize_infrun): Install infrun_inferior_exit as
6325
        inferior_exit observer.
6326
 
6327
2010-02-24  Pedro Alves  
6328
 
6329
        * inferior.h (ptid_match): Declare.
6330
        * infrun.c (ptid_match): New.
6331
        * remote.c (queued_stop_reply): Rewrite and use ptid_match.
6332
        (handle_notification): Add debug output.
6333
        * linux-nat.c (ptid_match): Delete.
6334
 
6335
2010-02-24  David S. Miller  
6336
 
6337
        * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
6338
        * syscalls/sparc-linux.xml: New.
6339
        * syscalls/sparc64-linux.xml: New.
6340
        * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
6341
        * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
6342
        (sparc32_linux_get_syscall_number): New function.
6343
        (sparc32_linux_init_abi): Set syscall XML file name and hook up
6344
        syscall number fetcher.
6345
        * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
6346
        (sparc64_linux_get_syscall_number): New function.
6347
        (sparc64_linux_init_abi): Set syscall XML file name and hook up
6348
        syscall number fetcher.
6349
 
6350
2010-02-24  Vladimir Prus  
6351
 
6352
        Multiexec MI
6353
 
6354
        * breakpoint.c (clear_syscall_counts): Take struct inferior*.
6355
        * inferior.c (add_inferior_silent): Notify inferior_added
6356
        observer.
6357
        (delete_inferior_1): Notify inferior_removed observer.
6358
        (exit_inferior_1): Pass inferior, not pid, to observer.
6359
        (inferior_appeared): Likewise.
6360
        (add_inferior_with_spaces): New.
6361
        (add_inferior_command): Use the above.
6362
        * inferior.h (delete_inferior_1, add_inferior_with_spaces):
6363
        Declare.
6364
 
6365
        * inflow.c (inflow_inferior_exit): Likewise.
6366
        * jit.c (jit_inferior_exit_hook): Likewise.
6367
 
6368
        * mi/mi-cmds.c (mi_cmds): Register add-inferior and
6369
        remove-inferior.
6370
        * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
6371
        * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
6372
        (report_initial_inferior): New.
6373
        (mi_inferior_removed): Register the above. Make sure
6374
        inferior_added observer is called on the first inferior.
6375
        (mi_new_thread, mi_thread_exit): Thread group is now identified by
6376
        inferior number, not pid.
6377
        (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
6378
        affected.
6379
        * mi/mi-main.c (current_context): New.
6380
        (proceed_thread_callback): Use typed closure.
6381
        Proceed everything if pid is 0. Most implementation split into
6382
        (proceed_thread): ... this.
6383
        (run_one_inferior): New.
6384
        (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
6385
        Adjust for multiexec behaviour.
6386
        (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
6387
        (mi_cmd_execute): Handle the 'thread-group' option here.
6388
        Do some extra checks.
6389
        * mi-parse.c (mi_parse): Handle the --all and --thread-group
6390
        options.
6391
        * mi-parse.h (struct mi_parse): New fields all and thread_group.
6392
 
6393
2010-02-24  Vladimir Prus  
6394
 
6395
        Make -exec-run a proper MI commands.
6396
 
6397
        * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
6398
        * mi/mi-cmds.c (mi_cmds): Adjust.
6399
        * mi/mi-main.c (mi_cmd_exec_run): New.
6400
 
6401
2010-02-24  Pedro Alves  
6402
            Stan Shebs  
6403
 
6404
        * tracepoint.h (set_traceframe_number)
6405
        (cleanup_restore_current_traceframe): Declare.
6406
        * tracepoint.c (set_traceframe_number): New.
6407
        (struct current_traceframe_cleanup): New.
6408
        (do_restore_current_traceframe_cleanup)
6409
        (restore_current_traceframe_cleanup_dtor)
6410
        (make_cleanup_restore_current_traceframe): New.
6411
        * infrun.c: Include tracepoint.h.
6412
        (fetch_inferior_event): Switch out and in of tfind mode.
6413
 
6414
2010-02-24  Pedro Alves  
6415
 
6416
        * breakpoint.c (breakpoint_init_inferior): Also delete
6417
        bp_shlib_event breakpoints.
6418
        * solib-frv.c (enable_break): Remove call to
6419
        remove_solib_event_breakpoints.
6420
        * solib-svr4.c (enable_break): Ditto.
6421
        * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
6422
        * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
6423
        * solib-som.c (som_solib_create_inferior_hook): Ditto.
6424
        * solib-spu.c (spu_enable_break): Ditto.
6425
 
6426
2010-02-23  Harald Koenig  
6427
 
6428
        * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
6429
 
6430
2010-02-23  Harald Koenig  
6431
 
6432
        * varobj.c (varobj_update): Avoid non-constants in initializers.
6433
 
6434
2010-02-23  Tom Tromey  
6435
 
6436
        * dwarf2loc.c (read_pieced_value) : Correctly
6437
        handle big-endian values.
6438
        (dwarf2_evaluate_loc_desc) : Likewise.
6439
 
6440
2010-02-22  Pedro Alves  
6441
 
6442
        PR9605
6443
 
6444
        gdb/
6445
        * breakpoint.c (insert_bp_location): If inserting the read
6446
        watchpoint failed, fallback to an access watchpoint.
6447
        (bpstat_check_watchpoint): Stop for read watchpoint triggers even
6448
        if the value changed, if not watching the same memory for writes.
6449
        (watchpoint_locations_match): Add comment.
6450
        (update_global_location_list): Copy the location's watchpoint type.
6451
        * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
6452
        handle read watchpoints here.
6453
        (i386_insert_watchpoint): Read watchpoints aren't supported.
6454
        * remote.c (remote_insert_watchpoint): Return 1 for unsupported
6455
        packets.
6456
        * target.h (target_insert_watchpoint): Update description.
6457
 
6458
2010-02-19  Tom Tromey  
6459
 
6460
        * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
6461
        * m2-typeprint.c (m2_print_type): Update.
6462
        * gdbtypes.c (recursive_dump_type): Update.
6463
        (copy_type_recursive): Update.
6464
        * c-typeprint.c (c_type_print_varspec_prefix): Update.
6465
        (c_type_print_base): Update.
6466
        * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
6467
        Remove.
6468
        (struct cplus_struct_type) : Remove.
6469
        : Remove.
6470
        : Move earlier.
6471
        (TYPE_TEMPLATE_ARGS): Remove.
6472
        (TYPE_NTEMPLATE_ARGS): Remove.
6473
        (TYPE_TEMPLATE_ARG): Remove.
6474
 
6475
2010-02-19  Tom Tromey  
6476
 
6477
        PR c++/8693, PR c++/9496:
6478
        * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
6479
        * c-exp.y (lex_one_token): Rename from yylex.  Don't call
6480
        write_dollar_variable.  Don't try to classify NAME tokens.
6481
        (token_and_value): New type.
6482
        (token_fifo, popping, name_obstack): New globals.
6483
        (classify_name): New function.
6484
        (classify_inner_name): Likewise.
6485
        (yylex): Likewise.
6486
        (VARIABLE): Now has type sval.
6487
        (exp : VARIABLE): Call write_dollar_variable.
6488
        (qualified_name): Use TYPENAME, not typebase.  Add production for
6489
        multiple "::" instances.
6490
        (variable): Use name_not_typename.
6491
        (qualified_type): Remove.
6492
        (typebase): Update.
6493
 
6494
2010-02-19  Jan Kratochvil  
6495
 
6496
        * symfile.c (addr_info_make_relative): Extend comment.  Move SECT to
6497
        a more inner block.  Initialize ADDR by LOWER_OFFSET only if it was
6498
        found by bfd_get_section_by_name.
6499
        * symfile.h (struct section_addr_info) : New comment.
6500
 
6501
2010-02-19  Joel Brobecker  
6502
 
6503
        * NEWS: Add new "[...] since 7.1" section.  Rename the "[...] since
6504
        7.0 section" into "Changes in 7.1".
6505
 
6506
2010-02-19  Joel Brobecker  
6507
 
6508
        GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
6509
        * version.in: Bump version to 7.1.50.20100219-cvs.
6510
 
6511
2010-02-18  Harald Koenig  
6512
 
6513
        * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
6514
        * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
6515
 
6516
2010-02-17  Tom Tromey  
6517
 
6518
        * NEWS: Add Python API Improvements section.
6519
 
6520
2010-02-18  Daniel Jacobowitz  
6521
 
6522
        * NEWS: Correct typo.
6523
 
6524
2010-02-17  Tom Tromey  
6525
 
6526
        * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
6527
 
6528
2010-02-17  Jan Kratochvil  
6529
 
6530
        * symfile.c (build_section_addr_info_from_objfile): Include sections
6531
        only if they are SEC_ALLOC or SEC_LOAD.
6532
 
6533
2010-02-17  H.J. Lu  
6534
 
6535
        PR shlibs/11293
6536
        * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
6537
        of ULONGEST for address size.
6538
 
6539
2010-02-17  Tom Tromey  
6540
 
6541
        * NEWS: Add C++ improvements section.
6542
 
6543
2010-02-17  Ulrich Weigand  
6544
 
6545
        * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
6546
        PyThreadState_Swap): Avoid "statement with no effect" warning.
6547
 
6548
2010-02-17  Jan Kratochvil  
6549
 
6550
        * solib-svr4.c (enable_break ): New variable
6551
        addr_bit.  Adjust LOAD_ADDR sign for cross-arch inferiors.
6552
 
6553
2010-02-17  Tristan Gingold  
6554
            Petr Hluzin  
6555
 
6556
        * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
6557
        gdb_assert.  Fix info->size for SIG prologue.
6558
 
6559
2010-02-16  Daniel Jacobowitz  
6560
 
6561
        * infcmd.c (show_inferior_tty_command): Check for NULL.
6562
        Correct output message.
6563
 
6564
2010-02-16  Daniel Jacobowitz  
6565
 
6566
        * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
6567
        FUNCTION contains parentheses.  Improve removal of a trailing
6568
        single quote.
6569
 
6570
2010-02-16  Daniel Jacobowitz  
6571
 
6572
        * gcore.c (do_bfd_delete_cleanup): New function.
6573
        (gcore_command): Use it.  Discard the cleanup after success.
6574
        (gcore_copy_callback): Delete dead code.
6575
 
6576
2010-02-16  Daniel Jacobowitz  
6577
 
6578
        * symfile.c (addr_info_make_relative): Always use
6579
        find_lowest_section.
6580
 
6581
2010-02-16  Sami Wagiaalla 
6582
 
6583
        * NEWS: Added entry for namespace fixes.
6584
 
6585
2010-02-15  Tom Tromey  
6586
 
6587
        * dwarf2read.c (guess_structure_name): Allocate name on the
6588
        objfile obstack.
6589
 
6590
2010-02-15  Tom Tromey  
6591
 
6592
        * c-typeprint.c (c_type_print_base): Reverse order of test.
6593
 
6594
2010-02-15  Jan Kratochvil  
6595
 
6596
        * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize.  Optionally
6597
        initialize it from ELF BFD.  Extend the prelink condition by it.
6598
 
6599
2010-02-15  Jan Kratochvil  
6600
 
6601
        * defs.h (parse_pid_to_attach): New.
6602
        * utils.c (parse_pid_to_attach): New.
6603
        * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
6604
        * gnu-nat.c (gnu_attach): Likewise.
6605
        * nto-procfs.c (procfs_attach): Likewise.
6606
        * procfs.c (procfs_attach): Likewise.
6607
        * windows-nat.c (windows_attach): Likewise.
6608
        * inf-ptrace.c (inf_ptrace_attach): Likewise.  Remove variable dummy.
6609
        * inf-ttrace.c (inf_ttrace_attach): Likewise.
6610
        * remote.c (extended_remote_attach_1): Likewise.  New comment on getpid
6611
        check.
6612
 
6613
2010-02-14  Masaki Muranaka  
6614
 
6615
        * MAINTAINERS: Add myself for write after approval privileges.
6616
 
6617
2010-02-13  Jan Kratochvil  
6618
 
6619
        * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
6620
        block.
6621
 
6622
2010-02-13  Jan Kratochvil  
6623
 
6624
        * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
6625
        only if INFO_VERBOSE.
6626
 
6627
2010-02-12  Tomas Holmberg 
6628
 
6629
        * mi/mi-main.c: Added the --reverse flag to the following MI
6630
        commands: exec-continue, exec-finish, exec-next, exec-step,
6631
        exec-next-instruction, exec-step-instruction. This is to
6632
        support reverse execution over the MI interface to gdb.
6633
 
6634
2010-02-12  Pedro Alves  
6635
 
6636
        * tracepoint.c (_initialize_tracepoint): Specify that the address
6637
        range of `tfind outsize' is exclusive, and that the address range
6638
        of `tfind range' is inclusive, in the commands' help strings.
6639
 
6640
2010-02-12  Joel Brobecker  
6641
 
6642
        Spurious "dll not found" error messages on x64-windows.
6643
        * windows-nat.c: Add include of complaints.h.
6644
        (handle_unload_dll): Change dll-not-found error into a complaint.
6645
 
6646
2010-02-12  Pedro Alves  
6647
 
6648
        * breakpoint.c (allocate_bp_location): Use bp_loc_other for
6649
        bp_tracepoint and bp_fast_tracepoint, not
6650
        bp_loc_software_breakpoint.
6651
        (update_global_location_list): Tracepoints are never duplicates of
6652
        anything.
6653
 
6654
2010-02-12  Pedro Alves  
6655
 
6656
        * breakpoint.c (break_command_really): Change return type to int.
6657
        Return false if no breakpoint was created, true otherwise.
6658
        (trace_command): Don't set the tracepoint count if no tracepoint
6659
        was created.
6660
        (ftrace_command): Ditto.
6661
        (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
6662
        created in the breakpoints table.
6663
 
6664
2010-02-11  Jan Kratochvil  
6665
            Ulrich Weigand  
6666
 
6667
        * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
6668
 
6669
2010-02-11  Pedro Alves  
6670
 
6671
        * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
6672
        the offset value isn't of integral type.
6673
 
6674
2010-02-11  Jan Kratochvil  
6675
 
6676
        * breakpoint.c (delete_breakpoint) related_breakpoint != NULL>:
6677
        New.
6678
 
6679
2010-02-11  Pedro Alves  
6680
 
6681
        * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
6682
        non-subscriptable types.
6683
        * valarith.c (binop_types_user_defined_p): New, abstracted out
6684
        from ...
6685
        (binop_user_defined_p): ... this.
6686
        * value.h (binop_types_user_defined_p): Declare.
6687
 
6688
2010-02-11  Pedro Alves  
6689
 
6690
        * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
6691
        Merge uploaded TSVs before merging uploaded tracepoints.
6692
 
6693
2010-02-11  Pedro Alves  
6694
 
6695
        * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
6696
 
6697
2010-02-11  Vladimir Prus  
6698
 
6699
        * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
6700
        whitespace character after a dot in comment.
6701
        (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
6702
        Likewise.
6703
        (list_args_or_locals): For the 'all' (that is
6704
        -stack-list-variables) case, always output list of tuples.
6705
        Output 'arg' field if variable is argument.
6706
 
6707
2010-02-10  Tom Tromey  
6708
 
6709
        * parser-defs.h (parser_debug): Declare.
6710
        * parse.c (_initialize_parse): Install "debug parser" set/show
6711
        command.
6712
        (parser_debug): New global.
6713
        (show_parserdebug): New function.
6714
        * c-exp.y (c_parse): Set yydebug.
6715
 
6716
2010-02-10  H.J. Lu  
6717
 
6718
        * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
6719
        TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6720
        (tdesc_predefined_types): Add i387_ext, i386_eflags and
6721
        i386_mxcsr.
6722
        (tdesc_find_type): New.
6723
        (tdesc_gdb_type): Use tdesc_find_type.  Handle TDESC_TYPE_I387_EXT,
6724
        TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6725
 
6726
        * target-descriptions.h (tdesc_find_type): New.
6727
 
6728
2010-02-10  Michael Snyder  
6729
 
6730
        * gdb-gdb.py: Comment fix.
6731
 
6732
2010-02-09  Tristan Gingold  
6733
 
6734
        * machoread.c (macho_symfile_relocate): New function.
6735
        (macho_sym_fns): Use macho_symfile_relocate instead of
6736
        default_symfile_relocate.
6737
        (macho_oso_data): New type.
6738
        (current_oso): New variable.
6739
        (macho_add_oso_symfile): Do not compute section_addr_info, but
6740
        instead set vma of sections.
6741
        Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
6742
        Set and clear current_oso.
6743
 
6744
2010-02-09  Joel Brobecker  
6745
 
6746
        Wrong type description for tagged type parameter.
6747
        * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
6748
        EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
6749
        reference to a tagged type.
6750
 
6751
2010-02-09  Tristan Gingold  
6752
 
6753
        * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
6754
        brothers of the parent.
6755
 
6756
2010-02-08  Tom Tromey  
6757
 
6758
        PR c++/8017:
6759
        * value.h: Update.
6760
        * valops.c (search_struct_field): Make 'name' const.
6761
        (search_struct_method): Likewise.
6762
        (find_method_list): Make 'method' const.
6763
        (value_struct_elt): Make 'name' and 'err' const.
6764
        (value_find_oload_method_list): Make 'method' const.
6765
        (find_overload_match): Make 'name' const.
6766
        * eval.c (evaluate_subexp_standard): New locals function,
6767
        function_name.
6768
        : Handle OP_SCOPE specially.
6769
 
6770
2010-02-08  Ulrich Weigand  
6771
 
6772
        * infrun.c (handle_inferior_event): Do not look up regcache
6773
        for exited processes.
6774
 
6775
2010-02-08  Chris Moller  
6776
 
6777
        PR gdb/10728
6778
        * valarith.c (value_ptrdiff): Added a test for a zero type length,
6779
        warn if found, and assume length = 1.
6780
 
6781
2010-02-08  Chris Moller  
6782
 
6783
        PR gdb/9067
6784
        * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6785
        (cp_print_static_field)  Fix use of obstacks.
6786
 
6787
2010-02-08  Pedro Alves  
6788
 
6789
        * linux-nat.c (linux_nat_resume): In non-stop, also only tag
6790
        resumed LWPs as resumed.
6791
        (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
6792
        we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
6793
        of throwing an internal error.  If an LWP of a process we're not
6794
        waiting for reports a signal, don't force collecting a SIGSTOP,
6795
        and if it was breakpoint hit in non-stop mode, cancel it.  Don't
6796
        go through all LWPs cancelling breakpoints in non-stop mode.
6797
        (resume_stopped_resumed_lwps): New.
6798
        (linux_nat_wait): Use it.
6799
 
6800
2010-02-07  H.J. Lu  
6801
 
6802
        * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
6803
        i386/amd64 and i386/amd64-linux.
6804
        (i386/i386-expedite): New.
6805
        (i386/i386-linux-expedite): Likewise.
6806
        (i386/amd64-expedite):Likewise.
6807
        (i386/amd64-linux-expedite): Likewise.
6808
        ($(outdir)/i386/i386-linux.dat): Likewise.
6809
        ($(outdir)/i386/amd64.dat): Likewise.
6810
        ($(outdir)/i386/amd64-linux.dat): Likewise.
6811
 
6812
        * features/i386/32bit-core.xml: New.
6813
        * features/i386/32bit-linux.xml: Likewise.
6814
        * features/i386/32bit-sse.xml: Likewise.
6815
        * features/i386/64bit-core.xml: Likewise.
6816
        * features/i386/64bit-linux.xml: Likewise.
6817
        * features/i386/64bit-sse.xml: Likewise.
6818
        * features/i386/i386-linux.xml: Likewise.
6819
        * features/i386/i386.xml: Likewise.
6820
        * features/i386/amd64-linux.xml: Likewise.
6821
        * features/i386/amd64.xml: Likewise.
6822
        * features/i386/i386-linux.c: Likewise.
6823
        * features/i386/i386.c: Likewise.
6824
        * features/i386/amd64-linux.c: Likewise.
6825
        * features/i386/amd64.c: Likewise.
6826
 
6827
2010-02-05  Sami Wagiaalla  
6828
 
6829
        PR c++/7935:
6830
        * cp-support.h: Added char* alias element to using_direct data
6831
        struct.
6832
        (cp_add_using): Added char* alias argument.
6833
        (cp_add_using_directive): Ditto.
6834
        * cp-namespace.c: Updated with the above changes.
6835
        (cp_lookup_symbol_imports): Check for aliases.
6836
        * dwarf2read.c (read_import_statement): Figure out local alias
6837
        for the import and pass it on to cp_add_using.
6838
        (read_namespace): Pass alias argument to cp_add_using.
6839
 
6840
2010-02-05  Hui Zhu  
6841
 
6842
        * defs.h (gdb_bfd_errmsg): New extern.
6843
        * exec.c (exec_file_attach): Change bfd_errmsg to
6844
        gdb_bfd_errmsg.
6845
        * utils.c (AMBIGUOUS_MESS1): New macro.
6846
        (AMBIGUOUS_MESS2): New macro.
6847
        (gdb_bfd_errmsg): New function.
6848
 
6849
2010-02-04  Doug Evans  
6850
 
6851
        * solib-svr4.c (enable_break): Add comment.
6852
 
6853
2010-02-04  Anthony Green  
6854
 
6855
        * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
6856
        gracefully.
6857
 
6858
2010-02-04  Tom Tromey  
6859
 
6860
        * valops.c (search_struct_field): Account for
6861
        value_embedded_offset.  Fix check for virtual base past the end of
6862
        the object.  Use value_copy when making a slice of the value.
6863
 
6864
2010-02-04  H.J. Lu  
6865
 
6866
        PR tui/9622
6867
        * tui/tui-interp.c (tui_init): Call tui_initialize_readline
6868
        only if gdb_stdout is a tty.
6869
 
6870
2010-02-04  H.J. Lu  
6871
 
6872
        * target-descriptions.c: Include "osabi.h".
6873
        (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
6874
        OSABI.
6875
 
6876
2010-02-04  Tristan Gingold  
6877
 
6878
        * machoread.c (macho_add_oso): Renamed to macho_register_oso.
6879
        (macho_symtab_read): Adjust calls to macho_add_oso.
6880
        (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
6881
        (macho_symfile_read): Adjust call to macho_oso_symfile.
6882
        (macho_new_init): Move this function after declarations.
6883
        (macho_symfile_init): Ditto.
6884
        * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
6885
        * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
6886
 
6887
2010-02-04  Vladimir Prus  
6888
 
6889
        Include MI command in remotelog.
6890
 
6891
        * mi/mi-main.c (mi_execute_command): Call target_log_command.
6892
 
6893
2010-02-03  H.J. Lu  
6894
 
6895
        * remote.c (remote_state): Remove gdbarch.
6896
        (init_remote_state): Don't set gdbarch.
6897
        (remote_query_supported): Pass target_gdbarch instead of
6898
        rs->gdbarch to gdbarch_qsupported.
6899
 
6900
2010-02-03  H.J. Lu  
6901
 
6902
        * gdbarch.sh: Add qsupported.
6903
 
6904
        * gdbarch.c: Regenerated.
6905
        * gdbarch.h: Likewise.
6906
 
6907
        * remote.c (remote_state): Add gdbarch.
6908
        (init_remote_state): Set gdbarch.
6909
        (remote_query_supported): Support gdbarch_qsupported.
6910
 
6911
2010-02-03  Daniel Jacobowitz  
6912
 
6913
        * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
6914
        __FreeBSD_kernel_version.
6915
 
6916
2010-02-03  Tristan Gingold  
6917
 
6918
        * symfile.h (struct sym_fns): Add sym_relocate field.
6919
        (default_symfile_relocate): New prototype.
6920
        (symfile_relocate_debug_section): First argument is now an objfile.
6921
        * symfile.c (default_symfile_relocate): Rename from
6922
        symfile_relocate_debug_section, first argument is now an objfile.
6923
        (symfile_relocate_debug_section): New function.
6924
        * coffread.c (coff_sym_fns): Set sym_relocate field.
6925
        * somread.c (som_sym_fns): Ditto.
6926
        * mipsread.c (ecoff_sym_fns): Ditto.
6927
        * machoread.c (macho_sym_fns): Ditto.
6928
        * elfread.c (elf_sym_fns): Ditto.
6929
        * dwarf2read.c (dwarf2_read_section): Ditto.
6930
        * xcoffread.c (xcoff_sym_fns): Ditto.
6931
        * dbxread.c (aout_sym_fns): Ditto.
6932
        (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
6933
        (elfstab_build_psymtabs): Ditto.
6934
 
6935
2010-02-03  H.J. Lu  
6936
 
6937
        * defs.h (MAX_REGISTER_SIZE): Increase to 32.
6938
 
6939
2010-02-02  Tom Tromey  
6940
 
6941
        * valops.c (value_cast_structs): Try downcasting using the RTTI
6942
        type.
6943
 
6944
2010-02-02  Tom Tromey  
6945
 
6946
        * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
6947
        (gnuv2_baseclass_offset): Now static.
6948
        * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
6949
        * gnu-v2-abi.h: Remove.
6950
 
6951
2010-02-02  Tom Tromey  
6952
 
6953
        * m2-typeprint.c (m2_record_fields): Don't use
6954
        TYPE_DECLARED_TYPE.
6955
        * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
6956
        (struct main_type) : New field.
6957
        (struct cplus_struct_type) : Remove.
6958
        : Move earlier.
6959
        (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
6960
        (DECLARED_TYPE_TEMPLATE): Remove.
6961
        (TYPE_DECLARED_TYPE): Remove.
6962
        * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
6963
        * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
6964
        * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
6965
        TYPE_DECLARED_TYPE.
6966
 
6967
2010-02-02  Tom Tromey  
6968
 
6969
        PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
6970
        * valops.c (search_struct_field): Compute nbases after calling
6971
        CHECK_TYPEDEF.
6972
        (check_field): Call CHECK_TYPEDEF.
6973
        * cp-valprint.c (cp_print_value): Pass correct address to
6974
        baseclass_offset.  Fix check for virtual base past the end of the
6975
        object.  Don't offset address passed to cp_print_value_fields or
6976
        apply_val_pretty_printer.
6977
        (cp_print_value_fields): Fix call to val_print.
6978
        (cp_print_value_fields_rtti): New function.
6979
        * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
6980
        * p-valprint.c (pascal_object_print_value_fields): Fix call to
6981
        val_print.
6982
        * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
6983
        offset to address.
6984
        * language.h (struct language_defn) : Document.
6985
        * c-lang.h (cp_print_value_fields_rtti): Declare.
6986
 
6987
2010-02-01  Jan Kratochvil  
6988
 
6989
        PR libc/11214:
6990
        * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6991
        (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
6992
        (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6993
 
6994
2010-02-01  Michael Matz  
6995
            Daniel Jacobowitz  
6996
 
6997
        * i386-tdep.c (i386_frame_cache): Assume valid anonymous
6998
        functions use a frame pointer.
6999
 
7000
2010-02-01  Jan Kratochvil  
7001
 
7002
        * solib-svr4.c (scan_dyntag): New variable dyn_addr.  Replace gdb_assert
7003
        by a conditional setting DYN_ADDR.  Use DYN_ADDR.
7004
        * config/djgpp/fnchange.lst: Add translations for
7005
        symbol-without-target_section.exp and symbol-without-target_section.c.
7006
 
7007
2010-02-01  Daniel Jacobowitz  
7008
 
7009
        * gdbarch.sh: Set LANG and LC_ALL to C, not c.
7010
        (remote_breakpoint_for_pc): Correct invalid_p check.
7011
        * gdbarch.c: Regenerated.
7012
 
7013
2010-02-01  Daniel Jacobowitz  
7014
 
7015
        * arm-tdep.c (arm_find_mapping_symbol): New function, from
7016
        arm_pc_is_thumb.
7017
        (arm_pc_is_thumb): Use arm_find_mapping_symbol.
7018
        (extend_buffer_earlier): New function.
7019
        (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
7020
        (arm_adjust_breakpoint_address): New function.
7021
        (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
7022
 
7023
2010-02-01  Daniel Jacobowitz  
7024
 
7025
        * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
7026
        (arm_linux_thumb2_le_breakpoint): New constants.
7027
        (arm_linux_init_abi): Set thumb2_breakpoint and
7028
        thumb2_breakpoint_size.
7029
        * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
7030
        (thumb_get_next_pc): Add a comment.  Rename IT to ITSTATE.
7031
        Implement support for single stepping through IT blocks if
7032
        a 32-bit Thumb breakpoint instruction is available.
7033
        (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
7034
        is available, use it when needed.
7035
        (arm_remote_breakpoint_from_pc): New function.
7036
        (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
7037
        * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
7038
        comment.  Add thumb2_breakpoint and thumb2_breakpoint_size.
7039
 
7040
2010-02-01  Daniel Jacobowitz  
7041
 
7042
        * arch-utils.c (default_remote_breakpoint_from_pc): New function.
7043
        * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
7044
        * gdbarch.c, gdbarch.h: Regenerated.
7045
        * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
7046
        * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
7047
        gdbarch_remote_breakpoint_from_pc.
7048
 
7049
2010-01-29  Daniel Jacobowitz  
7050
 
7051
        * infrun.c (prepare_to_proceed): Handle other signals which might
7052
        match a breakpoint.
7053
        (handle_inferior_event): Move the check for unusual breakpoint
7054
        signals earlier.
7055
 
7056
2010-01-29  Paul Hilfinger  
7057
 
7058
        amd64 - function returning record with field straddling 2 registers.
7059
        * amd64-tdep.c (amd_classify_aggregate): Handle the case of
7060
        a record of length <= 16 in which a field straddles the two
7061
        eightbytes.
7062
 
7063
2010-01-29  Joel Brobecker  
7064
 
7065
        Implement return values on amd64-windows.
7066
        * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
7067
        (amd64_windows_return_value): New function.
7068
        (amd64_windows_init_abi): Call set_gdbarch_return_value with
7069
        amd64_windows_return_value.
7070
 
7071
2010-01-29  Joel Brobecker  
7072
 
7073
        amd64-windows: 32 bytes allocated on stack by caller for integer
7074
        parameter registers.
7075
        * i386-tdep.h (struct gdbarch_tdep): Add new field
7076
        integer_param_regs_saved_in_caller_frame.
7077
        * amd64-windows-tdep.c (amd64_windows_init_abi): Set
7078
        tdep->integer_param_regs_saved_in_caller_frame to 1.
7079
        * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
7080
        stack if tdep->integer_param_regs_saved_in_caller_frame is set.
7081
 
7082
2010-01-29  Joel Brobecker  
7083
 
7084
        amd64-windows: memory args passed by pointer during function calls.
7085
        * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
7086
        * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
7087
        where tdep->memory_args_by_pointer is non-zero.
7088
        * amd64-windows-tdep.c (amd64_windows_init_abi): Set
7089
        tdep->memory_args_by_pointer to 1.
7090
 
7091
2010-01-29  Joel Brobecker  
7092
 
7093
        amd64-windows: Integer parameters in function calls.
7094
        * i386-tdep.h (enum amd64_reg_class): New, moved here from
7095
        amd64-tdep.c.
7096
        (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
7097
        call_dummy_integer_regs, and classify.
7098
        * amd64-tdep.h (amd64_classify): Add declaration.
7099
        * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
7100
        (amd64_reg_class): Delete, moved to i386-tdep.h.
7101
        (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
7102
        Replace call to amd64_classify by call to tdep->classify.
7103
        (amd64_push_arguments): Get the list of registers to use for
7104
        passing integer parameters from the gdbarch tdep structure,
7105
        rather than using a hardcoded one.  Replace calls to amd64_classify
7106
        by calls to tdep->classify.
7107
        (amd64_push_dummy_call): Get the register number used for
7108
        the "hidden" argument from tdep->call_dummy_integer_regs.
7109
        (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
7110
        and tdep->call_dummy_integer_regs.  Set tdep->classify.
7111
        * amd64-windows-tdep.c: Add include of gdbtypes.h.
7112
        (amd64_windows_dummy_call_integer_regs): New static global.
7113
        (amd64_windows_classify): New function.
7114
        (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
7115
        tdep->call_dummy_integer_regs and tdep->classify.
7116
 
7117
2010-01-28  Daniel Jacobowitz  
7118
 
7119
        * regcache.c (regcache_xmalloc): Add aspace argument.  Use it
7120
        for the new regcache.  All callers updated.
7121
        (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
7122
        (get_thread_arch_regcache): Do not set aspace here.
7123
        * regcache.h (regcache_xmalloc): Update declaration.
7124
 
7125
        * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
7126
        regcache_xmalloc updated.
7127
 
7128
2010-01-28  Joel Brobecker  
7129
 
7130
        Another -Wunused-function error in procfs.c (sparc-solaris)
7131
        * procfs.c (insert_dbx_link_breakpoint): Delete declaration.  Move up.
7132
        Only define if SYS_syssgi is defined.
7133
        (remove_dbx_link_breakpoint): Delete declaration.  Move up.
7134
        (dbx_link_addr, insert_dbx_link_bpt_in_file)
7135
        (insert_dbx_link_bpt_in_region): Move up.  Only define if SYS_syssgi
7136
        is itself defined.
7137
 
7138
2010-01-27  Christopher Faylor  
7139
 
7140
        * windows-nat.c (windows_initialization_done): New variable.
7141
        (get_windows_debug_event): Issue error when process dies before
7142
        completely initializing.
7143
        (do_initial_windows_stuff): Set flag to indicate when we are done with
7144
        the initial steps of attaching to the child.
7145
 
7146
2010-01-27  Jan Kratochvil  
7147
 
7148
        * symtab.h (struct symbol ): New comment on NULL values.
7149
 
7150
2010-01-27  Doug Evans  
7151
 
7152
        * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
7153
 
7154
        * breakpoint.c (bpstat_stop_status): Delete useless code.
7155
 
7156
2010-01-27  Jan Kratochvil  
7157
 
7158
        * printcmd.c (display_uses_solib_p): Remove variable section.  Access
7159
        objfile via SYMBOL_SYMTAB.
7160
 
7161
2010-01-26  Tom Tromey  
7162
 
7163
        PR exp/7643:
7164
        * eval.c (evaluate_subexp_for_address) : Call
7165
        coerce_array on result.
7166
 
7167
2010-01-26  Sami Wagiaalla  
7168
 
7169
        * cp-namespace.c (cp_lookup_symbol_namespace): Added
7170
        search_parent argument.
7171
        (cp_add_using): Initialize 'searched' field.
7172
        (reset_directive_searched): New function.
7173
        * cp-support.h: Add 'searched' field to using_direct struct.
7174
        (cp_lookup_symbol_imports): Ditto.
7175
        * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
7176
        Perform recursive search.
7177
        Implement non parent search.
7178
        * valops.c (value_maybe_namespace_elt): Updated.
7179
 
7180
2010-01-26  Sami Wagiaalla  
7181
 
7182
        PR gdb/10929:
7183
        * dwarf2read.c (read_lexical_block_scope): Create blocks for
7184
        scopes which contain using directives even if they contain no
7185
        declarations.
7186
        * symtab.c (lookup_symbol_aux): Pass lowest level block to
7187
        la_lookup_symbol_nonlocal.
7188
        * cp-namespace.c (cp_lookup_symbol_nonlocal): call
7189
        cp_lookup_symbol_namespace.
7190
        (cp_lookup_symbol_namespace): Perform an import lookup at every
7191
        block level.
7192
        (cp_lookup_symbol_imports): New function.
7193
        (cp_lookup_symbol_in_namespace): New function.
7194
 
7195
2010-01-25  Tom Tromey  
7196
 
7197
        PR gdb/11049:
7198
        * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
7199
        result.
7200
 
7201
2010-01-25  Rainer Orth  
7202
 
7203
        * configure.ac: Only use host_os part when disabling TUI on osf.
7204
        Use test to check variables, prefix strings with x.
7205
        * configure: Regenerate.
7206
 
7207
        * solib-osf.c (osf_current_sos): Initialize tail.
7208
 
7209
2010-01-25  gingold  
7210
 
7211
        * windows-nat.c (windows_continue): Use %x to print thread id.
7212
        (get_windows_debug_event): Ditto.
7213
 
7214
2010-01-22  Tom Tromey  
7215
 
7216
        PR symtab/11199:
7217
        * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
7218
        type and arguments.  Use smash_to_methodptr_type.
7219
        (read_structure_type): Call quirk_gcc_member_function_pointer
7220
        later.
7221
        * gdbtypes.h (smash_to_methodptr_type): Declare.
7222
        * gdbtypes.c (smash_to_methodptr_type): New function.
7223
        (lookup_methodptr_type): Use it.
7224
 
7225
2010-01-21  Tom Tromey  
7226
 
7227
        PR symtab/11198:
7228
        * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
7229
        * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
7230
        * glibc-tdep.c (find_minsym_and_objfile): Remove.
7231
        (glibc_skip_solib_resolver): Use
7232
        lookup_minimal_symbol_and_objfile.
7233
 
7234
2010-01-21  Kai Tietz  
7235
 
7236
        * inflow.c (check_syscall): Guard by #if clause for GO32 and
7237
        WIN32 targets.
7238
 
7239
2010-01-20  Tom Tromey  
7240
 
7241
        PR backtrace/10770:
7242
        * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
7243
        BINOP_GEQ.  Handle BINOP_NOTEQUAL in the signed case.
7244
        * dwarf2expr.c (new_dwarf_expr_context): Allocate
7245
        dwarf_stack_values, not CORE_ADDRs.
7246
        (execute_stack_op): Change DW_OP_div and comparison operators to
7247
        use signed operands.
7248
 
7249
2010-01-20  Vladimir Prus  
7250
 
7251
        Per-inferior args and tty and environment.
7252
 
7253
        * infcmd.c (inferior_args): Rename to ...
7254
        (inferior_args_scratch): ... this.
7255
        (inferior_io_terminal): Rename to ...
7256
        (inferior_io_terminal_scratch): ... this.
7257
        (inferior_argc, inferior_argv): Remove.
7258
        (set_inferior_io_terminal, get_inferior_io_terminal): Store
7259
        inside current_inferior().
7260
        (set_inferior_tty_command, show_inferior_tty_command): New.
7261
        (get_inferior_args, set_inferior_args): Store inside
7262
        current_inferior().
7263
        (notice_args_set): Likewise and rename to...
7264
        (set_args_command): ... this.
7265
        (set_inferior_args_vector): Likewise.
7266
        (notice_args_read): Rename to...
7267
        (show_args_command): ...new.
7268
        (tty_command): Remove.
7269
        (run_command_1): Don't free old args, as they are freed by
7270
        set_inferior_arg now.
7271
        (run_no_args_command): Likewise.
7272
        (inferior_environ): Remove.
7273
        (run_command_1): Use environment of the current inferior.
7274
        (environment_info, set_environment_command)
7275
        (unset_environment_command, path_info, path_command): Likewise.
7276
        (_initialize_infcmd): Adjust for function and variable renames.
7277
        Do not init inferior_environ.
7278
        * inferior.h (set_inferior_arg): Adjust prototype.
7279
        (struct inferior): New fields args, argc, argv, terminal, environment.
7280
        (inferior_environ): Remove declaration.
7281
        * inferior.c (free_inferior): Free new fields.
7282
        (add_inferior_silent): Initialize 'environment' field.
7283
        * main.c (captured_main): Set arguments only after the initial
7284
        inferior has been created.  Set set_inferior_io_terminal,
7285
        not tty_command.
7286
        * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
7287
        inferior.
7288
        (_initialize_mi_cmd_env): Adjust for disappearance of global
7289
        inferior_environ.
7290
        * solib.c (solib_find): Use environment of the current inferior.
7291
 
7292
2010-01-20  Jan Kratochvil  
7293
 
7294
        * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
7295
        HAVE_PYTHON.
7296
        (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
7297
 
7298
2010-01-20  Joel Brobecker  
7299
 
7300
        Get rid of ada-lang.c:function_name_from_pc.
7301
        * ada-lang.c: Add "stack.h" #include.
7302
        (function_name_from_pc): Delete.
7303
        (is_known_support_routine): Replace call to function_name_from_pc
7304
        by call to find_frame_funname.
7305
        (ada_unhandled_exception_name_addr_from_raise): Likewise.
7306
 
7307
2010-01-19  Tom Tromey  
7308
 
7309
        PR c++/11026:
7310
        * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
7311
        objfile obstack.
7312
 
7313
2010-01-19  Tom Tromey  
7314
 
7315
        * top.c (stop_sig, float_handler, do_nothing): Remove.
7316
 
7317
2010-01-19  Jan Kratochvil  
7318
 
7319
        * breakpoint.c (watchpoint_check): Check the call
7320
        gdbarch_in_function_epilogue_p before calling frame_find_by_id.
7321
        Extend the comment.
7322
        * config/djgpp/fnchange.lst: Add translations for
7323
        watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
7324
        watchpoint-cond-gone-stripped.c.
7325
 
7326
2010-01-19  Tom Tromey  
7327
 
7328
        PR c++/8000:
7329
        * dwarf2read.c (partial_die_parent_scope): Put enumeration type
7330
        into parent scope, and enumerator into grandparent scope.
7331
 
7332
2010-01-19  Joel Brobecker  
7333
 
7334
        * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
7335
 
7336
2010-01-19  Joel Brobecker  
7337
 
7338
        * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
7339
        i[34567]86-*-solaris2.1[0-9]*.
7340
        * configure.tgt: Likewise.
7341
 
7342
2010-01-19  Joel Brobecker  
7343
 
7344
        * NEWS: Document the source command enhancement allowing it
7345
        to load Python scripts. Document the "set/show script-extension"
7346
        commands.
7347
 
7348
2010-01-19  Joel Brobecker  
7349
 
7350
        Add -Wunused-function to compile flags.
7351
        * configure.ac: Add -Wunused-function to build_warnings.
7352
        * configure: Regenerate.
7353
 
7354
2010-01-19  Joel Brobecker  
7355
 
7356
        "delete" ada-lex.c:input function, not used.
7357
        * ada-lex.l: #define YY_NO_INPUT.
7358
 
7359
2010-01-19  Joel Brobecker  
7360
 
7361
        Delete free_named_symtabs and associated cleanup.
7362
        * symfile.h (free_named_symtabs): Delete declaration.
7363
        * symfile.c: Remove some commented out code (clear_symtab_users_once).
7364
        (cashier_psymtab): Comment function out.
7365
        Delete declaration.
7366
        (free_named_symtabs): Delete.
7367
        * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
7368
        * dbxread.c (end_psymtab): Likewise.
7369
        * dwarf2read.c (process_psymtab_comp_unit): Ditto.
7370
        * exec.c (exec_close_1): Ditto.
7371
        * xcoffread.c (xcoff_end_psymtab): Likewise.
7372
 
7373
2010-01-19  Joel Brobecker  
7374
 
7375
        * stack.c (print_block_frame_labels): Comment function out.
7376
 
7377
2010-01-19  Joel Brobecker  
7378
 
7379
        Delete unused or undefined functions.
7380
        * breakpoint.c (ep_parse_optional_filename): Delete.
7381
        * dcache.c (dcache_write_line): Remove declaration.
7382
        * infrun.c (build_infrun): Remove declaration.
7383
        * tracepoint.c (tracepoint_save_command): Remove declaration.
7384
        * linux-nat.c (init_lwp_list): Delete. No longer used.
7385
        * event-loop.c (check_async_signal_handlers): Delete declaration.
7386
        * infrun.c (init_execution_control_state): Delete.
7387
        (proceed): Update comment to avoid mentioning
7388
        init_execution_control_state.
7389
        * target.c (kill_or_be_killed, nosupport_runtime): Delete.
7390
        * ada-lang.c (ada_to_static_fixed_value): Delete.
7391
        * scm-lang.c (evaluate_subexp_scm): Delete declaration.
7392
        * cp-namespace.c (cp_copy_usings): Delete.
7393
        * xml-syscall.c (xml_number_of_syscalls): Delete.
7394
        * progspace.c (find_program_space_by_num): Delete.
7395
        * inflow.c (handle_sigio): Delete declaration.
7396
        * hppa-tdep.c (hppa_alignof): Delete.
7397
        * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
7398
        (mipsnbsd_core_osabi_sniffer): Delete.
7399
 
7400
2010-01-18  Tom Tromey  
7401
 
7402
        PR c++/9680:
7403
        * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
7404
        (CONST_CAST): New tokens.
7405
        (exp): Add new productions.
7406
        (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
7407
        reinterpret_cast.
7408
        (is_cast_operator): New function.
7409
        (yylex): Handle cast operators specially.
7410
        * eval.c (evaluate_subexp_standard) 
7411
        UNOP_REINTERPRET_CAST>: New cases.
7412
        * expprint.c (print_subexp_standard): Likewise.
7413
        (op_name_standard): Likewise.
7414
        (dump_subexp_body_standard): Likewise.
7415
        * parse.c (operator_length_standard): Likewise.
7416
        * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
7417
        UNOP_REINTERPRET_CAST.
7418
        * gdbtypes.c (class_types_same_p): New function.
7419
        (is_ancestor): Use it.
7420
        (is_public_ancestor): New function.
7421
        (is_unique_ancestor_worker): Likewise.
7422
        (is_unique_ancestor): Likewise.
7423
        * gdbtypes.h (class_types_same_p, is_public_ancestor)
7424
        (is_unique_ancestor): Declare.
7425
        * valops.c (value_reinterpret_cast): New function.
7426
        (dynamic_cast_check_1): Likewise.
7427
        (dynamic_cast_check_2): Likewise.
7428
        (value_dynamic_cast): Likewise.
7429
        * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
7430
 
7431
2010-01-18  Joel Brobecker  
7432
 
7433
        Fix build failure when building without Python support.
7434
        * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
7435
        is not defined.
7436
 
7437
2010-01-18  Joel Brobecker  
7438
 
7439
        Use XVS field type instead of doing a parallel lookup.
7440
        * ada-lang.c (ada_get_base_type): Follow the XVS field type
7441
        if it is a reference type instead of doing a type lookup using
7442
        the XVS field name.
7443
 
7444
2010-01-18  Joel Brobecker  
7445
 
7446
        Trust PAD types instead of using PAD___XVS.
7447
        * ada-lang.c (trust_pad_over_xvs): New static variable.
7448
        (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
7449
        parallel XVS type, follow the XVS type instead of the PAD type.
7450
        (unwrap_value): Make sure that there is no parallel XVE type
7451
        before returning the value as is.
7452
        (set_ada_list, show_ada_list): New static variables.
7453
        (set_ada_command, show_ada_command): New functions.
7454
        (_initialize_ada_language): Add new "set/show ada" prefix commands.
7455
        Add new "set/show ada trust-PAD-over-XVS" setting.
7456
 
7457
2010-01-18  Tom Tromey  
7458
            Thiago Jung Bauermann  
7459
 
7460
        Allow "source" to load python scripts.
7461
        * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
7462
        * python/python.c (source_python_script): New function.
7463
        * python/python.h (source_python_script): Add declaration.
7464
        * cli/cli-cmds.c: #include exceptions.h and python/python.h.
7465
        (script_ext_off, script_ext_soft, script_ext_strict)
7466
        (script_ext_enums, script_ext_mode): New static constants.
7467
        (show_script_ext_mode, find_and_open_script): New functions.
7468
        (source_script): Enhance to handle Python scripts.
7469
        (init_cli_cmds): Add set/show script-extension commands.
7470
 
7471
2010-01-16  Stan Shebs  
7472
 
7473
        * tracepoint.h (struct trace_status): Use unsigned long long
7474
        instead of size_t.
7475
        * tracepoint.c (trace_status_command): Fix printf directive.
7476
        (trace_save_command): Check fwrite returns, fix printf directive.
7477
        (trace_filename): New global.
7478
        (tfile_open): Set it, check read returns.
7479
        (tfile_close): Free trace_filename.
7480
        (tfile_get_traceframe_address): Check read returns.
7481
        (tfile_trace_find): Ditto.
7482
        (tfile_fetch_registers): Ditto.
7483
        (tfile_xfer_partial): Ditto.
7484
        (tfile_get_trace_state_variable_value): Ditto.
7485
 
7486
2010-01-15  Stan Shebs  
7487
 
7488
        Add trace file support.
7489
        * tracepoint.h (enum trace_stop_reason): New enum.
7490
        (struct trace_status): New struct.
7491
        (parse_trace_status): Declare.
7492
        (struct uploaded_tp): Move here from remote.c,
7493
        add fields for actions.
7494
        (struct uploaded_tsv): New struct.
7495
        * tracepoint.c (tfile_ops): New target vector.
7496
        (trace_fd): New global.
7497
        (tfile_open): New function.
7498
        (tfile_close): New function.
7499
        (tfile_files_info): New function.
7500
        (tfile_get_trace_status): New function.
7501
        (tfile_get_traceframe_address): New function.
7502
        (tfile_trace_find): New function.
7503
        (tfile_fetch_registers): New function.
7504
        (tfile_xfer_partial): New function.
7505
        (tfile_get_trace_state_variable_value): New function.
7506
        (init_tfile_ops): New function.
7507
        (_initialize_tracepoint): Call it, add tfile target.
7508
        (trace_status): New global.
7509
        (current_trace_status): New function.
7510
        (trace_running_p): Remove, change all users to get from
7511
        current_trace_status()->running.
7512
        (get_trace_status): Remove.
7513
        (trace_status_command): Call target_get_trace_status directly,
7514
        report more detail including tracing stop reasons.
7515
        (trace_find_command): Always allow tfind on a file.
7516
        (trace_find_pc_command): Ditto.
7517
        (trace_find_tracepoint_command): Ditto.
7518
        (trace_find_line_command): Ditto.
7519
        (trace_find_range_command): Ditto.
7520
        (trace_find_outside_command): Ditto.
7521
        (trace_frames_offset, cur_offset): Declare as off_t.
7522
        (trace_regblock_size): Rename from reg_size, update users.
7523
        (parse_trace_status): New function.
7524
        (tfile_interp_line): New function.
7525
        (disconnect_or_stop_tracing): Ensure current trace
7526
        status before asking what to do.
7527
        (stop_reason_names): New global.
7528
        (trace_save_command): New command.
7529
        (get_uploaded_tp): Move here from remote.c.
7530
        (find_matching_tracepoint): Ditto.
7531
        (merge_uploaded_tracepoints): New function.
7532
        (parse_trace_status): Use stop_reason_names.
7533
        (_initialize_tracepoint): Define tsave command.
7534
        * target.h (target_ops): New fields to_save_trace_data,
7535
        to_upload_tracepoints, to_upload_trace_state_variables,
7536
        to_get_raw_trace_data, change to_get_trace_status
7537
        to take a pointer to a status struct.
7538
        (target_save_trace_data): New macro.
7539
        (target_upload_tracepoints): New macro.
7540
        (target_upload_trace_state_variables): New macro.
7541
        (target_get_raw_trace_data): New macro.
7542
        * target.c (update_current_target): Add new methods, change
7543
        signature of to_get_trace_status.
7544
        * remote.c (hex2bin): Make globally visible.
7545
        (bin2hex): Ditto.
7546
        (remote_download_trace_state_variable): Download name also.
7547
        (remote_get_trace_status): Update parameter, use
7548
        parse_trace_status.
7549
        (remote_save_trace_data): New function.
7550
        (remote_upload_tracepoints): New function.
7551
        (remote_upload_trace_state_variables): New function.
7552
        (remote_get_raw_trace_data): New function.
7553
        (remote_start_remote): Use them.
7554
        (_initialize_remote_ops): Add operations.
7555
        * ax-gdb.c: Include breakpoint.h.
7556
        * breakpoint.c (create_tracepoint_from_upload): Use
7557
        break_command_really, return tracepoint, warn about unimplemented
7558
        parts.
7559
        * NEWS: Mention trace file addition.
7560
 
7561
2010-01-15  Jan Kratochvil  
7562
 
7563
        Fix compilation warning on gcc-3.4.
7564
        * exec.c (print_section_info): Move the `displacement' variable
7565
        initialization to its declaration.
7566
 
7567
2010-01-15  Jan Kratochvil  
7568
 
7569
        * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
7570
        comparison.
7571
 
7572
2010-01-15  Eric Botcazou  
7573
 
7574
        "info tasks" broken by typedefs in ATCB type definitions.
7575
        * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
7576
        ada_check_typedef before retrieving the length of the type for
7577
        regular fields.
7578
 
7579
2010-01-15  Joel Brobecker  
7580
 
7581
        Do not use name-based lookup for unconstrained packed arrays.
7582
        * ada-lang.c (find_parallel_type_by_descriptive_type):
7583
        Limit the fallback to name-based lookups to the case where
7584
        the type is a constrained packed array.
7585
 
7586
2010-01-15  Joel Brobecker  
7587
 
7588
        Enhance gdb-gdb.py to handle main_type.type_specific.
7589
        * gdb-gdb.py: Print the type-specific part of struct main_type.
7590
 
7591
2010-01-15  Jan Kratochvil  
7592
 
7593
        * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
7594
        * configure: Regenerate.
7595
        * config.in: Regenerate.
7596
        * utils.c: Include sys/resource.h.
7597
        (dump_core, can_dump_core): New.
7598
        (internal_vproblem): Update the comment.  Check can_dump_core while
7599
        setting dump_core_p.  Replace two abort calls by dump_core calls.
7600
 
7601
2010-01-14  Jan Kratochvil  
7602
            Eli Zaretskii  
7603
 
7604
        * NEWS: Document the PIE support.
7605
 
7606
2010-01-14  Jan Kratochvil  
7607
 
7608
        * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
7609
        (check_is_pie_binary, _initialize_linux_tdep): Remove.
7610
 
7611
2010-01-14  Jan Kratochvil  
7612
 
7613
        * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
7614
        Replace exec_entry_point call by bfd_get_start_address.
7615
 
7616
2010-01-14  Jan Kratochvil  
7617
 
7618
        Support Valgrind attachments broken by the PIE support.
7619
        * auxv.c: Include gdbcore.h.
7620
        (procfs_xfer_auxv): Make static.  Reduce its comment.  Drop its
7621
        parameters ops, object and annex.  Remove their assertions.
7622
        (ld_so_xfer_auxv, memory_xfer_auxv): New function.
7623
        * auxv.h (procfs_xfer_auxv): Remove comment.  Rename to ...
7624
        (memory_xfer_auxv): ... here.
7625
        * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
7626
        memory_xfer_auxv.
7627
        * procfs.c (procfs_xfer_partial): Likewise.
7628
        * solib-svr4.c (svr4_relocate_main_executable): New prototype.
7629
        (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
7630
        (svr4_solib_create_inferior_hook): Conditionalize the
7631
        svr4_relocate_main_executable call.
7632
 
7633
2010-01-14  Jan Kratochvil  
7634
 
7635
        * solib-svr4.c (scan_dyntag): Remove variable dyn_addr.  New variable
7636
        target_section.  Find SECT in current_target_sections, gdb_assert it.
7637
        (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
7638
        New variable abfd.
7639
        * symtab.c (lookup_objfile_from_block): Return the binary file instead
7640
        of separate debug info file.
7641
 
7642
2010-01-14  Jan Kratochvil  
7643
 
7644
        Support PIEs with no symfile_objfile.
7645
        * exec.c (print_section_info ): Relocate Entry point.
7646
        * solib-svr4.c (svr4_relocate_main_executable ): New block.
7647
 
7648
2010-01-14  Jan Kratochvil  
7649
 
7650
        * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
7651
        code part to ...
7652
        (svr4_static_exec_displacement): ... a new function.
7653
        (svr4_exec_displacement): New function.
7654
        (svr4_relocate_main_executable): Call svr4_exec_displacement.  Allocate
7655
        new_offsets using alloca now.  Remove variable old_chain and changed.
7656
        Call objfile_relocate unconditionally now.
7657
 
7658
2010-01-14  Doug Evans  
7659
 
7660
        * gdbtypes.c (arch_flags_type): Fix comment.
7661
        * gdbtypes.h (arch_composite_type): Fix comment.
7662
 
7663
2009-01-14  Tristan Gingold  
7664
 
7665
        * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
7666
        Call xstrdup for abfd->filename.  Pass symfile_flags and objfile flags
7667
        to symbol_file_add_from_bfd.  Add OSO as separate objfile.
7668
        (macho_oso_symfile): Add symfile_flags parameter.  Pass it to
7669
        macho_add_oso_symfile.
7670
        (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
7671
 
7672
2010-01-14  Joel Brobecker  
7673
 
7674
        Tru64: Dead threads are never deleted.
7675
        * dec-thread.c (dec_thread_ptid_is_alive): New function.
7676
        (dec_thread_count_gdb_threads): Fix counter increment.
7677
        (dec_thread_add_gdb_thread): Fix *listp increment.
7678
        (resync_thread_list): Fix bug in deletion of dead threads that
7679
        caused all threads to be deleted, instead of just the dead ones.
7680
 
7681
2010-01-13  Phil Muldoon  
7682
 
7683
        PR python/10705
7684
 
7685
        * python/python-internal.h: Add lazy_string_object_type
7686
        definition.
7687
        (create_lazy_string_object, gdbpy_initialize_lazy_string)
7688
        (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
7689
        * python/py-value.c (valpy_lazy_string): New function.
7690
        (convert_value_from_python): Add lazy string conversion.
7691
        * python/py-prettyprint.c (pretty_print_one_value): Check if
7692
        return is also a lazy string.
7693
        (print_string_repr): Add lazy string printing branch.
7694
        (print_children): Likewise.
7695
        * python/py-lazy-string.c: New file. Implement lazy strings.
7696
        * python/python.c (_initialize_python): Call
7697
        gdbpy_initialize_lazy_string.
7698
        * varobj.c (value_get_print_value): Add lazy string printing
7699
        branch.  Account for encoding.
7700
        * c-lang.c (c_printstr): Account for new encoding argument.  If
7701
        encoding is NULL, find encoding suited for type, otherwise use
7702
        user encoding.
7703
        * language.h (language_defn): Add encoding argument.
7704
        (LA_PRINT_STRING): Likewise.
7705
        * language.c (unk_lang_printstr): Update to reflect new encoding
7706
        argument to language_defn.
7707
        * ada-lang.h (ada_printstr): Likewise.
7708
        * c-lang.h (c_printstr): Likewise.
7709
        * p-lang.h (pascal_printstr);
7710
        * f-lang.c (f_printstr): Likewise.
7711
        * m2-lang.c (m2_printstr): Likewise.
7712
        * objc-lang.c (objc_printstr): Likewise.
7713
        * p-lang.c (pascal_printstr): Likewise.
7714
        * scm-lang.c (scm_printstr): Likewise.
7715
        * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
7716
        encoding argument.
7717
        * ada-valprint.c (ada_printstr): Likewise.
7718
        * f-valprint.c (f_val_print): Likewise
7719
        * m2-valprint.c (m2_val_print): Likewise.
7720
        * p-valprint.c (pascal_val_print): Likewise.
7721
        * expprint.c (print_subexp_standard): Likewise.
7722
        * valprint.c (val_print_string): Likewise.
7723
        * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
7724
        (SUBDIR_PYTHON_SRCS): Likewise.
7725
        (py-lazy-string.o): New rule.
7726
 
7727
2010-01-13  Doug Evans  
7728
 
7729
        * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
7730
        uninitialized" warning from gcc on local `tree'.
7731
 
7732
2010-01-13  Vladimir Prus  
7733
 
7734
        Implement core awareness.
7735
 
7736
        * bcache.c (compare_ints): Remove
7737
        (print_percentage): Use compare_positive_ints.
7738
        * defs.h (compare_positive_ints): Declare.
7739
        * linux-nat.h (struct lin_lwp): New field core.
7740
        (linux_nat_core_of_thread_1): Declare.
7741
        * linux-nat.c (add_lwp): Init the 'core' field.
7742
        (linux_nat_wait_1): Record the core.
7743
        (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
7744
        (linux_nat_add_target): Register the above.
7745
        * linux-thread-db.c (update_thread_core): New.
7746
        (thread_db_find_new_threads): Update core information for
7747
        every thread.
7748
        * remote.c (struct private_thread_info): New.
7749
        (free_private_thread_info, demand_private_info): New.
7750
        (PACKET_qXfer_threads, use_osdata_threads): New.
7751
        (struct thread_item, threads_parsing_context
7752
        (start_thread, end_thread, thread_attributes)
7753
        (thread_children, threads_children, threads_elements): New.
7754
        (remote_threads_info): Try qXfer:threads before anything
7755
        else.
7756
        (remote_protocol_packets): Register qXfer:threads.
7757
        (remote_open_1): Init use_osdata_threads.
7758
        (struct stop_reply): New field 'core'.
7759
        (remote_parse_stop_reply): Parse core number.
7760
        (process_stop_reply): Record core number.
7761
        (remote_xfer_partial): Handle qXfer:threads.
7762
        (remote_core_of_thread): New.
7763
        (init_remote_ops): Register remote_core_of_thread.
7764
        (_initialize_remote): Register qXfer:read.
7765
        * target.c (target_core_of_thread): New
7766
        * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
7767
        (struct target_ops): New field to_core_of_threads.
7768
        (target_core_of_thread): Declare.
7769
        * gdbthread.h (struct thread_info): New field private_dtor.
7770
        * thread.c (print_thread_info): Report the core.
7771
        * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
7772
        * utils.c (compare_positive_ints): New.
7773
        * features/threads.dtd: New.
7774
        * mi/mi-interp.c (mi_on_normal_stop): Report the core.
7775
        * mi/mi-main.c (struct collect_cores_data, collect_cores)
7776
        (do_nothing, free_vector_of_osdata_items)
7777
        (splay_tree_int_comparator, free_splay_tree): New.
7778
        (print_one_inferior_data): Implemented printing of selected
7779
        inferiors.  Collect and print cores.
7780
        (output_cores): New.
7781
        (mi_cmd_list_thread_groups): Support --recurse.  Permit specifying
7782
        thread groups together with --available.
7783
 
7784
2010-01-12  Jan Kratochvil  
7785
 
7786
        * configure: Regenerate (for _STRUCTURED_PROC).
7787
 
7788
2010-01-12  Joel Brobecker  
7789
 
7790
        Delete dead function.
7791
        * ada-lang.c (extract_string): Delete.  No longer used.
7792
 
7793
2010-01-12  Joel Brobecker  
7794
 
7795
        Fix -Wunused warning in dec-thread.c.
7796
        * dec-thread.c (dec_thread_count_gdb_threads)
7797
        (dec_thread_add_gdb_thread): Prevent -Wunused warning.
7798
 
7799
2010-01-12  Joel Brobecker  
7800
 
7801
        * ada-valprint.c (ada_print_floating): Remove trailing space.
7802
 
7803
2010-01-12  Joel Brobecker  
7804
 
7805
        Add support for DW_AT_GNAT_descriptive_type.
7806
        * gdbtypes.h (enum type_specific_kind): New enum.
7807
        (struct main_type) [type_specific_field]: New component.
7808
        [type_specific]: Add new component "gnat_stuff".
7809
        (struct gnat_aux_type): New type.
7810
        (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
7811
        (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
7812
        (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
7813
        (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
7814
        (TYPE_SPECIFIC_FIELD): New macros.
7815
        (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
7816
        type does not hold any cplus-specific data.
7817
        (TYPE_RAW_CPLUS_SPECIFIC): New macro.
7818
        (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
7819
        (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
7820
        cplus-specific data.
7821
        * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
7822
        Set new component TYPE_SPECIFIC_FIELD (type).
7823
        (gnat_aux_default): New constant.
7824
        (allocate_gnat_aux_type): New function.
7825
        (init_type): Add initialization the type-specific stuff for
7826
        TYPE_CODE_FLT and TYPE_CODE_FUNC types.
7827
        (print_gnat_stuff): New function.
7828
        (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
7829
        specific data.  Adjust code that prints the contents of the
7830
        type-specific union using the TYPE_SPECIFIC_FIELD value.
7831
        * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
7832
        the type cplus stuff for Ada types.
7833
        (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
7834
        Error out if these routines are called with an Ada type.
7835
        (read_structure_type, read_array_type, read_subrange_type):
7836
        Add call to set_descriptive_type.
7837
        (set_die_type): Initialize the gnat-specific data if necessary.
7838
        (need_gnat_info, die_descriptive_type, set_descriptive_type):
7839
        New functions.
7840
        * ada-lang.c (decode_constrained_packed_array_type): Use
7841
        decode_constrained_packed_array_type instead of doing a standard
7842
        lookup to locate a parallel type.
7843
        (find_parallel_type_by_descriptive_type): New function.
7844
        (ada_find_parallel_type_with_name): New function.
7845
        (ada_find_parallel_type): Reimplement using
7846
        ada_find_parallel_type_with_name.
7847
        * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
7848
        to check if type has a cplus stuff.
7849
        * linespec.c (total_number_of_methods): Likewise.
7850
        * mdebugread.c (new_type): Likewise.
7851
 
7852
2010-01-11  Jan Kratochvil  
7853
 
7854
        * NEWS: Document the 0b binary number prefix parsing.
7855
 
7856
2010-01-11  Jan Kratochvil  
7857
 
7858
        * objfiles.c (objfile_relocate1): Change the return type to int.
7859
        Describe the new return value.  Return non-zero if data changed.
7860
        (objfile_relocate): New variable changed.  Set it.  Call
7861
        breakpoint_re_set depending on CHANGED.
7862
 
7863
2010-01-11  Jan Kratochvil  
7864
 
7865
        Implement binary numbers parsing.
7866
        * c-exp.y (parse_number): New case 'b' and 'B'.
7867
 
7868
2010-01-11  Jan Kratochvil  
7869
            Tristan Gingold  
7870
 
7871
        * solib.c (info_sharedlibrary_command): Replace
7872
        objfile_has_partial_symbols and objfile_has_full_symbols calls by
7873
        objfile_has_symbols.
7874
 
7875
2010-01-10  Joel Brobecker  
7876
 
7877
        * NEWS: Document the improvements made to the mips-irix port.
7878
 
7879
2010-01-09  Joel Brobecker  
7880
 
7881
        Fix the documentation of valprint.c:value_print.
7882
        * valprint.c (value_print): Update the function description to
7883
        mention that the syntax of the output follows the current_language,
7884
        not necessarily C.
7885
 
7886
2010-01-09  Jan Kratochvil  
7887
 
7888
        Fix displacement of separate debug info files.
7889
        * objfiles.c (objfile_relocate): Rename to ...
7890
        (objfile_relocate1): ... here and make it static.  Extend the comment.
7891
        (objfile_relocate): New function.
7892
        * solib-spu.c (spu_relocate_main_executable): Explicitly check if
7893
        SYMFILE_OBJFILE is NULL.  Remove variables objfile and old_chain.
7894
        Remove following of SEPARATE_DEBUG_OBJFILE.  new_offsets is now
7895
        allocated using alloca.
7896
        * symfile.c (copy_section_addr_info): Remove.
7897
        (build_section_addr_info_from_objfile): Make it global.  New variables
7898
        addr_bit and mask, use them.
7899
        * symfile.h (build_section_addr_info_from_objfile): New prototype.
7900
        (copy_section_addr_info): Remove.
7901
 
7902
2010-01-09  Joel Brobecker  
7903
 
7904
        Signal unwinder for mips-irix N32.
7905
        * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
7906
        tramp-frame.h.
7907
        (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
7908
        (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
7909
        (SIGCONTEXT_LO_OFF): New macros.
7910
        (mips_irix_n32_tramp_frame_init): New function.
7911
        (mips_irix_n32_tramp_frame): New static constant.
7912
        (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
7913
 
7914
2010-01-09  Joel Brobecker  
7915
 
7916
        Breakpoint in shared library does not work on mips-irix.
7917
        * procfs.c: #include "observer.h".
7918
        (procfs_inferior_created): New function, moving here the code
7919
        which unsets the syssgi syscall-exit notifications.
7920
        (procfs_create_inferior): Remove the code which unsets the syssgi
7921
        syscall-exit notifications. It is too early to do this here.
7922
        (_initialize_procfs): Attach the procfs_inferior_created observer.
7923
 
7924
2010-01-09  Joel Brobecker  
7925
 
7926
        Wrong return convention for arrays (mips-irix).
7927
        * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
7928
        128 bits or smaller are returned the same way as structs
7929
        and unions of the the same size.
7930
 
7931
2010-01-09  Joel Brobecker  
7932
 
7933
        Cannot set the PC on mips-irix.
7934
        * irix5-nat.c (fill_gregset): Check regno against the raw PC
7935
        register number, no the cooked one.
7936
 
7937
2010-01-09  Joel Brobecker  
7938
 
7939
        Error while loading core file on mips-irix.
7940
        * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
7941
        if debugging from a core file.
7942
 
7943
2010-01-09  Joel Brobecker  
7944
 
7945
        GDB hangs when attaching to process on mips-irix.
7946
        * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
7947
        attaching to a process.
7948
 
7949
2010-01-09  Joel Brobecker  
7950
 
7951
        Use the correct breakpoint instruction on mips-irix.
7952
        * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
7953
        containing the correct breakpoint instruction to use on mips-irix.
7954
        Use it when the osabi is GDB_OSABI_IRIX.
7955
 
7956
2010-01-09  Joel Brobecker  
7957
 
7958
        -Wunused warning in procfs.c (mips-irix only).
7959
        * procfs.c (gdb_praddset, gdb_prdelset): New macros.  Use them
7960
        throughout instead of using praddset and prdelset respectively.
7961
 
7962
2010-01-09  Joel Brobecker  
7963
 
7964
        GDB crash while stepping into function.
7965
        * infrun.c (handle_inferior_event): Refetch the current frame
7966
        after handling what.main_action, in case that pointer became
7967
        dangling.
7968
 
7969
2010-01-09  Joel Brobecker  
7970
 
7971
        Fix build failure of solaris-hosted cross debuggers.
7972
        * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
7973
 
7974
2010-01-09  Daniel Gutson  
7975
 
7976
        Fix build failure on sparc-solaris.
7977
        * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
7978
 
7979
2010-01-08  Jan Kratochvil  
7980
 
7981
        Move some symfile code into subroutines.
7982
        * symfile.h (relative_addr_info_to_section_offsets)
7983
        (addr_info_make_relative): New prototypes.
7984
        * symfile.c (default_symfile_offsets): Move a part to ...
7985
        (relative_addr_info_to_section_offsets): ... this new function.
7986
        (default_symfile_offsets): Call it.
7987
        (syms_from_objfile other[0].name>): Move
7988
        this part to ...
7989
        (addr_info_make_relative): ... this new function.
7990
 
7991
2010-01-08  Jan Kratochvil  
7992
 
7993
        Add from_tty to solib_create_inferior_hook.
7994
        * infcmd.c (post_create_inferior): Move solib_add after
7995
        solib_create_inferior_hook.  Pass from_tty to
7996
        solib_create_inferior_hook.  Call solib_add and SOLIB_ADD with
7997
 
7998
        * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
7999
        * linux-nat.c (linux_child_follow_fork): Likewise.
8000
        * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
8001
        * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
8002
        from_tty.
8003
        * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
8004
        * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
8005
        * solib-null.c (null_solib_create_inferior_hook): Likewise.
8006
        * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
8007
        * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
8008
        * solib-som.c (som_solib_create_inferior_hook): Likewise.
8009
        * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
8010
        Pass it to svr4_so_ops.solib_create_inferior_hook.
8011
        * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
8012
        from_tty.
8013
        * solib-svr4.c (enable_break): New parameter from_tty.  Pass it to
8014
        solib_add.
8015
        (svr4_solib_create_inferior_hook): New parameter from_tty.  Pass it to
8016
        enable_break.
8017
        * solib-target.c (solib_target_solib_create_inferior_hook): New
8018
        parameter from_tty.
8019
        * solib.c (solib_create_inferior_hook): New parameter from_tty.  Pass
8020
        it to ops->solib_create_inferior_hook.
8021
        (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
8022
        Move solib_add after solib_create_inferior_hook, call it now with
8023
        from_tty as 0.  New comment there.
8024
        * solib.h (solib_create_inferior_hook): New parameter from_tty.
8025
        * solist.h (struct target_so_ops ):
8026
        Likewise.
8027
 
8028
2010-01-08  Vladimir Prus  
8029
 
8030
        Fix multiexec race.
8031
        * infrun.c (handle_inferior_event): Use get_thread_regcache
8032
        with events ptid, not get_current_regcache.
8033
 
8034
2009-01-08  Joel Brobecker  
8035
 
8036
        GDB crash with empty executable name (MinGW).
8037
        * source.c (openp): Add assert that parameter string is not NULL.
8038
        if parameter string is an empty string, then return with a failure
8039
        immediately.
8040
 
8041
2009-01-08  Joel Brobecker  
8042
 
8043
        Get rid of support for VAX Floats.
8044
        * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
8045
        (ada_vax_float_print_function): Delete.
8046
        * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
8047
        (ada_vax_float_print_function): Delete.
8048
        * ada-typeprint.c (print_vax_floating_point_type): Delete.
8049
        (ada_print_type): Remove support for VAX floats.
8050
        * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
8051
 
8052
2010-01-08  Jan Kratochvil  
8053
 
8054
        * stabsread.c (read_args): Handle zero arguments.
8055
 
8056
2009-01-08  Joel Brobecker  
8057
 
8058
        Cannot find in-tree libiconv.a after reconfigure.
8059
        * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
8060
        that we can use, then cache the path to this archive.
8061
        * configure: Regenerate.
8062
 
8063
2010-01-07  Stan Shebs  
8064
 
8065
        Make tracepoint operations go through target vector.
8066
        * target.h (enum trace_find_type): New enum.
8067
        (struct target_ops): New fields to_trace_init,
8068
        to_download_tracepoint, to_download_trace_state_variable,
8069
        to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
8070
        to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
8071
        to_set_disconnected_tracing.
8072
        (target_trace_init): New macro.
8073
        (target_download_tracepoint): New macro.
8074
        (target_download_trace_state_variable): New macro.
8075
        (target_trace_start): New macro.
8076
        (target_trace_set_readonly_regions): New macro.
8077
        (target_get_trace_status): New macro.
8078
        (target_trace_stop): New macro.
8079
        (target_trace_find): New macro.
8080
        (target_get_trace_state_variable_value): New macro.
8081
        (target_set_disconnected_tracing): New macro.
8082
        * target.c (update_current_target): Inherit and set defaults for
8083
        tracepoint operations.
8084
        * tracepoint.c (default_collect): Make globally visible.
8085
        (target_is_remote): Remove, along with all calls.
8086
        (tvariables_info): Call target_get_trace_state_variable_value.
8087
        (remote_set_transparent_ranges): Remove.
8088
        (trace_start_command): Call target_trace_init,
8089
        target_download_tracepoint, etc.
8090
        (download_tracepoint): Remove.
8091
        (trace_stop_command): Simplify.
8092
        (stop_tracing): Call target_trace_stop.
8093
        (get_trace_status): Call target_get_trace_status.
8094
        (trace_status_command): Add case for targets that cannot trace.
8095
        (finish_tfind_command): Change to take numerical arguments, call
8096
        target_trace_find.
8097
        (trace_find_command): Update call to finish_tfind_command.
8098
        (trace_find_pc_command): Ditto.
8099
        (trace_find_tracepoint_command): Ditto.
8100
        (trace_find_line_command): Ditto.
8101
        (trace_find_range_command): Ditto.
8102
        (trace_find_outside_command): Ditto.
8103
        (set_disconnected_tracing_value): Call
8104
        target_set_disconnected_tracing.
8105
        * remote.c: Add protocol encoding bits from tracepoint.c.
8106
        (trace_error): Move from tracepoint.c.
8107
        (remote_get_noisy_reply): Ditto.
8108
        (free_actions_list_cleanup_wrapper): Ditto.
8109
        (free_actions_list): Ditto.
8110
        (remote_trace_init): New function.
8111
        (remote_download_tracepoint): New function.
8112
        (remote_download_trace_state_variable): New function.
8113
        (remote_trace_set_readonly_regions): New function.
8114
        (remote_trace_start): New function.
8115
        (remote_get_trace_status): New function.
8116
        (remote_trace_stop): New function.
8117
        (remote_trace_find): New function.
8118
        (remote_download_trace_state_variable): New function.
8119
        (remote_set_disconnected_tracing): New function.
8120
        (init_remote_ops): Add tracepoint operations.
8121
 
8122
        * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
8123
 
8124
2010-01-07  Tristan Gingold  
8125
 
8126
        * symfile.c (build_section_addr_info_from_objfile): New function.
8127
        (symbol_file_add_separate): Don't use offsets from objfile but
8128
        built an addr info.
8129
 
8130
2010-01-06  Stan Shebs  
8131
 
8132
        Support disconnected tracing.
8133
        * infcmd.c (detach_command): Ask whether to stop tracing.
8134
        * cli/cli-cmds.c (quit_command): Ditto.
8135
        * breakpoint.h (struct breakpoint): New field number_on_target.
8136
        * breakpoint.c (create_tracepoint_from_upload): New function.
8137
        (get_tracepoint_by_number_on_target): New function.
8138
        * remote.c (struct remote): New field disconnected_tracing.
8139
        (remote_disconnected_tracing_feature): New function.
8140
        (remote_protocol_features): Add DisconnectedTracing.
8141
        (struct uploaded_tp): New struct.
8142
        (uploaded_tps): New global.
8143
        (get_uploaded_tp): New function.
8144
        (find_matching_tracepoint): New function.
8145
        (remote_get_tracing_state): New function.
8146
        (remote_start_remote): Call it.
8147
        * tracepoint.c (disconnected_tracing): New global.
8148
        (trace_start_command): Initialize number_on_target.
8149
        (stop_tracing): New function, split out from...
8150
        (trace_stop_command): Call stop_tracing.
8151
        (get_trace_status): New function, split out from...
8152
        (trace_status_command): Call get_trace_status, add info on
8153
        disconnection behavior.
8154
        (disconnect_or_stop_tracing): New function.
8155
        (finish_tfind_command): Translate from number on target.
8156
        (trace_find_tracepoint_command): Translate to number on target.
8157
        (send_disconnected_tracing_value): New function.
8158
        (set_disconnected_tracing): New function.
8159
        (_initialize_tracepoint): Add disconnected-tracing variable.
8160
        * NEWS: Mention disconnected tracing.
8161
 
8162
2010-01-06  Tristan Gingold  
8163
 
8164
        * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
8165
        parameter to main_objfile.  Iterate on all separate debug objfiles.
8166
        * symfile.h (symbol_file_add_separate)
8167
        (find_separate_debug_file_by_debuglink): Remove parameter names.
8168
        * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
8169
        (reread_symbols): Use free_objfile_separate_debug.
8170
        * objfiles.h (struct objfile): Add separate_debug_objfile_link.
8171
        Adjust comment.
8172
        (objfile_separate_debug_iterate, add_separate_debug_objfile)
8173
        (free_objfile_separate_debug): New prototypes.
8174
        * objfiles.c (objfile_separate_debug_iterate): New function.
8175
        (add_separate_debug_objfile, free_objfile_separate_debug): New
8176
        functions.
8177
        (free_objfile): Use free_objfile_separate_debug.  Adjust for
8178
        multiple separate debug objfile.
8179
        (objfile_has_symbols): Adjust comment.  Iterate on all separate
8180
        debug objfiles.
8181
        * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
8182
        debug objfile.
8183
        (lookup_minimal_symbol_text): Ditto.
8184
        (lookup_minimal_symbol_by_pc_name): Ditto.
8185
        (lookup_minimal_symbol_solib_trampoline): Ditto.
8186
        (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
8187
        debug objfiles.
8188
 
8189
2010-01-05  Stan Shebs  
8190
 
8191
        Add fast tracepoints.
8192
        * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
8193
        * arch-utils.c (default_fast_tracepoint_valid_at): New function.
8194
        * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
8195
        * breakpoint.c (tracepoint_type): New function.
8196
        (ALL_TRACEPOINTS): Use it.
8197
        (should_be_inserted): Ditto.
8198
        (bpstat_check_location): Ditto.
8199
        (print_one_breakpoint_location): Ditto.
8200
        (user_settable_breakpoint): Ditto.
8201
        (set_breakpoint_location_function): Ditto.
8202
        (disable_breakpoints_in_shlibs): Ditto.
8203
        (delete_trace_command): Ditto.
8204
        (print_it_typical): Add bp_fast_tracepoint case.
8205
        (bpstat_what): Ditto.
8206
        (print_one_breakpoint_location): Ditto.
8207
        (allocate_bp_location): Ditto.
8208
        (mention): Ditto.
8209
        (breakpoint_re_set_one): Ditto.
8210
        (disable_command): Ditto.
8211
        (enable_command): Ditto.
8212
        (check_fast_tracepoint_sals): New function.
8213
        (break_command_really): Call it.
8214
        (ftrace_command): New function.
8215
        (_initialize_breakpoint): Add ftrace command.
8216
        * gdbarch.sh (fast_tracepoint_valid_at): New.
8217
        * gdbarch.h, gdbarch.c: Regenerate.
8218
        * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
8219
        (i386_gdbarch_init): Use it.
8220
        * remote.c (struct remote_state): New field fast_tracepoints.
8221
        (PACKET_FastTracepoints): New packet config type.
8222
        (remote_fast_tracepoint_feature): New function.
8223
        (remote_protocol_features): Add FastTracepoints.
8224
        (remote_supports_fast_tracepoints): New function.
8225
        (_initialize_remote): Add FastTracepoints.
8226
        * tracepoint.c (download_tracepoint): Add fast tracepoint option.
8227
        * NEWS: Mention fast tracepoints.
8228
 
8229
2010-01-06  Joel Brobecker  
8230
 
8231
        * gdb-gdb.py: New file.
8232
 
8233
2010-01-05  Michael Snyder  
8234
 
8235
        * infrun.c (handle_inferior_event): Fix typo in comment.
8236
 
8237
2010-01-05  Jan Kratochvil  
8238
 
8239
        * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
8240
 
8241
2010-01-04  Ulrich Weigand  
8242
 
8243
        * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
8244
        and s390x-linux64.
8245
        (s390-linux32-expedite): Define.
8246
        (s390-linux64-expedite): Define.
8247
        (s390x-linux64-expedite): Define.
8248
        * features/s390-acr.xml: New file.
8249
        * features/s390-fpr.xml: New file.
8250
        * features/s390-core32.xml: New file.
8251
        * features/s390-core64.xml: New file.
8252
        * features/s390x-core64.xml: New file.
8253
        * features/s390-linux32.xml: New file.
8254
        * features/s390-linux64.xml: New file.
8255
        * features/s390x-linux64.xml: New file.
8256
        * features/s390-linux32.c: New generated file.
8257
        * features/s390-linux64.c: New generated file.
8258
        * features/s390x-linux64.c: New generated file.
8259
 
8260
        * regformats/s390-linux32.dat: New generated file.
8261
        * regformats/s390-linux64.dat: New generated file.
8262
        * regformats/s390x-linux64.dat: New generated file.
8263
        * regformats/reg-s390.dat: Remove.
8264
        * regformats/reg-s390x.dat: Remove.
8265
 
8266
        * s390-nat.c: Include "auxv.h" and .
8267
        (HWCAP_S390_HIGH_GPRS): Define if undefined.
8268
        (s390_target_wordsize): New function.
8269
        (s390_auxv_parse): Likewise.
8270
        (s390_get_hwcap): Likewise.
8271
        (s390_read_description): Likewise.
8272
        (_initialize_s390_nat): Install s390_auxv_parse and
8273
        s390_read_description.
8274
 
8275
        * s390-tdep.c: Include "features/s390-linux32.c",
8276
        "features/s390-linux64.c", and "features/s390x-linux64.c".
8277
        (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
8278
        (s390_register_call_saved): New function.
8279
        (s390_register_name): Remove.
8280
        (s390_register_type): Remove.
8281
        (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
8282
        (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
8283
        (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
8284
        (s390_pseudo_register_name): New function.
8285
        (s390_pseudo_register_type): New function.
8286
        (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
8287
        Handle full GPR pesudos and varying pseudo register numbers.
8288
        (s390_pseudo_register_write): Likewise
8289
        (s390x_pseudo_register_read): Remove.
8290
        (s390x_pseudo_register_write): Likewise.
8291
        (s390_register_group): Remove.
8292
        (s390_pseudo_register_group): New function.
8293
        (s390_regmap_gregset): Add GPR upper halves.
8294
        (s390x_regmap_gregset): Likewise.
8295
        (s390_regmap_fpregset): Likewise.
8296
        (s390_regmap_upper): New global variable.
8297
        (s390_upper_regset): New global variable.
8298
        (s390_upper_regset_sections): New global variable.
8299
        (s390_regset_from_core_section): Handle GPR upper halves.
8300
        (s390_core_read_description): New function.
8301
        (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
8302
        register information.  Handle varying pseudo register numbers.
8303
        (s390_backchain_frame_unwind_cache): Likewise.
8304
        (s390_frame_prev_register): Unwind full GPRs to show lower halves.
8305
        (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
8306
        (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
8307
        PC and CC pseudos.  Unwind upper halves and full GPRs as appropriate.
8308
        Handle varying pseudo register numbers.
8309
        (s390_unwind_pc): Handle varying pseudo register numbers.
8310
        (s390_dwarf2_prev_register): New function.
8311
        (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
8312
        register information.  Handle varying pseudo register numbers.
8313
        Install s390_dwarf2_prev_register to unwind full GPRs.
8314
        (s390_gdbarch_init): Handle target descriptions.  Assign varying
8315
        pseudo register numbers.  Install s390_adjust_frame_regnum.
8316
        (_initialize_s390_tdep): Initialize target descriptions.
8317
 
8318
        * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
8319
        (S390_NUM_REGS): Redefine to include upper half registers.
8320
        (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
8321
        (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
8322
        (tdesc_s390_linux32): Add declaration.
8323
        (tdesc_s390_linux64): Likewise.
8324
        (tdesc_s390x_linux64): Likewise.
8325
 
8326
2010-01-04  Ulrich Weigand  
8327
 
8328
        * regset.h (struct core_regset_section): Add HUMAN_NAME.
8329
        * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
8330
        * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
8331
        (ppc_linux_vmx_regset_sections): Likewise.
8332
        (ppc_linux_fp_regset_sections): Likewise.
8333
 
8334
        * corelow.c (get_core_register_section): Constify arguments.
8335
        (get_core_registers): Use gdbarch_core_regset_sections instead
8336
        of hard-coded platform-specific register section names.
8337
 
8338
2010-01-04  Ulrich Weigand  
8339
 
8340
        * dwarf2loc.c (read_pieced_value): If a piece occupies part of
8341
        a register, assume the least-significant part is used.
8342
        (write_pieced_value): Likewise.
8343
 
8344
2010-01-04  Ulrich Weigand  
8345
 
8346
        * printcmd.c: Include "arch-utils.h".
8347
        (do_one_display): Re-parse expression if current architecture changed.
8348
 
8349
2010-01-03  Jan Kratochvil  
8350
            Joel Brobecker  
8351
 
8352
        * gdbtypes.c (check_typedef): New comment on type length.
8353
        * value.c (allocate_value_lazy): Remove the unused atype variable.  New
8354
        comment on type length.
8355
        (value_primitive_field): Keep the original TYPE value, new comment.
8356
 
8357
2010-01-01  Jan Kratochvil  
8358
 
8359
        * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
8360
        p_start.  Change != comparisons to > and < comparisons.
8361
 
8362
2010-01-01  Jan Kratochvil  
8363
 
8364
        * cli/cli-script.c (process_next_line): Check P2 overrun.
8365
 
8366
2009-01-01  Joel Brobecker  
8367
 
8368
        Update the copyright hearder to add year 2010 for most GDB files.
8369
 
8370
2009-01-01  Joel Brobecker  
8371
 
8372
        Fix build failure in inf-ptrace.c.
8373
        * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
8374
 
8375
2010-01-01  Joel Brobecker  
8376
 
8377
        * top.c (print_gdb_version): Update copyright year.
8378
 
8379
2010-01-01, 10  Joel Brobecker  
8380
 
8381
        Fix break *FUN'address thread NUM.
8382
        * ada-lex.l (task): Expand rule to also match the thread keyword.
8383
 
8384
2010-01-01  Joel Brobecker  
8385
 
8386
        Fix break *FUN'address task NUM.
8387
        * ada-lex.l (task): New rule.
8388
        * ada-lang.c (valid_task_id): Make sure the Ada task list has
8389
        been built before using it.
8390
 
8391
For older changes see ChangeLog-2009.
8392
 
8393
Local Variables:
8394
mode: change-log
8395
left-margin: 8
8396
fill-column: 74
8397
version-control: never
8398
coding: utf-8
8399
End:

powered by: WebSVN 2.1.0

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