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