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