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