* tracepoint.h (set_traceframe_number)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
06cd862c
PA
12010-02-24 Pedro Alves <pedro@codesourcery.com>
2 Stan Shebs <stan@codesourcery.com>
3
4 * tracepoint.h (set_traceframe_number)
5 (cleanup_restore_current_traceframe): Declare.
6 * tracepoint.c (set_traceframe_number): New.
7 (struct current_traceframe_cleanup): New.
8 (do_restore_current_traceframe_cleanup)
9 (restore_current_traceframe_cleanup_dtor)
10 (make_cleanup_restore_current_traceframe): New.
11 * infrun.c: Include tracepoint.h.
12 (fetch_inferior_event): Switch out and in of tfind mode.
13
ab92d69b
PA
142010-02-24 Pedro Alves <pedro@codesourcery.com>
15
16 * breakpoint.c (breakpoint_init_inferior): Also delete
17 bp_shlib_event breakpoints.
18 * solib-frv.c (enable_break): Remove call to
19 remove_solib_event_breakpoints.
20 * solib-svr4.c (enable_break): Ditto.
21 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
22 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
23 * solib-som.c (som_solib_create_inferior_hook): Ditto.
24 * solib-spu.c (spu_enable_break): Ditto.
25
e707a91d
PA
262010-02-23 Harald Koenig <H.Koenig@science-computing.de>
27
28 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
29
cfce2ea2
PA
302010-02-23 Harald Koenig <H.Koenig@science-computing.de>
31
32 * varobj.c (varobj_update): Avoid non-constants in initializers.
33
05566b3b
TT
342010-02-23 Tom Tromey <tromey@redhat.com>
35
36 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
37 handle big-endian values.
38 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
39
85d721b8
PA
402010-02-22 Pedro Alves <pedro@codesourcery.com>
41
42 PR9605
43
44 gdb/
45 * breakpoint.c (insert_bp_location): If inserting the read
46 watchpoint failed, fallback to an access watchpoint.
47 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
48 if the value changed, if not watching the same memory for writes.
49 (watchpoint_locations_match): Add comment.
50 (update_global_location_list): Copy the location's watchpoint type.
51 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
52 handle read watchpoints here.
53 (i386_insert_watchpoint): Read watchpoints aren't supported.
54 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
55 packets.
56 * target.h (target_insert_watchpoint): Update description.
57
48ea67a7
TT
582010-02-19 Tom Tromey <tromey@redhat.com>
59
60 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
61 * m2-typeprint.c (m2_print_type): Update.
62 * gdbtypes.c (recursive_dump_type): Update.
63 (copy_type_recursive): Update.
64 * c-typeprint.c (c_type_print_varspec_prefix): Update.
65 (c_type_print_base): Update.
66 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
67 Remove.
68 (struct cplus_struct_type) <ntemplate_args>: Remove.
69 <struct template_arg>: Remove.
70 <is_dynamic>: Move earlier.
71 (TYPE_TEMPLATE_ARGS): Remove.
72 (TYPE_NTEMPLATE_ARGS): Remove.
73 (TYPE_TEMPLATE_ARG): Remove.
74
48e32051
TT
752010-02-19 Tom Tromey <tromey@redhat.com>
76
77 PR c++/8693, PR c++/9496:
78 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
79 * c-exp.y (lex_one_token): Rename from yylex. Don't call
80 write_dollar_variable. Don't try to classify NAME tokens.
81 (token_and_value): New type.
82 (token_fifo, popping, name_obstack): New globals.
83 (classify_name): New function.
84 (classify_inner_name): Likewise.
85 (yylex): Likewise.
86 (VARIABLE): Now has type sval.
87 (exp : VARIABLE): Call write_dollar_variable.
88 (qualified_name): Use TYPENAME, not typebase. Add production for
89 multiple "::" instances.
90 (variable): Use name_not_typename.
91 (qualified_type): Remove.
92 (typebase): Update.
93
672d9c23
JK
942010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
95
96 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
97 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
98 found by bfd_get_section_by_name.
99 * symfile.h (struct section_addr_info) <sectindex>: New comment.
100
bfbf3774
JB
1012010-02-19 Joel Brobecker <brobecker@adacore.com>
102
103 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
104 7.0 section" into "Changes in 7.1".
105
6756b09b 1062010-02-19 Joel Brobecker <brobecker@adacore.com>
107
108 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
109 * version.in: Bump version to 7.1.50.20100219-cvs.
110
202b96c1
PA
1112010-02-18 Harald Koenig <H.Koenig@science-computing.de>
112
113 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
114 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
115
de2e5182
TT
1162010-02-17 Tom Tromey <tromey@redhat.com>
117
118 * NEWS: Add Python API Improvements section.
119
7280022e
DJ
1202010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
121
122 * NEWS: Correct typo.
123
6f451e5e
TT
1242010-02-17 Tom Tromey <tromey@redhat.com>
125
126 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
127
012836ea
JK
1282010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
129
130 * symfile.c (build_section_addr_info_from_objfile): Include sections
131 only if they are SEC_ALLOC or SEC_LOAD.
132
d182d057
L
1332010-02-17 H.J. Lu <hongjiu.lu@intel.com>
134
135 PR shlibs/11293
136 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
137 of ULONGEST for address size.
138
4eef138c
TT
1392010-02-17 Tom Tromey <tromey@redhat.com>
140
141 * NEWS: Add C++ improvements section.
142
548a926a
UW
1432010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
144
145 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
146 PyThreadState_Swap): Avoid "statement with no effect" warning.
147
ad3a0e5b
JK
1482010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
149
150 * solib-svr4.c (enable_break <target_auxv_search>): New variable
151 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
152
243e2c5d
TG
1532010-02-17 Tristan Gingold <gingold@adacore.com>
154 Petr Hluzín <petr.hluzin@gmail.com>
155
156 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
157 gdb_assert. Fix info->size for SIG prologue.
158
275f2e57
DJ
1592010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
160
161 * infcmd.c (show_inferior_tty_command): Check for NULL.
162 Correct output message.
163
791dfb64
DJ
1642010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
165
166 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
167 FUNCTION contains parentheses. Improve removal of a trailing
168 single quote.
169
14d1346b
DJ
1702010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
171
172 * gcore.c (do_bfd_delete_cleanup): New function.
173 (gcore_command): Use it. Discard the cleanup after success.
174 (gcore_copy_callback): Delete dead code.
175
e76ab67f
DJ
1762010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
177
178 * symfile.c (addr_info_make_relative): Always use
179 find_lowest_section.
180
71dee663
SW
1812010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
182
183 * NEWS: Added entry for namespace fixes.
184
a9854bd5
TT
1852010-02-15 Tom Tromey <tromey@redhat.com>
186
187 * dwarf2read.c (guess_structure_name): Allocate name on the
188 objfile obstack.
189
fd9e29b5
TT
1902010-02-15 Tom Tromey <tromey@redhat.com>
191
192 * c-typeprint.c (c_type_print_base): Reverse order of test.
193
4e1fc9c9
JK
1942010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
195
196 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
197 initialize it from ELF BFD. Extend the prelink condition by it.
198
74164c56
JK
1992010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
200
201 * defs.h (parse_pid_to_attach): New.
202 * utils.c (parse_pid_to_attach): New.
203 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
204 * gnu-nat.c (gnu_attach): Likewise.
205 * nto-procfs.c (procfs_attach): Likewise.
206 * procfs.c (procfs_attach): Likewise.
207 * windows-nat.c (windows_attach): Likewise.
208 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
209 * inf-ttrace.c (inf_ttrace_attach): Likewise.
210 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
211 check.
212
bf6adea8
MM
2132010-02-14 Masaki Muranaka <monaka@monami-software.com>
214
215 * MAINTAINERS: Add myself for write after approval privileges.
216
28f34a8f
JK
2172010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
218
219 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
220 block.
221
701ed6dc
JK
2222010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
223
224 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
225 only if INFO_VERBOSE.
226
e5829bee
MS
2272010-02-12 Tomas Holmberg <th@virtutech.com>
228
229 * mi/mi-main.c: Added the --reverse flag to the following MI
230 commands: exec-continue, exec-finish, exec-next, exec-step,
231 exec-next-instruction, exec-step-instruction. This is to
232 support reverse execution over the MI interface to gdb.
233
081dfbf7
PA
2342010-02-12 Pedro Alves <pedro@codesourcery.com>
235
236 * tracepoint.c (_initialize_tracepoint): Specify that the address
237 range of `tfind outsize' is exclusive, and that the address range
238 of `tfind range' is inclusive, in the commands' help strings.
239
ecc13e53
JB
2402010-02-12 Joel Brobecker <brobecker@adacore.com>
241
242 Spurious "dll not found" error messages on x64-windows.
243 * windows-nat.c: Add include of complaints.h.
244 (handle_unload_dll): Change dll-not-found error into a complaint.
245
15c3d785
PA
2462010-02-12 Pedro Alves <pedro@codesourcery.com>
247
248 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
249 bp_tracepoint and bp_fast_tracepoint, not
250 bp_loc_software_breakpoint.
251 (update_global_location_list): Tracepoints are never duplicates of
252 anything.
253
fd9b8c24
PA
2542010-02-12 Pedro Alves <pedro@codesourcery.com>
255
256 * breakpoint.c (break_command_really): Change return type to int.
257 Return false if no breakpoint was created, true otherwise.
258 (trace_command): Don't set the tracepoint count if no tracepoint
259 was created.
260 (ftrace_command): Ditto.
261 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
262 created in the breakpoints table.
263
5c0d192f
JK
2642010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
265 Ulrich Weigand <uweigand@de.ibm.com>
266
267 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
268
5d5b640e
PA
2692010-02-11 Pedro Alves <pedro@codesourcery.com>
270
271 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
272 the offset value isn't of integral type.
273
e5a0a904
JK
2742010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
275
276 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
277 New.
278
be636754
PA
2792010-02-11 Pedro Alves <pedro@codesourcery.com>
280
281 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
282 non-subscriptable types.
283 * valarith.c (binop_types_user_defined_p): New, abstracted out
284 from ...
285 (binop_user_defined_p): ... this.
286 * value.h (binop_types_user_defined_p): Declare.
287
10ef8d6a
PA
2882010-02-11 Pedro Alves <pedro@codesourcery.com>
289
290 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
291 Merge uploaded TSVs before merging uploaded tracepoints.
292
b1028c8e
PA
2932010-02-11 Pedro Alves <pedro@codesourcery.com>
294
295 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
296
7a93fb82 2972010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 298
7a93fb82
VP
299 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
300 whitespace character after a dot in comment.
301 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
302 Likewise.
303 (list_args_or_locals): For the 'all' (that is
304 -stack-list-variables) case, always output list of tuples.
305 Output 'arg' field if variable is argument.
84d90c10 306
92981e24
TT
3072010-02-10 Tom Tromey <tromey@redhat.com>
308
309 * parser-defs.h (parser_debug): Declare.
310 * parse.c (_initialize_parse): Install "debug parser" set/show
311 command.
312 (parser_debug): New global.
313 (show_parserdebug): New function.
314 * c-exp.y (c_parse): Set yydebug.
315
9fd3625f
L
3162010-02-10 H.J. Lu <hongjiu.lu@intel.com>
317
318 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
319 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
320 (tdesc_predefined_types): Add i387_ext, i386_eflags and
321 i386_mxcsr.
322 (tdesc_find_type): New.
323 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
324 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
325
326 * target-descriptions.h (tdesc_find_type): New.
327
2fe842e5
MS
3282010-02-10 Michael Snyder <msnyder@vmware.com>
329
330 * gdb-gdb.py: Comment fix.
331
f18b4cab
TG
3322010-02-09 Tristan Gingold <gingold@adacore.com>
333
334 * machoread.c (macho_symfile_relocate): New function.
335 (macho_sym_fns): Use macho_symfile_relocate instead of
336 default_symfile_relocate.
337 (macho_oso_data): New type.
338 (current_oso): New variable.
339 (macho_add_oso_symfile): Do not compute section_addr_info, but
340 instead set vma of sections.
341 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
342 Set and clear current_oso.
343
31dbc1c5
JB
3442010-02-09 Joel Brobecker <brobecker@adacore.com>
345
346 Wrong type description for tagged type parameter.
347 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
348 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
349 reference to a tagged type.
350
399f313b
TG
3512010-02-09 Tristan Gingold <gingold@adacore.com>
352
353 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
354 brothers of the parent.
355
714f19d5
TT
3562010-02-08 Tom Tromey <tromey@redhat.com>
357
358 PR c++/8017:
359 * value.h: Update.
360 * valops.c (search_struct_field): Make 'name' const.
361 (search_struct_method): Likewise.
362 (find_method_list): Make 'method' const.
363 (value_struct_elt): Make 'name' and 'err' const.
364 (value_find_oload_method_list): Make 'method' const.
365 (find_overload_match): Make 'name' const.
366 * eval.c (evaluate_subexp_standard): New locals function,
367 function_name.
368 <OP_FUNCALL>: Handle OP_SCOPE specially.
369
de0a0249
UW
3702010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
371
372 * infrun.c (handle_inferior_event): Do not look up regcache
373 for exited processes.
374
83b10087
CM
375Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
376
377 PR gdb/10728
378 * valarith.c (value_ptrdiff): Added a test for a zero type length,
379 warn if found, and assume length = 1.
380
99903ae3
CM
3812010-02-08 Chris Moller <cmoller@redhat.com>
382
383 PR gdb/9067
384 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
385 cp_print_static_field) Fix use of obstacks.
386
e3e9f5a2
PA
3872010-02-08 Pedro Alves <pedro@codesourcery.com>
388
389 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
390 resumed LWPs as resumed.
391 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
392 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
393 of throwing an internal error. If an LWP of a process we're not
394 waiting for reports a signal, don't force collecting a SIGSTOP,
395 and if it was breakpoint hit in non-stop mode, cancel it. Don't
396 go through all LWPs cancelling breakpoints in non-stop mode.
397 (resume_stopped_resumed_lwps): New.
398 (linux_nat_wait): Use it.
399
46763423
L
4002010-02-07 H.J. Lu <hongjiu.lu@intel.com>
401
402 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
403 i386/amd64 and i386/amd64-linux.
404 (i386/i386-expedite): New.
405 (i386/i386-linux-expedite): Likewise.
406 (i386/amd64-expedite):Likewise.
407 (i386/amd64-linux-expedite): Likewise.
408 ($(outdir)/i386/i386-linux.dat): Likewise.
409 ($(outdir)/i386/amd64.dat): Likewise.
410 ($(outdir)/i386/amd64-linux.dat): Likewise.
411
412 * features/i386/32bit-core.xml: New.
413 * features/i386/32bit-linux.xml: Likewise.
414 * features/i386/32bit-sse.xml: Likewise.
415 * features/i386/64bit-core.xml: Likewise.
416 * features/i386/64bit-linux.xml: Likewise.
417 * features/i386/64bit-sse.xml: Likewise.
418 * features/i386/i386-linux.xml: Likewise.
419 * features/i386/i386.xml: Likewise.
420 * features/i386/amd64-linux.xml: Likewise.
421 * features/i386/amd64.xml: Likewise.
422 * features/i386/i386-linux.c: Likewise.
423 * features/i386/i386.c: Likewise.
424 * features/i386/amd64-linux.c: Likewise.
425 * features/i386/amd64.c: Likewise.
426
82856980
SW
4272010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
428
429 PR c++/7935:
430 * cp-support.h: Added char* alias element to using_direct data
431 struct.
432 (cp_add_using): Added char* alias argument.
433 (cp_add_using_directive): Ditto.
434 * cp-namespace.c: Updated with the above changes.
435 (cp_lookup_symbol_imports): Check for aliases.
436 * dwarf2read.c (read_import_statement): Figure out local alias
437 for the import and pass it on to cp_add_using.
438 (read_namespace): Pass alias argument to cp_add_using.
439
d18b8b7a
HZ
4402010-02-05 Hui Zhu <teawater@gmail.com>
441
442 * defs.h (gdb_bfd_errmsg): New extern.
443 * exec.c (exec_file_attach): Change bfd_errmsg to
444 gdb_bfd_errmsg.
445 * utils.c (AMBIGUOUS_MESS1): New macro.
446 (AMBIGUOUS_MESS2): New macro.
447 (gdb_bfd_errmsg): New function.
448
48379de6
DE
4492010-02-04 Doug Evans <dje@google.com>
450
451 * solib-svr4.c (enable_break): Add comment.
452
4ee73e90
AG
4532010-02-04 Anthony Green <green@moxielogic.com>
454
455 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
456 gracefully.
457
1a334831
TT
4582010-02-04 Tom Tromey <tromey@redhat.com>
459
460 * valops.c (search_struct_field): Account for
461 value_embedded_offset. Fix check for virtual base past the end of
462 the object. Use value_copy when making a slice of the value.
463
1180b2c8
L
4642010-02-04 H.J. Lu <hongjiu.lu@intel.com>
465
466 PR tui/9622
467 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
468 only if gdb_stdout is a tty.
469
c3f08eb7
L
4702010-02-04 H.J. Lu <hongjiu.lu@intel.com>
471
472 * target-descriptions.c: Include "osabi.h".
473 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
474 OSABI.
475
2d33f7b8
TG
4762010-02-04 Tristan Gingold <gingold@adacore.com>
477
478 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
479 (macho_symtab_read): Adjust calls to macho_add_oso.
480 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
481 (macho_symfile_read): Adjust call to macho_oso_symfile.
482 (macho_new_init): Move this function after declarations.
483 (macho_symfile_init): Ditto.
484 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
485 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
486
11334b82
VP
4872010-02-04 Vladimir Prus <vladimir@codesourcery.com>
488
489 Include MI command in remotelog.
490
491 * mi/mi-main.c (mi_execute_command): Call target_log_command.
492
ff97be06
L
4932010-02-03 H.J. Lu <hongjiu.lu@intel.com>
494
495 * remote.c (remote_state): Remove gdbarch.
496 (init_remote_state): Don't set gdbarch.
497 (remote_query_supported): Pass target_gdbarch instead of
498 rs->gdbarch to gdbarch_qsupported.
499
75cebea9
L
5002010-02-03 H.J. Lu <hongjiu.lu@intel.com>
501
502 * gdbarch.sh: Add qsupported.
503
504 * gdbarch.c: Regenerated.
505 * gdbarch.h: Likewise.
506
507 * remote.c (remote_state): Add gdbarch.
508 (init_remote_state): Set gdbarch.
509 (remote_query_supported): Support gdbarch_qsupported.
510
c1dec97b
DJ
5112010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
512
513 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
514 __FreeBSD_kernel_version.
515
ac8035ab
TG
5162010-02-03 Tristan Gingold <gingold@adacore.com>
517
518 * symfile.h (struct sym_fns): Add sym_relocate field.
519 (default_symfile_relocate): New prototype.
520 (symfile_relocate_debug_section): First argument is now an objfile.
521 * symfile.c (default_symfile_relocate): Rename from
522 symfile_relocate_debug_section, first argument is now an objfile.
523 (symfile_relocate_debug_section): New function.
524 * coffread.c (coff_sym_fns): Set sym_relocate field.
525 * somread.c (som_sym_fns): Ditto.
526 * mipsread.c (ecoff_sym_fns): Ditto.
527 * machoread.c (macho_sym_fns): Ditto.
528 * elfread.c (elf_sym_fns): Ditto.
529 * dwarf2read.c (dwarf2_read_section): Ditto.
530 * xcoffread.c (xcoff_sym_fns): Ditto.
531 * dbxread.c (aout_sym_fns): Ditto.
532 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
533 (elfstab_build_psymtabs): Ditto.
534
be52b756
L
5352010-02-03 H.J. Lu <hongjiu.lu@intel.com>
536
537 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
538
9c3c02fd
TT
5392010-02-02 Tom Tromey <tromey@redhat.com>
540
541 * valops.c (value_cast_structs): Try downcasting using the RTTI
542 type.
543
f23f4c59
TT
5442010-02-02 Tom Tromey <tromey@redhat.com>
545
546 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
547 (gnuv2_baseclass_offset): Now static.
548 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
549 * gnu-v2-abi.h: Remove.
550
0cc2414c
TT
5512010-02-02 Tom Tromey <tromey@redhat.com>
552
553 * m2-typeprint.c (m2_record_fields): Don't use
554 TYPE_DECLARED_TYPE.
555 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
556 (struct main_type) <flag_declared_class>: New field.
557 (struct cplus_struct_type) <declared_type>: Remove.
558 <ntemplate_args>: Move earlier.
559 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
560 (DECLARED_TYPE_TEMPLATE): Remove.
561 (TYPE_DECLARED_TYPE): Remove.
562 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
563 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
564 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
565 TYPE_DECLARED_TYPE.
566
edf3d5f3
TT
5672010-02-02 Tom Tromey <tromey@redhat.com>
568
569 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
570 * valops.c (search_struct_field): Compute nbases after calling
571 CHECK_TYPEDEF.
572 (check_field): Call CHECK_TYPEDEF.
573 * cp-valprint.c (cp_print_value): Pass correct address to
574 baseclass_offset. Fix check for virtual base past the end of the
575 object. Don't offset address passed to cp_print_value_fields or
576 apply_val_pretty_printer.
577 (cp_print_value_fields): Fix call to val_print.
578 (cp_print_value_fields_rtti): New function.
579 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
580 * p-valprint.c (pascal_object_print_value_fields): Fix call to
581 val_print.
582 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
583 offset to address.
584 * language.h (struct language_defn) <la_val_print>: Document.
585 * c-lang.h (cp_print_value_fields_rtti): Declare.
586
e4b7f41c
JK
5872010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
588
589 PR libc/11214:
590 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
591 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
592 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
593
7618e12b
DJ
5942010-02-01 Michael Matz <matz@suse.de>
595 Daniel Jacobowitz <dan@codesourcery.com>
596
e4b7f41c 597 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
598 functions use a frame pointer.
599
b381ea14
JK
6002010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
601
602 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
603 by a conditional setting DYN_ADDR. Use DYN_ADDR.
604 * config/djgpp/fnchange.lst: Add translations for
605 symbol-without-target_section.exp and symbol-without-target_section.c.
606
0e05dfcb
DJ
6072010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
608
609 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
610 (remote_breakpoint_for_pc): Correct invalid_p check.
611 * gdbarch.c: Regenerated.
612
f9d67f43
DJ
6132010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
614
615 * arm-tdep.c (arm_find_mapping_symbol): New function, from
616 arm_pc_is_thumb.
617 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
618 (extend_buffer_earlier): New function.
619 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
620 (arm_adjust_breakpoint_address): New function.
621 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
622
177321bd
DJ
6232010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
624
625 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
626 (arm_linux_thumb2_le_breakpoint): New constants.
627 (arm_linux_init_abi): Set thumb2_breakpoint and
628 thumb2_breakpoint_size.
629 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
630 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
631 Implement support for single stepping through IT blocks if
632 a 32-bit Thumb breakpoint instruction is available.
633 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
634 is available, use it when needed.
635 (arm_remote_breakpoint_from_pc): New function.
636 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
637 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
638 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
639
a1dcb23a
DJ
6402010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
641
642 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
643 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
644 * gdbarch.c, gdbarch.h: Regenerated.
645 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
646 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
647 gdbarch_remote_breakpoint_from_pc.
648
2b009048
DJ
6492010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
650
651 * infrun.c (prepare_to_proceed): Handle other signals which might
652 match a breakpoint.
653 (handle_inferior_event): Move the check for unusual breakpoint
654 signals earlier.
655
e4e2711a
JB
6562010-01-29 Paul Hilfinger <hilfinger@adacore.com>
657
658 amd64 - function returning record with field straddling 2 registers.
659 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
660 a record of length <= 16 in which a field straddles the two
661 eightbytes.
662
cba6fab5
JB
6632010-01-29 Joel Brobecker <brobecker@adacore.com>
664
665 Implement return values on amd64-windows.
666 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
667 (amd64_windows_return_value): New function.
668 (amd64_windows_init_abi): Call set_gdbarch_return_value with
669 amd64_windows_return_value.
670
3af6ddfe
JB
6712010-01-29 Joel Brobecker <brobecker@adacore.com>
672
673 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 674 parameter registers.
3af6ddfe
JB
675 * i386-tdep.h (struct gdbarch_tdep): Add new field
676 integer_param_regs_saved_in_caller_frame.
677 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
678 tdep->integer_param_regs_saved_in_caller_frame to 1.
679 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
680 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
681
80d19a06
JB
6822010-01-29 Joel Brobecker <brobecker@adacore.com>
683
684 amd64-windows: memory args passed by pointer during function calls.
685 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
686 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
687 where tdep->memory_args_by_pointer is non-zero.
688 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
689 tdep->memory_args_by_pointer to 1.
690
ba581dc1
JB
6912010-01-29 Joel Brobecker <brobecker@adacore.com>
692
4966b6c2 693 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
694 * i386-tdep.h (enum amd64_reg_class): New, moved here from
695 amd64-tdep.c.
696 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
697 call_dummy_integer_regs, and classify.
698 * amd64-tdep.h (amd64_classify): Add declaration.
699 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
700 (amd64_reg_class): Delete, moved to i386-tdep.h.
701 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
702 Replace call to amd64_classify by call to tdep->classify.
703 (amd64_push_arguments): Get the list of registers to use for
704 passing integer parameters from the gdbarch tdep structure,
705 rather than using a hardcoded one. Replace calls to amd64_classify
706 by calls to tdep->classify.
707 (amd64_push_dummy_call): Get the register number used for
708 the "hidden" argument from tdep->call_dummy_integer_regs.
709 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
710 and tdep->call_dummy_integer_regs. Set tdep->classify.
711 * amd64-windows-tdep.c: Add include of gdbtypes.h.
712 (amd64_windows_dummy_call_integer_regs): New static global.
713 (amd64_windows_classify): New function.
714 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
715 tdep->call_dummy_integer_regs and tdep->classify.
716
d37346f0
DJ
7172010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
718
719 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
720 for the new regcache. All callers updated.
721 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
722 (get_thread_arch_regcache): Do not set aspace here.
723 * regcache.h (regcache_xmalloc): Update declaration.
724
725 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
726 regcache_xmalloc updated.
727
7434dadd
JB
7282010-01-28 Joel Brobecker <brobecker@adacore.com>
729
730 Another -Wunused-function error in procfs.c (sparc-solaris)
731 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
732 Only define if SYS_syssgi is defined.
733 (remove_dbx_link_breakpoint): Delete declaration. Move up.
734 (dbx_link_addr, insert_dbx_link_bpt_in_file)
735 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
736 is itself defined.
737
16d905e2
CF
7382010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
739
740 * windows-nat.c (windows_initialization_done): New variable.
741 (get_windows_debug_event): Issue error when process dies before
742 completely initializing.
743 (do_initial_windows_stuff): Set flag to indicate when we are done with
744 the initial steps of attaching to the child.
745
cd55e50f
JK
7462010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
747
748 * symtab.h (struct symbol <symtab>): New comment on NULL values.
749
99cc78aa
DE
7502010-01-27 Doug Evans <dje@google.com>
751
4c7dcb84
DE
752 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
753
99cc78aa
DE
754 * breakpoint.c (bpstat_stop_status): Delete useless code.
755
52334bf5
JK
7562010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
757
758 * printcmd.c (display_uses_solib_p): Remove variable section. Access
759 objfile via SYMBOL_SYMTAB.
760
708ead4e
TT
7612010-01-26 Tom Tromey <tromey@redhat.com>
762
763 PR exp/7643:
764 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
765 coerce_array on result.
766
b14e635e
SW
7672010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
768
769 * cp-namespace.c (cp_lookup_symbol_namespace): Added
770 search_parent argument.
771 (cp_add_using): Initialize 'searched' field.
772 (reset_directive_searched): New function.
773 * cp-support.h: Add 'searched' field to using_direct struct.
774 (cp_lookup_symbol_imports): Ditto.
775 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
776 Perform recursive search.
777 Implement non parent search.
778 * valops.c (value_maybe_namespace_elt): Updated.
779
8540c487
SW
7802010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
781
782 PR gdb/10929:
783 * dwarf2read.c (read_lexical_block_scope): Create blocks for
784 scopes which contain using directives even if they contain no
785 declarations.
786 * symtab.c (lookup_symbol_aux): Pass lowest level block to
787 la_lookup_symbol_nonlocal.
788 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
789 cp_lookup_symbol_namespace.
790 (cp_lookup_symbol_namespace): Perform an import lookup at every
791 block level.
792 (cp_lookup_symbol_imports): New function.
793 (cp_lookup_symbol_in_namespace): New function.
794
421d5d99
TT
7952010-01-25 Tom Tromey <tromey@redhat.com>
796
797 PR gdb/11049:
798 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
799 result.
800
6bcc772d
RO
8012010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
802
803 * configure.ac: Only use host_os part when disabling TUI on osf.
804 Use test to check variables, prefix strings with x.
805 * configure: Regenerate.
806
807 * solib-osf.c (osf_current_sos): Initialize tail.
808
1c1238a5
TG
8092010-01-25 gingold <gingold@adacore.com>
810
811 * windows-nat.c (windows_continue): Use %x to print thread id.
812 (get_windows_debug_event): Ditto.
813
0b92b5bb
TT
8142010-01-22 Tom Tromey <tromey@redhat.com>
815
816 PR symtab/11199:
817 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
818 type and arguments. Use smash_to_methodptr_type.
819 (read_structure_type): Call quirk_gcc_member_function_pointer
820 later.
821 * gdbtypes.h (smash_to_methodptr_type): Declare.
822 * gdbtypes.c (smash_to_methodptr_type): New function.
823 (lookup_methodptr_type): Use it.
824
0d5392b8
TT
8252010-01-21 Tom Tromey <tromey@redhat.com>
826
827 PR symtab/11198:
828 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
829 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
830 * glibc-tdep.c (find_minsym_and_objfile): Remove.
831 (glibc_skip_solib_resolver): Use
832 lookup_minimal_symbol_and_objfile.
833
e6d088ec
KT
8342010-01-21 Kai Tietz <kai.tietz@onevision.com>
835
836 * inflow.c (check_syscall): Guard by #if clause for GO32 and
837 WIN32 targets.
838
b966cb8a
TT
8392010-01-20 Tom Tromey <tromey@redhat.com>
840
841 PR backtrace/10770:
842 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
843 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
844 * dwarf2expr.c (new_dwarf_expr_context): Allocate
845 dwarf_stack_values, not CORE_ADDRs.
846 (execute_stack_op): Change DW_OP_div and comparison operators to
847 use signed operands.
848
3f81c18a
VP
8492010-01-20 Vladimir Prus <vladimir@codesourcery.com>
850
851 Per-inferior args and tty and environment.
852
853 * infcmd.c (inferior_args): Rename to ...
854 (inferior_args_scratch): ... this.
855 (inferior_io_terminal): Rename to ...
856 (inferior_io_terminal_scratch): ... this.
857 (inferior_argc, inferior_argv): Remove.
858 (set_inferior_io_terminal, get_inferior_io_terminal): Store
859 inside current_inferior().
860 (set_inferior_tty_command, show_inferior_tty_command): New.
861 (get_inferior_args, set_inferior_args): Store inside
862 current_inferior().
863 (notice_args_set): Likewise and rename to...
864 (set_args_command): ... this.
865 (set_inferior_args_vector): Likewise.
866 (notice_args_read): Rename to...
867 (show_args_command): ...new.
868 (tty_command): Remove.
869 (run_command_1): Don't free old args, as they are freed by
870 set_inferior_arg now.
871 (run_no_args_command): Likewise.
872 (inferior_environ): Remove.
873 (run_command_1): Use environment of the current inferior.
874 (environment_info, set_environment_command)
875 (unset_environment_command, path_info, path_command): Likewise.
876 (_initialize_infcmd): Adjust for function and variable renames.
877 Do not init inferior_environ.
878 * inferior.h (set_inferior_arg): Adjust prototype.
879 (struct inferior): New fields args, argc, argv, terminal, environment.
880 (inferior_environ): Remove declaration.
881 * inferior.c (free_inferior): Free new fields.
882 (add_inferior_silent): Initialize 'environment' field.
883 * main.c (captured_main): Set arguments only after the initial
884 inferior has been created. Set set_inferior_io_terminal,
885 not tty_command.
886 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
887 inferior.
888 (_initialize_mi_cmd_env): Adjust for disappearance of global
889 inferior_environ.
890 * solib.c (solib_find): Use environment of the current inferior.
891
d8b65138
JK
8922010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
893
894 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
895 HAVE_PYTHON.
896 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
897
692465f1
JB
8982010-01-20 Joel Brobecker <brobecker@adacore.com>
899
900 Get rid of ada-lang.c:function_name_from_pc.
901 * ada-lang.c: Add "stack.h" #include.
902 (function_name_from_pc): Delete.
903 (is_known_support_routine): Replace call to function_name_from_pc
904 by call to find_frame_funname.
905 (ada_unhandled_exception_name_addr_from_raise): Likewise.
906
95519e0e
TT
9072010-01-19 Tom Tromey <tromey@redhat.com>
908
909 PR c++/11026:
910 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
911 objfile obstack.
912
95c11dc7
TT
9132010-01-19 Tom Tromey <tromey@redhat.com>
914
915 * top.c (stop_sig, float_handler, do_nothing): Remove.
916
a0f49112
JK
9172010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
918
919 * breakpoint.c (watchpoint_check): Check the call
920 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
921 Extend the comment.
922 * config/djgpp/fnchange.lst: Add translations for
923 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
924 watchpoint-cond-gone-stripped.c.
925
ceeb3d5a
TT
9262010-01-19 Tom Tromey <tromey@redhat.com>
927
928 PR c++/8000:
929 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
930 into parent scope, and enumerator into grandparent scope.
931
2b71fc8e
JB
9322010-01-19 Joel Brobecker <brobecker@adacore.com>
933
934 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
935
03564ed9
JB
9362010-01-19 Joel Brobecker <brobecker@adacore.com>
937
938 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
939 i[34567]86-*-solaris2.1[0-9]*.
940 * configure.tgt: Likewise.
941
fb2e7cb4
JB
9422010-01-19 Joel Brobecker <brobecker@adacore.com>
943
944 * NEWS: Document the source command enhancement allowing it
945 to load Python scripts. Document the "set/show script-extension"
946 commands.
947
1cb5e2a4
JB
9482010-01-19 Joel Brobecker <brobecker@adacore.com>
949
950 Add -Wunused-function to compile flags.
951 * configure.ac: Add -Wunused-function to build_warnings.
952 * configure: Regenerate.
953
0ec6cd0c
JB
9542010-01-19 Joel Brobecker <brobecker@adacore.com>
955
956 "delete" ada-lex.c:input function, not used.
957 * ada-lex.l: #define YY_NO_INPUT.
958
b74845da
JB
9592010-01-19 Joel Brobecker <brobecker@adacore.com>
960
961 Delete free_named_symtabs and associated cleanup.
962 * symfile.h (free_named_symtabs): Delete declaration.
963 * symfile.c: Remove some commented out code (clear_symtab_users_once).
964 (cashier_psymtab): Comment function out.
965 Delete declaration.
966 (free_named_symtabs): Delete.
967 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
968 * dbxread.c (end_psymtab): Likewise.
969 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
970 * exec.c (exec_close_1): Ditto.
971 * xcoffread.c (xcoff_end_psymtab): Likewise.
972
65c06092
JB
9732010-01-19 Joel Brobecker <brobecker@adacore.com>
974
975 * stack.c (print_block_frame_labels): Comment function out.
976
d5cd6034
JB
9772010-01-19 Joel Brobecker <brobecker@adacore.com>
978
979 Delete unused or undefined functions.
980 * breakpoint.c (ep_parse_optional_filename): Delete.
981 * dcache.c (dcache_write_line): Remove declaration.
982 * infrun.c (build_infrun): Remove declaration.
983 * tracepoint.c (tracepoint_save_command): Remove declaration.
984 * linux-nat.c (init_lwp_list): Delete. No longer used.
985 * event-loop.c (check_async_signal_handlers): Delete declaration.
986 * infrun.c (init_execution_control_state): Delete.
987 (proceed): Update comment to avoid mentioning
988 init_execution_control_state.
989 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
990 * ada-lang.c (ada_to_static_fixed_value): Delete.
991 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
992 * cp-namespace.c (cp_copy_usings): Delete.
993 * xml-syscall.c (xml_number_of_syscalls): Delete.
994 * progspace.c (find_program_space_by_num): Delete.
995 * inflow.c (handle_sigio): Delete declaration.
996 * hppa-tdep.c (hppa_alignof): Delete.
997 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
998 (mipsnbsd_core_osabi_sniffer): Delete.
999
4e8f195d
TT
10002010-01-18 Tom Tromey <tromey@redhat.com>
1001
1002 PR c++/9680:
1003 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
1004 (CONST_CAST): New tokens.
1005 (exp): Add new productions.
1006 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
1007 reinterpret_cast.
1008 (is_cast_operator): New function.
1009 (yylex): Handle cast operators specially.
1010 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
1011 UNOP_REINTERPRET_CAST>: New cases.
1012 * expprint.c (print_subexp_standard): Likewise.
1013 (op_name_standard): Likewise.
1014 (dump_subexp_body_standard): Likewise.
1015 * parse.c (operator_length_standard): Likewise.
1016 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
1017 UNOP_REINTERPRET_CAST.
1018 * gdbtypes.c (class_types_same_p): New function.
1019 (is_ancestor): Use it.
1020 (is_public_ancestor): New function.
1021 (is_unique_ancestor_worker): Likewise.
1022 (is_unique_ancestor): Likewise.
1023 * gdbtypes.h (class_types_same_p, is_public_ancestor)
1024 (is_unique_ancestor): Declare.
1025 * valops.c (value_reinterpret_cast): New function.
1026 (dynamic_cast_check_1): Likewise.
1027 (dynamic_cast_check_2): Likewise.
1028 (value_dynamic_cast): Likewise.
1029 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
1030
d9c57d9f
JB
10312010-01-18 Joel Brobecker <brobecker@adacore.com>
1032
1033 Fix build failure when building without Python support.
1034 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
1035 is not defined.
1036
f80d3ff2
JB
10372010-01-18 Joel Brobecker <brobecker@adacore.com>
1038
1039 Use XVS field type instead of doing a parallel lookup.
1040 * ada-lang.c (ada_get_base_type): Follow the XVS field type
1041 if it is a reference type instead of doing a type lookup using
1042 the XVS field name.
1043
5bf03f13
JB
10442010-01-18 Joel Brobecker <brobecker@adacore.com>
1045
1046 Trust PAD types instead of using PAD___XVS.
1047 * ada-lang.c (trust_pad_over_xvs): New static variable.
1048 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
1049 parallel XVS type, follow the XVS type instead of the PAD type.
1050 (unwrap_value): Make sure that there is no parallel XVE type
1051 before returning the value as is.
1052 (set_ada_list, show_ada_list): New static variables.
1053 (set_ada_command, show_ada_command): New functions.
1054 (_initialize_ada_language): Add new "set/show ada" prefix commands.
1055 Add new "set/show ada trust-PAD-over-XVS" setting.
1056
973817a3
JB
10572010-01-18 Tom Tromey <tromey@redhat.com>
1058 Thiago Jung Bauermann <bauerman@br.ibm.com>
1059
1060 Allow "source" to load python scripts.
1061 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
1062 * python/python.c (source_python_script): New function.
1063 * python/python.h (source_python_script): Add declaration.
1064 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
1065 (script_ext_off, script_ext_soft, script_ext_strict)
1066 (script_ext_enums, script_ext_mode): New static constants.
1067 (show_script_ext_mode, find_and_open_script): New functions.
1068 (source_script): Enhance to handle Python scripts.
1069 (init_cli_cmds): Add set/show script-extension commands.
1070
98e03262
SS
10712010-01-16 Stan Shebs <stan@codesourcery.com>
1072
1073 * tracepoint.h (struct trace_status): Use unsigned long long
1074 instead of size_t.
1075 * tracepoint.c (trace_status_command): Fix printf directive.
1076 (trace_save_command): Check fwrite returns, fix printf directive.
1077 (trace_filename): New global.
1078 (tfile_open): Set it, check read returns.
1079 (tfile_close): Free trace_filename.
1080 (tfile_get_traceframe_address): Check read returns.
1081 (tfile_trace_find): Ditto.
1082 (tfile_fetch_registers): Ditto.
1083 (tfile_xfer_partial): Ditto.
1084 (tfile_get_trace_state_variable_value): Ditto.
1085
00bf0b85
SS
10862010-01-15 Stan Shebs <stan@codesourcery.com>
1087
1088 Add trace file support.
1089 * tracepoint.h (enum trace_stop_reason): New enum.
1090 (struct trace_status): New struct.
1091 (parse_trace_status): Declare.
1092 (struct uploaded_tp): Move here from remote.c,
1093 add fields for actions.
1094 (struct uploaded_tsv): New struct.
1095 * tracepoint.c (tfile_ops): New target vector.
1096 (trace_fd): New global.
1097 (tfile_open): New function.
1098 (tfile_close): New function.
1099 (tfile_files_info): New function.
1100 (tfile_get_trace_status): New function.
1101 (tfile_get_traceframe_address): New function.
1102 (tfile_trace_find): New function.
1103 (tfile_fetch_registers): New function.
1104 (tfile_xfer_partial): New function.
1105 (tfile_get_trace_state_variable_value): New function.
1106 (init_tfile_ops): New function.
1107 (_initialize_tracepoint): Call it, add tfile target.
1108 (trace_status): New global.
1109 (current_trace_status): New function.
1110 (trace_running_p): Remove, change all users to get from
1111 current_trace_status()->running.
1112 (get_trace_status): Remove.
1113 (trace_status_command): Call target_get_trace_status directly,
1114 report more detail including tracing stop reasons.
1115 (trace_find_command): Always allow tfind on a file.
1116 (trace_find_pc_command): Ditto.
1117 (trace_find_tracepoint_command): Ditto.
1118 (trace_find_line_command): Ditto.
1119 (trace_find_range_command): Ditto.
1120 (trace_find_outside_command): Ditto.
1121 (trace_frames_offset, cur_offset): Declare as off_t.
1122 (trace_regblock_size): Rename from reg_size, update users.
1123 (parse_trace_status): New function.
1124 (tfile_interp_line): New function.
1125 (disconnect_or_stop_tracing): Ensure current trace
1126 status before asking what to do.
1127 (stop_reason_names): New global.
1128 (trace_save_command): New command.
1129 (get_uploaded_tp): Move here from remote.c.
1130 (find_matching_tracepoint): Ditto.
1131 (merge_uploaded_tracepoints): New function.
1132 (parse_trace_status): Use stop_reason_names.
1133 (_initialize_tracepoint): Define tsave command.
1134 * target.h (target_ops): New fields to_save_trace_data,
1135 to_upload_tracepoints, to_upload_trace_state_variables,
1136 to_get_raw_trace_data, change to_get_trace_status
1137 to take a pointer to a status struct.
1138 (target_save_trace_data): New macro.
1139 (target_upload_tracepoints): New macro.
1140 (target_upload_trace_state_variables): New macro.
1141 (target_get_raw_trace_data): New macro.
1142 * target.c (update_current_target): Add new methods, change
1143 signature of to_get_trace_status.
1144 * remote.c (hex2bin): Make globally visible.
1145 (bin2hex): Ditto.
1146 (remote_download_trace_state_variable): Download name also.
1147 (remote_get_trace_status): Update parameter, use
1148 parse_trace_status.
1149 (remote_save_trace_data): New function.
1150 (remote_upload_tracepoints): New function.
1151 (remote_upload_trace_state_variables): New function.
1152 (remote_get_raw_trace_data): New function.
1153 (remote_start_remote): Use them.
1154 (_initialize_remote_ops): Add operations.
1155 * ax-gdb.c: Include breakpoint.h.
1156 * breakpoint.c (create_tracepoint_from_upload): Use
1157 break_command_really, return tracepoint, warn about unimplemented
1158 parts.
1159 * NEWS: Mention trace file addition.
1160
d904de5b
JK
11612010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1162
1163 Fix compilation warning on gcc-3.4.
1164 * exec.c (print_section_info): Move the `displacement' variable
1165 initialization to its declaration.
1166
64aa9731
JK
11672010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1168
1169 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
1170 comparison.
1171
ca1f5def 11722010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
1173
1174 "info tasks" broken by typedefs in ATCB type definitions.
1175 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
1176 ada_check_typedef before retrieving the length of the type for
1177 regular fields.
1178
12ab9e09
JB
11792010-01-15 Joel Brobecker <brobecker@adacore.com>
1180
1181 Do not use name-based lookup for unconstrained packed arrays.
1182 * ada-lang.c (find_parallel_type_by_descriptive_type):
1183 Limit the fallback to name-based lookups to the case where
1184 the type is a constrained packed array.
1185
c389c3dc
JB
11862010-01-15 Joel Brobecker <brobecker@adacore.com>
1187
1188 Enhance gdb-gdb.py to handle main_type.type_specific.
1189 * gdb-gdb.py: Print the type-specific part of struct main_type.
1190
7991dee7
JK
11912010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1192
1193 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
1194 * configure: Regenerate.
1195 * config.in: Regenerate.
1196 * utils.c: Include sys/resource.h.
1197 (dump_core, can_dump_core): New.
1198 (internal_vproblem): Update the comment. Check can_dump_core while
1199 setting dump_core_p. Replace two abort calls by dump_core calls.
1200
93c26624
JK
12012010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1202 Eli Zaretskii <eliz@gnu.org>
1203
1204 * NEWS: Document the PIE support.
1205
55235ad7
JK
12062010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1207
1208 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
1209 (check_is_pie_binary, _initialize_linux_tdep): Remove.
1210
41752192
JK
12112010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1212
1213 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
1214 Replace exec_entry_point call by bfd_get_start_address.
1215
9f2982ff
JK
12162010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1217
1218 Support Valgrind attachments broken by the PIE support.
1219 * auxv.c: Include gdbcore.h.
1220 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
1221 parameters ops, object and annex. Remove their assertions.
1222 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
1223 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
1224 (memory_xfer_auxv): ... here.
1225 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
1226 memory_xfer_auxv.
1227 * procfs.c (procfs_xfer_partial): Likewise.
1228 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
1229 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
1230 (svr4_solib_create_inferior_hook): Conditionalize the
1231 svr4_relocate_main_executable call.
1232
61f0d762
JK
12332010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1234
1235 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
1236 target_section. Find SECT in current_target_sections, gdb_assert it.
1237 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
1238 New variable abfd.
1239 * symtab.c (lookup_objfile_from_block): Return the binary file instead
1240 of separate debug info file.
1241
51bee8e9
JK
12422010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1243
1244 Support PIEs with no symfile_objfile.
1245 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
1246 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
1247
b8040f19
JK
12482010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1249
1250 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
1251 code part to ...
1252 (svr4_static_exec_displacement): ... a new function.
1253 (svr4_exec_displacement): New function.
1254 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
1255 new_offsets using alloca now. Remove variable old_chain and changed.
1256 Call objfile_relocate unconditionally now.
1257
eb90ce83
DE
12582010-01-14 Doug Evans <dje@google.com>
1259
1260 * gdbtypes.c (arch_flags_type): Fix comment.
1261 * gdbtypes.h (arch_composite_type): Fix comment.
1262
bdfed3bc
TG
12632009-01-14 Tristan Gingold <gingold@adacore.com>
1264
1265 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
1266 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
1267 to symbol_file_add_from_bfd. Add OSO as separate objfile.
1268 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
1269 macho_add_oso_symfile.
1270 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
1271
1596ad23
JB
12722010-01-14 Joel Brobecker <brobecker@adacore.com>
1273
1274 Tru64: Dead threads are never deleted.
1275 * dec-thread.c (dec_thread_ptid_is_alive): New function.
1276 (dec_thread_count_gdb_threads): Fix counter increment.
1277 (dec_thread_add_gdb_thread): Fix *listp increment.
1278 (resync_thread_list): Fix bug in deletion of dead threads that
1279 caused all threads to be deleted, instead of just the dead ones.
1280
be759fcf
PM
12812010-01-13 Phil Muldoon <pmuldoon@redhat.com>
1282
1283 PR python/10705
1284
1285 * python/python-internal.h: Add lazy_string_object_type
1286 definition.
1287 (create_lazy_string_object, gdbpy_initialize_lazy_string)
1288 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
1289 * python/py-value.c (valpy_lazy_string): New function.
1290 (convert_value_from_python): Add lazy string conversion.
1291 * python/py-prettyprint.c (pretty_print_one_value): Check if
1292 return is also a lazy string.
1293 (print_string_repr): Add lazy string printing branch.
1294 (print_children): Likewise.
1295 * python/py-lazy-string.c: New file. Implement lazy strings.
1296 * python/python.c (_initialize_python): Call
1297 gdbpy_initialize_lazy_string.
1298 * varobj.c (value_get_print_value): Add lazy string printing
1299 branch. Account for encoding.
1300 * c-lang.c (c_printstr): Account for new encoding argument. If
1301 encoding is NULL, find encoding suited for type, otherwise use
1302 user encoding.
1303 * language.h (language_defn): Add encoding argument.
1304 (LA_PRINT_STRING): Likewise.
1305 * language.c (unk_lang_printstr): Update to reflect new encoding
1306 argument to language_defn.
1307 * ada-lang.h (ada_printstr): Likewise.
1308 * c-lang.h (c_printstr): Likewise.
1309 * p-lang.h (pascal_printstr);
1310 * f-lang.c (f_printstr): Likewise.
1311 * m2-lang.c (m2_printstr): Likewise.
1312 * objc-lang.c (objc_printstr): Likewise.
1313 * p-lang.c (pascal_printstr): Likewise.
1314 * scm-lang.c (scm_printstr): Likewise.
1315 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
1316 encoding argument.
1317 * ada-valprint.c (ada_printstr): Likewise.
1318 * f-valprint.c (f_val_print): Likewise
1319 * m2-valprint.c (m2_val_print): Likewise.
1320 * p-valprint.c (pascal_val_print): Likewise.
1321 * expprint.c (print_subexp_standard): Likewise.
1322 * valprint.c (val_print_string): Likewise.
1323 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
1324 (SUBDIR_PYTHON_SRCS): Likewise.
1325 (py-lazy-string.o): New rule.
1326
1fe72117 13272010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
1328
1329 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
1330 uninitialized" warning from gcc on local `tree'.
1331
dc146f7c
VP
13322010-01-13 Vladimir Prus <vladimir@codesourcery.com>
1333
1334 Implement core awareness.
1335
1336 * bcache.c (compare_ints): Remove
1337 (print_percentage): Use compare_positive_ints.
1338 * defs.h (compare_positive_ints): Declare.
1339 * linux-nat.h (struct lin_lwp): New field core.
1340 (linux_nat_core_of_thread_1): Declare.
1341 * linux-nat.c (add_lwp): Init the 'core' field.
1342 (linux_nat_wait_1): Record the core.
1343 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
1344 (linux_nat_add_target): Register the above.
1345 * linux-thread-db.c (update_thread_core): New.
1346 (thread_db_find_new_threads): Update core information for
1347 every thread.
1348 * remote.c (struct private_thread_info): New.
1349 (free_private_thread_info, demand_private_info): New.
1350 (PACKET_qXfer_threads, use_osdata_threads): New.
1351 (struct thread_item, threads_parsing_context
1352 (start_thread, end_thread, thread_attributes)
1353 (thread_children, threads_children, threads_elements): New.
1354 (remote_threads_info): Try qXfer:threads before anything
1355 else.
1356 (remote_protocol_packets): Register qXfer:threads.
1357 (remote_open_1): Init use_osdata_threads.
1358 (struct stop_reply): New field 'core'.
1359 (remote_parse_stop_reply): Parse core number.
1360 (process_stop_reply): Record core number.
1361 (remote_xfer_partial): Handle qXfer:threads.
1362 (remote_core_of_thread): New.
1363 (init_remote_ops): Register remote_core_of_thread.
1364 (_initialize_remote): Register qXfer:read.
1365 * target.c (target_core_of_thread): New
1366 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
1367 (struct target_ops): New field to_core_of_threads.
1368 (target_core_of_thread): Declare.
1369 * gdbthread.h (struct thread_info): New field private_dtor.
1370 * thread.c (print_thread_info): Report the core.
1371 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
1372 * utils.c (compare_positive_ints): New.
1373 * features/threads.dtd: New.
1374 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
1375 * mi/mi-main.c (struct collect_cores_data, collect_cores)
1376 (do_nothing, free_vector_of_osdata_items)
1377 (splay_tree_int_comparator, free_splay_tree): New.
1378 (print_one_inferior_data): Implemented printing of selected
1379 inferiors. Collect and print cores.
1380 (output_cores): New.
1381 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
1382 thread groups together with --available.
1383
d30c5336
JK
13842010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1385
1386 * configure: Regenerate (for _STRUCTURED_PROC).
1387
02893727
JB
13882010-01-12 Joel Brobecker <brobecker@adacore.com>
1389
1390 Delete dead function.
1391 * ada-lang.c (extract_string): Delete. No longer used.
1392
46ed2d6f
JB
13932010-01-12 Joel Brobecker <brobecker@adacore.com>
1394
1395 Fix -Wunused warning in dec-thread.c.
1396 * dec-thread.c (dec_thread_count_gdb_threads)
1397 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
1398
606b8d1a
JB
13992010-01-12 Joel Brobecker <brobecker@adacore.com>
1400
1401 * ada-valprint.c (ada_print_floating): Remove trailing space.
1402
b4ba55a1
JB
14032010-01-12 Joel Brobecker <brobecker@adacore.com>
1404
1405 Add support for DW_AT_GNAT_descriptive_type.
1406 * gdbtypes.h (enum type_specific_kind): New enum.
1407 (struct main_type) [type_specific_field]: New component.
1408 [type_specific]: Add new component "gnat_stuff".
1409 (struct gnat_aux_type): New type.
1410 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
1411 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
1412 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
1413 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
1414 (TYPE_SPECIFIC_FIELD): New macros.
1415 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
1416 type does not hold any cplus-specific data.
1417 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
1418 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
1419 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
1420 cplus-specific data.
1421 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
1422 Set new component TYPE_SPECIFIC_FIELD (type).
1423 (gnat_aux_default): New constant.
1424 (allocate_gnat_aux_type): New function.
1425 (init_type): Add initialization the type-specific stuff for
1426 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
1427 (print_gnat_stuff): New function.
1428 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
1429 specific data. Adjust code that prints the contents of the
1430 type-specific union using the TYPE_SPECIFIC_FIELD value.
1431 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
1432 the type cplus stuff for Ada types.
1433 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
1434 Error out if these routines are called with an Ada type.
1435 (read_structure_type, read_array_type, read_subrange_type):
1436 Add call to set_descriptive_type.
1437 (set_die_type): Initialize the gnat-specific data if necessary.
1438 (need_gnat_info, die_descriptive_type, set_descriptive_type):
1439 New functions.
1440 * ada-lang.c (decode_constrained_packed_array_type): Use
1441 decode_constrained_packed_array_type instead of doing a standard
1442 lookup to locate a parallel type.
1443 (find_parallel_type_by_descriptive_type): New function.
1444 (ada_find_parallel_type_with_name): New function.
1445 (ada_find_parallel_type): Reimplement using
1446 ada_find_parallel_type_with_name.
1447 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
1448 to check if type has a cplus stuff.
1449 * linespec.c (total_number_of_methods): Likewise.
1450 * mdebugread.c (new_type): Likewise.
1451
b0f02ee9
JK
14522010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1453
1454 * NEWS: Document the 0b binary number prefix parsing.
1455
b260e109
JK
14562010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1457
1458 * objfiles.c (objfile_relocate1): Change the return type to int.
1459 Describe the new return value. Return non-zero if data changed.
1460 (objfile_relocate): New variable changed. Set it. Call
1461 breakpoint_re_set depending on CHANGED.
1462
b5cfddf5
JK
14632010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1464
1465 Implement binary numbers parsing.
1466 * c-exp.y (parse_number): New case 'b' and 'B'.
1467
e0ae4240
JK
14682010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1469 Tristan Gingold <gingold@adacore.com>
1470
1471 * solib.c (info_sharedlibrary_command): Replace
1472 objfile_has_partial_symbols and objfile_has_full_symbols calls by
1473 objfile_has_symbols.
1474
6e0e5977
JB
14752010-01-10 Joel Brobecker <brobecker@adacore.com>
1476
1477 * NEWS: Document the improvements made to the mips-irix port.
1478
7348c5e1
JB
14792010-01-09 Joel Brobecker <brobecker@adacore.com>
1480
1481 Fix the documentation of valprint.c:value_print.
1482 * valprint.c (value_print): Update the function description to
1483 mention that the syntax of the output follows the current_language,
1484 not necessarily C.
1485
567995e1
JK
14862010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1487
1488 Fix displacement of separate debug info files.
1489 * objfiles.c (objfile_relocate): Rename to ...
1490 (objfile_relocate1): ... here and make it static. Extend the comment.
1491 (objfile_relocate): New function.
1492 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
1493 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
1494 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
1495 allocated using alloca.
1496 * symfile.c (copy_section_addr_info): Remove.
1497 (build_section_addr_info_from_objfile): Make it global. New variables
1498 addr_bit and mask, use them.
1499 * symfile.h (build_section_addr_info_from_objfile): New prototype.
1500 (copy_section_addr_info): Remove.
1501
6d8eadbd
JB
15022010-01-09 Joel Brobecker <brobecker@adacore.com>
1503
1504 Signal unwinder for mips-irix N32.
1505 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
1506 tramp-frame.h.
1507 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
1508 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
1509 (SIGCONTEXT_LO_OFF): New macros.
1510 (mips_irix_n32_tramp_frame_init): New function.
1511 (mips_irix_n32_tramp_frame): New static constant.
1512 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
1513
27087a3d
JB
15142010-01-09 Joel Brobecker <brobecker@adacore.com>
1515
1516 Breakpoint in shared library does not work on mips-irix.
1517 * procfs.c: #include "observer.h".
1518 (procfs_inferior_created): New function, moving here the code
1519 which unsets the syssgi syscall-exit notifications.
1520 (procfs_create_inferior): Remove the code which unsets the syssgi
1521 syscall-exit notifications. It is too early to do this here.
1522 (_initialize_procfs): Attach the procfs_inferior_created observer.
1523
f08877ba
JB
15242010-01-09 Joel Brobecker <brobecker@adacore.com>
1525
1526 Wrong return convention for arrays (mips-irix).
1527 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
1528 128 bits or smaller are returned the same way as structs
1529 and unions of the the same size.
1530
e4b97d48
JB
15312010-01-09 Joel Brobecker <brobecker@adacore.com>
1532
1533 Cannot set the PC on mips-irix.
1534 * irix5-nat.c (fill_gregset): Check regno against the raw PC
1535 register number, no the cooked one.
1536
11377e68
JB
15372010-01-09 Joel Brobecker <brobecker@adacore.com>
1538
1539 Error while loading core file on mips-irix.
1540 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
1541 if debugging from a core file.
1542
b2391021
JB
15432010-01-09 Joel Brobecker <brobecker@adacore.com>
1544
1545 GDB hangs when attaching to process on mips-irix.
1546 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
1547 attaching to a process.
1548
f2ec0ecf
JB
15492010-01-09 Joel Brobecker <brobecker@adacore.com>
1550
1551 Use the correct breakpoint instruction on mips-irix.
1552 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
1553 containing the correct breakpoint instruction to use on mips-irix.
1554 Use it when the osabi is GDB_OSABI_IRIX.
1555
3c95f01c
JB
15562010-01-09 Joel Brobecker <brobecker@adacore.com>
1557
1558 -Wunused warning in procfs.c (mips-irix only).
1559 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
1560 throughout instead of using praddset and prdelset respectively.
1561
4b7703ad
JB
15622010-01-09 Joel Brobecker <brobecker@adacore.com>
1563
1564 GDB crash while stepping into function.
1565 * infrun.c (handle_inferior_event): Refetch the current frame
1566 after handling what.main_action, in case that pointer became
1567 dangling.
1568
12c89474
JB
15692010-01-09 Joel Brobecker <brobecker@adacore.com>
1570
1571 Fix build failure of solaris-hosted cross debuggers.
1572 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
1573
1a3fd262 15742010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
1575
1576 Fix build failure on sparc-solaris.
1577 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
1578
75242ef4
JK
15792010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1580
1581 Move some symfile code into subroutines.
1582 * symfile.h (relative_addr_info_to_section_offsets)
1583 (addr_info_make_relative): New prototypes.
1584 * symfile.c (default_symfile_offsets): Move a part to ...
1585 (relative_addr_info_to_section_offsets): ... this new function.
1586 (default_symfile_offsets): Call it.
1587 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
1588 this part to ...
1589 (addr_info_make_relative): ... this new function.
1590
268a4a75
JK
15912010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1592
1593 Add from_tty to solib_create_inferior_hook.
1594 * infcmd.c (post_create_inferior): Move solib_add after
1595 solib_create_inferior_hook. Pass from_tty to
1596 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
1597 0 from_tty and comment why.
1598 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
1599 * linux-nat.c (linux_child_follow_fork): Likewise.
1600 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
1601 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
1602 from_tty.
1603 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
1604 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1605 * solib-null.c (null_solib_create_inferior_hook): Likewise.
1606 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1607 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
1608 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1609 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
1610 Pass it to svr4_so_ops.solib_create_inferior_hook.
1611 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
1612 from_tty.
1613 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
1614 solib_add.
1615 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
1616 enable_break.
1617 * solib-target.c (solib_target_solib_create_inferior_hook): New
1618 parameter from_tty.
1619 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
1620 it to ops->solib_create_inferior_hook.
1621 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
1622 Move solib_add after solib_create_inferior_hook, call it now with
1623 from_tty as 0. New comment there.
1624 * solib.h (solib_create_inferior_hook): New parameter from_tty.
1625 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
1626 Likewise.
1627
cf00dfa7
VP
16282010-01-08 Vladimir Prus <vladimir@codesourcery.com>
1629
1630 Fix multiexec race.
1631 * infrun.c (handle_inferior_event): Use get_thread_regcache
1632 with events ptid, not get_current_regcache.
1633
f91e5ac3
JB
16342009-01-08 Joel Brobecker <brobecker@adacore.com>
1635
1636 GDB crash with empty executable name (MinGW).
1637 * source.c (openp): Add assert that parameter string is not NULL.
1638 if parameter string is an empty string, then return with a failure
1639 immediately.
1640
92b9ce5b
JB
16412009-01-08 Joel Brobecker <brobecker@adacore.com>
1642
1643 Get rid of support for VAX Floats.
1644 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1645 (ada_vax_float_print_function): Delete.
1646 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1647 (ada_vax_float_print_function): Delete.
1648 * ada-typeprint.c (print_vax_floating_point_type): Delete.
1649 (ada_print_type): Remove support for VAX floats.
1650 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
1651
268a4a75 16522010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
1653
1654 * stabsread.c (read_args): Handle zero arguments.
1655
f0f20949
JB
16562009-01-08 Joel Brobecker <brobecker@adacore.com>
1657
1658 Cannot find in-tree libiconv.a after reconfigure.
1659 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
1660 that we can use, then cache the path to this archive.
1661 * configure: Regenerate.
1662
6b6218c5
SS
16632010-01-07 Stan Shebs <stan@codesourcery.com>
1664
35b1e5cc
SS
1665 Make tracepoint operations go through target vector.
1666 * target.h (enum trace_find_type): New enum.
1667 (struct target_ops): New fields to_trace_init,
1668 to_download_tracepoint, to_download_trace_state_variable,
1669 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
1670 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
1671 to_set_disconnected_tracing.
1672 (target_trace_init): New macro.
1673 (target_download_tracepoint): New macro.
1674 (target_download_trace_state_variable): New macro.
1675 (target_trace_start): New macro.
1676 (target_trace_set_readonly_regions): New macro.
1677 (target_get_trace_status): New macro.
1678 (target_trace_stop): New macro.
1679 (target_trace_find): New macro.
1680 (target_get_trace_state_variable_value): New macro.
1681 (target_set_disconnected_tracing): New macro.
1682 * target.c (update_current_target): Inherit and set defaults for
1683 tracepoint operations.
1684 * tracepoint.c (default_collect): Make globally visible.
1685 (target_is_remote): Remove, along with all calls.
1686 (tvariables_info): Call target_get_trace_state_variable_value.
1687 (remote_set_transparent_ranges): Remove.
1688 (trace_start_command): Call target_trace_init,
1689 target_download_tracepoint, etc.
1690 (download_tracepoint): Remove.
1691 (trace_stop_command): Simplify.
1692 (stop_tracing): Call target_trace_stop.
1693 (get_trace_status): Call target_get_trace_status.
1694 (trace_status_command): Add case for targets that cannot trace.
1695 (finish_tfind_command): Change to take numerical arguments, call
1696 target_trace_find.
1697 (trace_find_command): Update call to finish_tfind_command.
1698 (trace_find_pc_command): Ditto.
1699 (trace_find_tracepoint_command): Ditto.
1700 (trace_find_line_command): Ditto.
1701 (trace_find_range_command): Ditto.
1702 (trace_find_outside_command): Ditto.
1703 (set_disconnected_tracing_value): Call
1704 target_set_disconnected_tracing.
1705 * remote.c: Add protocol encoding bits from tracepoint.c.
1706 (trace_error): Move from tracepoint.c.
1707 (remote_get_noisy_reply): Ditto.
1708 (free_actions_list_cleanup_wrapper): Ditto.
1709 (free_actions_list): Ditto.
1710 (remote_trace_init): New function.
1711 (remote_download_tracepoint): New function.
1712 (remote_download_trace_state_variable): New function.
1713 (remote_trace_set_readonly_regions): New function.
1714 (remote_trace_start): New function.
1715 (remote_get_trace_status): New function.
1716 (remote_trace_stop): New function.
1717 (remote_trace_find): New function.
1718 (remote_download_trace_state_variable): New function.
1719 (remote_set_disconnected_tracing): New function.
1720 (init_remote_ops): Add tracepoint operations.
1721
6b6218c5
SS
1722 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
1723
089b4803
TG
17242010-01-07 Tristan Gingold <gingold@adacore.com>
1725
1726 * symfile.c (build_section_addr_info_from_objfile): New function.
1727 (symbol_file_add_separate): Don't use offsets from objfile but
1728 built an addr info.
1729
d5551862
SS
17302010-01-06 Stan Shebs <stan@codesourcery.com>
1731
1732 Support disconnected tracing.
1733 * infcmd.c (detach_command): Ask whether to stop tracing.
1734 * cli/cli-cmds.c (quit_command): Ditto.
1735 * breakpoint.h (struct breakpoint): New field number_on_target.
1736 * breakpoint.c (create_tracepoint_from_upload): New function.
1737 (get_tracepoint_by_number_on_target): New function.
1738 * remote.c (struct remote): New field disconnected_tracing.
1739 (remote_disconnected_tracing_feature): New function.
1740 (remote_protocol_features): Add DisconnectedTracing.
1741 (struct uploaded_tp): New struct.
1742 (uploaded_tps): New global.
1743 (get_uploaded_tp): New function.
1744 (find_matching_tracepoint): New function.
1745 (remote_get_tracing_state): New function.
1746 (remote_start_remote): Call it.
1747 * tracepoint.c (disconnected_tracing): New global.
1748 (trace_start_command): Initialize number_on_target.
1749 (stop_tracing): New function, split out from...
1750 (trace_stop_command): Call stop_tracing.
1751 (get_trace_status): New function, split out from...
1752 (trace_status_command): Call get_trace_status, add info on
1753 disconnection behavior.
1754 (disconnect_or_stop_tracing): New function.
1755 (finish_tfind_command): Translate from number on target.
1756 (trace_find_tracepoint_command): Translate to number on target.
1757 (send_disconnected_tracing_value): New function.
1758 (set_disconnected_tracing): New function.
1759 (_initialize_tracepoint): Add disconnected-tracing variable.
1760 * NEWS: Mention disconnected tracing.
1761
15d123c9
TG
17622010-01-06 Tristan Gingold <gingold@adacore.com>
1763
1764 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
1765 parameter to main_objfile. Iterate on all separate debug objfiles.
1766 * symfile.h (symbol_file_add_separate)
1767 (find_separate_debug_file_by_debuglink): Remove parameter names.
1768 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
1769 (reread_symbols): Use free_objfile_separate_debug.
1770 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
1771 Adjust comment.
1772 (objfile_separate_debug_iterate, add_separate_debug_objfile)
1773 (free_objfile_separate_debug): New prototypes.
1774 * objfiles.c (objfile_separate_debug_iterate): New function.
1775 (add_separate_debug_objfile, free_objfile_separate_debug): New
1776 functions.
1777 (free_objfile): Use free_objfile_separate_debug. Adjust for
1778 multiple separate debug objfile.
1779 (objfile_has_symbols): Adjust comment. Iterate on all separate
1780 debug objfiles.
1781 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
1782 debug objfile.
1783 (lookup_minimal_symbol_text): Ditto.
1784 (lookup_minimal_symbol_by_pc_name): Ditto.
1785 (lookup_minimal_symbol_solib_trampoline): Ditto.
1786 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
1787 debug objfiles.
1788
7a697b8d
SS
17892010-01-05 Stan Shebs <stan@codesourcery.com>
1790
1791 Add fast tracepoints.
1792 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
1793 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
1794 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
1795 * breakpoint.c (tracepoint_type): New function.
1796 (ALL_TRACEPOINTS): Use it.
1797 (should_be_inserted): Ditto.
1798 (bpstat_check_location): Ditto.
1799 (print_one_breakpoint_location): Ditto.
1800 (user_settable_breakpoint): Ditto.
1801 (set_breakpoint_location_function): Ditto.
1802 (disable_breakpoints_in_shlibs): Ditto.
1803 (delete_trace_command): Ditto.
1804 (print_it_typical): Add bp_fast_tracepoint case.
1805 (bpstat_what): Ditto.
1806 (print_one_breakpoint_location): Ditto.
1807 (allocate_bp_location): Ditto.
1808 (mention): Ditto.
1809 (breakpoint_re_set_one): Ditto.
1810 (disable_command): Ditto.
1811 (enable_command): Ditto.
1812 (check_fast_tracepoint_sals): New function.
1813 (break_command_really): Call it.
1814 (ftrace_command): New function.
1815 (_initialize_breakpoint): Add ftrace command.
1816 * gdbarch.sh (fast_tracepoint_valid_at): New.
1817 * gdbarch.h, gdbarch.c: Regenerate.
1818 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
1819 (i386_gdbarch_init): Use it.
1820 * remote.c (struct remote_state): New field fast_tracepoints.
1821 (PACKET_FastTracepoints): New packet config type.
1822 (remote_fast_tracepoint_feature): New function.
1823 (remote_protocol_features): Add FastTracepoints.
1824 (remote_supports_fast_tracepoints): New function.
1825 (_initialize_remote): Add FastTracepoints.
1826 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
1827 * NEWS: Mention fast tracepoints.
1828
737a160e
JB
18292010-01-06 Joel Brobecker <brobecker@adacore.com>
1830
1831 * gdb-gdb.py: New file.
1832
ce6cca6d
MS
18332010-01-05 Michael Snyder <msnyder@vmware.com>
1834
1835 * infrun.c (handle_inferior_event): Fix typo in comment.
1836
0d15807d
JK
18372010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1838
1839 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
1840
7803799a
UW
18412010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1842
1843 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
1844 and s390x-linux64.
1845 (s390-linux32-expedite): Define.
1846 (s390-linux64-expedite): Define.
1847 (s390x-linux64-expedite): Define.
1848 * features/s390-acr.xml: New file.
1849 * features/s390-fpr.xml: New file.
1850 * features/s390-core32.xml: New file.
1851 * features/s390-core64.xml: New file.
1852 * features/s390x-core64.xml: New file.
1853 * features/s390-linux32.xml: New file.
1854 * features/s390-linux64.xml: New file.
1855 * features/s390x-linux64.xml: New file.
1856 * features/s390-linux32.c: New generated file.
1857 * features/s390-linux64.c: New generated file.
1858 * features/s390x-linux64.c: New generated file.
1859
1860 * regformats/s390-linux32.dat: New generated file.
1861 * regformats/s390-linux64.dat: New generated file.
1862 * regformats/s390x-linux64.dat: New generated file.
1863 * regformats/reg-s390.dat: Remove.
1864 * regformats/reg-s390x.dat: Remove.
1865
1866 * s390-nat.c: Include "auxv.h" and <elf.h>.
1867 (HWCAP_S390_HIGH_GPRS): Define if undefined.
1868 (s390_target_wordsize): New function.
1869 (s390_auxv_parse): Likewise.
1870 (s390_get_hwcap): Likewise.
1871 (s390_read_description): Likewise.
1872 (_initialize_s390_nat): Install s390_auxv_parse and
1873 s390_read_description.
1874
1875 * s390-tdep.c: Include "features/s390-linux32.c",
1876 "features/s390-linux64.c", and "features/s390x-linux64.c".
1877 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
1878 (s390_register_call_saved): New function.
1879 (s390_register_name): Remove.
1880 (s390_register_type): Remove.
1881 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
1882 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
1883 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
1884 (s390_pseudo_register_name): New function.
1885 (s390_pseudo_register_type): New function.
1886 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
1887 Handle full GPR pesudos and varying pseudo register numbers.
1888 (s390_pseudo_register_write): Likewise
1889 (s390x_pseudo_register_read): Remove.
1890 (s390x_pseudo_register_write): Likewise.
1891 (s390_register_group): Remove.
1892 (s390_pseudo_register_group): New function.
1893 (s390_regmap_gregset): Add GPR upper halves.
1894 (s390x_regmap_gregset): Likewise.
1895 (s390_regmap_fpregset): Likewise.
1896 (s390_regmap_upper): New global variable.
1897 (s390_upper_regset): New global variable.
1898 (s390_upper_regset_sections): New global variable.
1899 (s390_regset_from_core_section): Handle GPR upper halves.
1900 (s390_core_read_description): New function.
1901 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
1902 register information. Handle varying pseudo register numbers.
1903 (s390_backchain_frame_unwind_cache): Likewise.
1904 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
1905 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
1906 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
1907 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
1908 Handle varying pseudo register numbers.
1909 (s390_unwind_pc): Handle varying pseudo register numbers.
1910 (s390_dwarf2_prev_register): New function.
1911 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
1912 register information. Handle varying pseudo register numbers.
1913 Install s390_dwarf2_prev_register to unwind full GPRs.
1914 (s390_gdbarch_init): Handle target descriptions. Assign varying
1915 pseudo register numbers. Install s390_adjust_frame_regnum.
1916 (_initialize_s390_tdep): Initialize target descriptions.
1917
1918 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
1919 (S390_NUM_REGS): Redefine to include upper half registers.
1920 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
1921 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
1922 (tdesc_s390_linux32): Add declaration.
1923 (tdesc_s390_linux64): Likewise.
1924 (tdesc_s390x_linux64): Likewise.
1925
1b1818e4
UW
19262010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1927
1928 * regset.h (struct core_regset_section): Add HUMAN_NAME.
1929 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
1930 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1931 (ppc_linux_vmx_regset_sections): Likewise.
1932 (ppc_linux_fp_regset_sections): Likewise.
1933
1934 * corelow.c (get_core_register_section): Constify arguments.
1935 (get_core_registers): Use gdbarch_core_regset_sections instead
1936 of hard-coded platform-specific register section names.
1937
dcbf108f
UW
19382010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1939
1940 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 1941 a register, assume the least-significant part is used.
dcbf108f
UW
1942 (write_pieced_value): Likewise.
1943
704e9165
UW
19442010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1945
1946 * printcmd.c: Include "arch-utils.h".
1947 (do_one_display): Re-parse expression if current architecture changed.
1948
c54eabfa
JK
19492010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1950 Joel Brobecker <brobecker@adacore.com>
1951
1952 * gdbtypes.c (check_typedef): New comment on type length.
1953 * value.c (allocate_value_lazy): Remove the unused atype variable. New
1954 comment on type length.
1955 (value_primitive_field): Keep the original TYPE value, new comment.
1956
50cb2941
JK
19572010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1958
1959 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
1960 p_start. Change != comparisons to > and < comparisons.
1961
be66db07
JK
19622010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1963
1964 * cli/cli-script.c (process_next_line): Check P2 overrun.
1965
abd775ce
JB
19662009-01-01 Joel Brobecker <brobecker@adacore.com>
1967
1968 Update the copyright hearder to add year 2010 for most GDB files.
1969
6479260d
JB
19702009-01-01 Joel Brobecker <brobecker@adacore.com>
1971
1972 Fix build failure in inf-ptrace.c.
1973 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
1974
4a70f654
JB
19752010-01-01 Joel Brobecker <brobecker@adacore.com>
1976
1977 * top.c (print_gdb_version): Update copyright year.
1978
b9ee2233
JB
19792010-01-01 Joel Brobecker <brobecker@adacore.com>
1980
1981 Fix break *FUN'address thread NUM.
1982 * ada-lex.l (task): Expand rule to also match the thread keyword.
1983
70575d34
JB
19842010-01-01 Joel Brobecker <brobecker@adacore.com>
1985
1986 Fix break *FUN'address task NUM.
1987 * ada-lex.l (task): New rule.
1988 * ada-lang.c (valid_task_id): Make sure the Ada task list has
1989 been built before using it.
1990
e1e4d4a4 1991For older changes see ChangeLog-2009.
c906108c
SS
1992\f
1993Local Variables:
1994mode: change-log
1995left-margin: 8
1996fill-column: 74
1997version-control: never
57da7796 1998coding: utf-8
c906108c 1999End:
This page took 1.352193 seconds and 4 git commands to generate.