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