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